Skip to content

[Clang] [LLD] [Build] duplicate symbols in c-index-test #152083

@solomoncyj

Description

@solomoncyj
> cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX='C:\' -DCMAKE_SKIP_INSTALL_RPATH:BOOL=1 -G Ninja  -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;lldb;lld;polly'
-- The C compiler identification is Clang 20.1.7 with GNU-like command-line
-- The CXX compiler identification is Clang 20.1.7 with GNU-like command-line
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: C:/Program Files/LLVM/bin/clang.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libclc project is disabled
-- lld project is enabled
-- lldb project is enabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is enabled
-- flang project is disabled
-- libc project is disabled
-- Found Python3: C:/Users/solom/AppData/Local/Programs/Python/Python313/python.exe (found suitable version "3.13.2", minimum required is "3.8") found components: Interpreter
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Failed
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Found ZLIB: C:/lib/z.lib (found version "1.3.1.1")
-- Looking for compress2
-- Looking for compress2 - found
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
-- Looking for __register_frame
-- Looking for __register_frame - not found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - not found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - not found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - not found
-- Looking for getpagesize
-- Looking for getpagesize - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for getrusage
-- Looking for getrusage - not found
-- Looking for isatty
-- Looking for isatty - not found
-- Looking for futimens
-- Looking for futimens - not found
-- Looking for futimes
-- Looking for futimes - not found
-- Looking for getauxval
-- Looking for getauxval - not found
-- Looking for sigaltstack
-- Looking for sigaltstack - not found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for posix_spawn
-- Looking for posix_spawn - not found
-- Looking for pread
-- Looking for pread - not found
-- Looking for sbrk
-- Looking for sbrk - not found
-- Looking for strerror_r
-- Looking for strerror_r - not found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for setenv
-- Looking for setenv - not found
-- Looking for _chsize_s
-- Looking for _chsize_s - found
-- Looking for _alloca
-- Looking for _alloca - not found
-- Looking for __alloca
-- Looking for __alloca - not found
-- Looking for __chkstk
-- Looking for __chkstk - found
-- Looking for __chkstk_ms
-- Looking for __chkstk_ms - not found
-- Looking for ___chkstk
-- Looking for ___chkstk - not found
-- Looking for ___chkstk_ms
-- Looking for ___chkstk_ms - not found
-- Looking for __ashldi3
-- Looking for __ashldi3 - not found
-- Looking for __ashrdi3
-- Looking for __ashrdi3 - not found
-- Looking for __divdi3
-- Looking for __divdi3 - not found
-- Looking for __fixdfdi
-- Looking for __fixdfdi - not found
-- Looking for __fixsfdi
-- Looking for __fixsfdi - not found
-- Looking for __floatdidf
-- Looking for __floatdidf - not found
-- Looking for __lshrdi3
-- Looking for __lshrdi3 - not found
-- Looking for __moddi3
-- Looking for __moddi3 - not found
-- Looking for __udivdi3
-- Looking for __udivdi3 - not found
-- Looking for __umoddi3
-- Looking for __umoddi3 - not found
-- Looking for __main
-- Looking for __main - not found
-- Looking for __cmpdi2
-- Looking for __cmpdi2 - not found
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Failed
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- LLVM host triple: x86_64-pc-windows-msvc
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.12.1
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM default target triple: x86_64-pc-windows-msvc
-- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG
-- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Success
-- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG
-- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Success
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Success
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX - Success
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.49.0.windows.1")
-- Looking for logf128
-- Looking for logf128 - not found
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting AVR
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting LoongArch
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting RISCV
-- Targeting Sparc
-- Targeting SPIRV
-- Targeting SystemZ
-- Targeting VE
-- Targeting WebAssembly
-- Targeting X86
-- Targeting XCore
-- LLD version: 22.0.0
-- Looking for sys/resource.h
-- Looking for sys/resource.h - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Clang version: 22.0.0git
-- Performing Test HAVE_LINKER_FLAG_LONG_PLT
-- Performing Test HAVE_LINKER_FLAG_LONG_PLT - Success
-- CTTestTidyModule ignored -- Loadable modules not supported on this platform.
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Found Python3: C:/Users/solom/AppData/Local/Programs/Python/Python313/python.exe (found version "3.13.2") found components: Interpreter
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at least version "4")
-- Enable SWIG to generate LLDB bindings: FALSE
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Enable editline support in LLDB: FALSE
-- Could NOT find CursesAndPanel (missing: CURSES_INCLUDE_DIRS CURSES_LIBRARIES PANEL_LIBRARIES HAS_TERMINFO_SYMBOLS)
-- Enable curses support in LLDB: FALSE
-- Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
-- Enable LZMA compression support in LLDB: FALSE
-- SWIG 4 or later is required for Lua support in LLDB but could not be found
-- Could NOT find LuaAndSwig (missing: LUA_LIBRARIES LUA_INCLUDE_DIR LUA_VERSION_MINOR LUA_VERSION_MAJOR LLDB_ENABLE_SWIG)
-- Enable Lua scripting support in LLDB: FALSE
-- SWIG 4 or later is required for Python support in LLDB but could not be found
-- Could NOT find PythonAndSwig (missing: Python3_LIBRARIES Python3_INCLUDE_DIRS LLDB_ENABLE_SWIG)
-- Enable Python scripting support in LLDB: FALSE
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) (Required is at least version "2.8")
-- Enable Libxml 2 support in LLDB: FALSE
-- Enable libfbsdvmcore support in LLDB: 0
-- Performing Test CXX_SUPPORTS_STRINGOP_TRUNCATION
-- Performing Test CXX_SUPPORTS_STRINGOP_TRUNCATION - Success
-- LLDB version: 22.0.0git
-- Looking for ppoll
-- Looking for ppoll - not found
-- Looking for ptsname_r
-- Looking for ptsname_r - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for include files sys/types.h, sys/event.h
-- Looking for include files sys/types.h, sys/event.h - not found
-- Looking for process_vm_readv
-- Looking for process_vm_readv - not found
-- Looking for __NR_process_vm_readv
-- Looking for __NR_process_vm_readv - not found
-- Looking for compression_encode_buffer in compression
-- Looking for compression_encode_buffer in compression - not found
-- Skipping FreeBSDKernel plugin due to missing libfbsdvmcore
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Did not find one of: gmake make
CMake Warning at C:/Users/solom/Downloads/llvm-project/lldb/test/API/CMakeLists.txt:71 (message):
  Many LLDB API tests require a 'make' tool.  Please provide it in Path or
  pass via LLDB_TEST_MAKE.


-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Not building llvm-mt.exe because libxml2 is not available
-- ISL version: isl-0.25-193-g8621c60c
-- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_RESULT
-- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_RESULT - Success
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Success
-- Performing Test HAVE_DECL_FFS
-- Performing Test HAVE_DECL_FFS - Failed
-- Performing Test HAVE_DECL___BUILTIN_FFS
-- Performing Test HAVE_DECL___BUILTIN_FFS - Success
-- Performing Test HAVE_DECL__BITSCANFORWARD
-- Performing Test HAVE_DECL__BITSCANFORWARD - Success
-- Performing Test HAVE_DECL_STRCASECMP
-- Performing Test HAVE_DECL_STRCASECMP - Failed
-- Performing Test HAVE_DECL__STRICMP
-- Performing Test HAVE_DECL__STRICMP - Success
-- Performing Test HAVE_DECL_STRNCASECMP
-- Performing Test HAVE_DECL_STRNCASECMP - Failed
-- Performing Test HAVE_DECL__STRNICMP
-- Performing Test HAVE_DECL__STRNICMP - Success
-- Performing Test HAVE_DECL_SNPRINTF
-- Performing Test HAVE_DECL_SNPRINTF - Success
-- Performing Test HAVE_DECL__SNPRINTF
-- Performing Test HAVE_DECL__SNPRINTF - Success
-- Performing Test HAVE_UINT8T
-- Performing Test HAVE_UINT8T - Failed
-- Performing Test HAVE_STDINT_H
-- Performing Test HAVE_STDINT_H - Success
-- Performing Test HAVE_INTTYPES_H
-- Performing Test HAVE_INTTYPES_H - Success
-- Performing Test HAVE_SYS_INTTYPES_H
-- Performing Test HAVE_SYS_INTTYPES_H - Failed
-- Registering Polly as a pass plugin (static build: ON)
-- Google Benchmark version: v0.0.0, normalized to 0.0.0
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST
-- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST - Success
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success
-- Enabling additional flags: -DINCLUDE_DIRECTORIES=C:/Users/solom/Downloads/llvm-project/third-party/benchmark/include
-- Compiling and running to test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- success
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Enabling additional flags: -DCMAKE_CXX_STANDARD=14
-- Compiling and running to test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Enabling additional flags: -DCMAKE_CXX_STANDARD=14
-- Compiling and running to test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
CMake Warning at C:/Users/solom/Downloads/llvm-project/third-party/benchmark/CMakeLists.txt:319 (message):
  Using std::regex with exceptions disabled is not fully supported


-- Compiling and running to test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Compiling and running to test HAVE_PTHREAD_AFFINITY
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Configuring done (59.1s)
-- Generating done (11.2s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_SKIP_INSTALL_RPATH


-- Build files have been written to: C:/Users/solom/Downloads/llvm-project/llvm/build

>ninja
[601/760] Linking CXX executable bin\c-index-test.exe
FAILED: bin/c-index-test.exe
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -nostartfiles -nostdlib -march=native -w -Werror=date-time -Werror=unguarded-availability-new -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -fuse-ld=lld  -Xlinker /subsystem:console  -Wl,--gc-sections  -fuse-ld=lld-link tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/c-index-test.c.obj tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/core_main.cpp.obj -o bin\c-index-test.exe -Xlinker /MANIFEST:EMBED -Xlinker /implib:lib\c-index-test.lib -Xlinker /pdb:bin\c-index-test.pdb -Xlinker /version:0.0   lib/LLVMSupport.lib  lib/clang.lib  lib/clangAST.lib  lib/clangBasic.lib  lib/clangFrontend.lib  lib/clangIndex.lib  lib/clangSerialization.lib  lib/clangDriver.lib  -lversion.lib  lib/LLVMWindowsDriver.lib  lib/clangParse.lib  lib/LLVMOption.lib  lib/clangSema.lib  lib/clangAPINotes.lib  lib/clangEdit.lib  lib/clangAnalysis.lib  lib/clangASTMatchers.lib  lib/LLVMFrontendHLSL.lib  lib/clangSupport.lib  lib/clangFormat.lib  lib/clangToolingInclusions.lib  lib/clangToolingCore.lib  lib/clangRewrite.lib  lib/clangLex.lib  lib/LLVMFrontendOpenMP.lib  lib/LLVMScalarOpts.lib  lib/LLVMAggressiveInstCombine.lib  lib/LLVMInstCombine.lib  lib/LLVMFrontendOffloading.lib  lib/LLVMTransformUtils.lib  lib/LLVMObjectYAML.lib  lib/LLVMFrontendAtomic.lib  lib/LLVMAnalysis.lib  lib/LLVMProfileData.lib  lib/LLVMSymbolize.lib  lib/LLVMDebugInfoGSYM.lib  lib/LLVMDebugInfoPDB.lib  lib/LLVMDebugInfoCodeView.lib  lib/LLVMDebugInfoMSF.lib  lib/LLVMDebugInfoBTF.lib  lib/LLVMDebugInfoDWARF.lib  lib/LLVMDebugInfoDWARFLowLevel.lib  lib/LLVMObject.lib  lib/LLVMMCParser.lib  lib/LLVMMC.lib  lib/LLVMIRReader.lib  lib/LLVMBitReader.lib  lib/LLVMAsmParser.lib  lib/LLVMCore.lib  lib/LLVMRemarks.lib  lib/LLVMBitstreamReader.lib  lib/LLVMTextAPI.lib  lib/LLVMBinaryFormat.lib  lib/LLVMFrontendDirective.lib  lib/LLVMTargetParser.lib  -lpsapi.lib  -lshell32.lib  -lole32.lib  -luuid.lib  -ladvapi32.lib  -lws2_32.lib  -lntdll.lib  C:/lib/z.lib  lib/LLVMDemangle.lib  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -loldnames  && cd ."
lld-link: warning: ignoring unknown argument '--gc-sections'
lld-link: error: duplicate symbol: public: __cdecl clang::AddressSpaceAttr::AddressSpaceAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &, int)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::ArmStreamingCompatibleAttr::ArmStreamingCompatibleAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::HLSLControlFlowHintAttr::HLSLControlFlowHintAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::CXXAssumeAttr::CXXAssumeAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &, class clang::Expr *)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::NoInlineAttr::NoInlineAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::TypeNullableResultAttr::TypeNullableResultAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::NSReturnsRetainedAttr::NSReturnsRetainedAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::OpenCLGlobalAddressSpaceAttr::OpenCLGlobalAddressSpaceAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::UnlikelyAttr::UnlikelyAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::CodeAlignAttr::CodeAlignAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &, class clang::Expr *)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::TypeNullUnspecifiedAttr::TypeNullUnspecifiedAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::SPtrAttr::SPtrAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::Ptr64Attr::Ptr64Attr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::ArmBuiltinAliasAttr::ArmBuiltinAliasAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &, class clang::IdentifierInfo *)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::OpenCLUnrollHintAttr::OpenCLUnrollHintAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &, unsigned int)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::AArch64VectorPcsAttr::AArch64VectorPcsAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::SwiftAsyncContextAttr::SwiftAsyncContextAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::BlockingAttr::BlockingAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::SwiftAsyncCallAttr::SwiftAsyncCallAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: duplicate symbol: public: __cdecl clang::ObjCOwnershipAttr::ObjCOwnershipAttr(class clang::ASTContext &, class clang::AttributeCommonInfo const &, class clang::IdentifierInfo *)
>>> defined at clangAST.lib(AttrImpl.cpp.obj)
>>> defined at clang.lib(clang.dll)

lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions