[llvm] [CMake] Fix DynamicLibraryTests exports symbol when plugins are enabled (PR #102941)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 13:18:48 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `llvm` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/1549

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[1107/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVISAInfoTest.cpp.o
[1108/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVTargetParserTest.cpp.o
[1109/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TargetParserTest.cpp.o
[1110/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TripleTest.cpp.o
[1111/1300] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapEntryTest.cpp.o
[1112/1300] Linking CXX executable unittests/ObjCopy/ObjCopyTests
[1113/1300] Linking CXX executable unittests/Support/CommandLineInit/CommandLineInitTests
[1114/1300] Building CXX object unittests/TableGen/CMakeFiles/TableGenTests.dir/AutomataTest.cpp.o
[1115/1300] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
[1116/1300] Linking CXX executable unittests/Support/DynamicLibrary/DynamicLibraryTests
FAILED: unittests/Support/DynamicLibrary/DynamicLibraryTests 
: && /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/bin/clang++ -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/include/c++/v1 -fsanitize=address -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -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 -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--export-dynamic  -Wl,--gc-sections  -Wl,--version-script,"/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports" unittests/Support/DynamicLibrary/CMakeFiles/DynamicLibraryTests.dir/DynamicLibraryTest.cpp.o -o unittests/Support/DynamicLibrary/DynamicLibraryTests  lib/libLLVMSupport.a  lib/libLLVMSupport.a  lib/libllvm_gtest_main.a  lib/libllvm_gtest.a  lib/libDynamicLibraryLib.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  /usr/lib/x86_64-linux-gnu/libzstd.so  lib/libLLVMDemangle.a  -lpthread && :
ld.lld: error: non-exported symbol '__sanitizer_internal_memcpy' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(sanitizer_libc.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__sanitizer_internal_memmove' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(sanitizer_libc.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__sanitizer_internal_memset' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(sanitizer_libc.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load1' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load2' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load4' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load8' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load16' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store1' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store2' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store4' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store8' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store16' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_handle_no_return' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_init' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_version_mismatch_check_v8' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_register_elf_globals' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_globals.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_option_detect_stack_use_after_return' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_stack_malloc_0' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_fake_stack.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_unregister_elf_globals' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_globals.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[1117/1300] Linking CXX executable unittests/Testing/ADT/TestingADTTests
[1118/1300] Linking CXX executable unittests/Support/SupportTests
[1119/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV1Tests.cpp.o
[1120/1300] Building CXX object unittests/Transforms/Instrumentation/CMakeFiles/InstrumentationTests.dir/PGOInstrumentationTest.cpp.o
[1121/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/CSKYTargetParserTest.cpp.o
[1122/1300] Building CXX object unittests/Testing/Annotations/CMakeFiles/TestingAnnotationTests.dir/AnnotationsTest.cpp.o
[1123/1300] Building CXX object unittests/Testing/Support/CMakeFiles/TestingSupportTests.dir/TempPathTest.cpp.o
[1124/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV2Tests.cpp.o
[1125/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV3Tests.cpp.o
[1126/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV5Tests.cpp.o
[1127/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/RecordTests.cpp.o
[1128/1300] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
[1129/1300] Building CXX object unittests/Transforms/IPO/CMakeFiles/IPOTests.dir/WholeProgramDevirt.cpp.o
[1130/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV4Tests.cpp.o
[1131/1300] Building CXX object unittests/Transforms/IPO/CMakeFiles/IPOTests.dir/LowerTypeTests.cpp.o
Step 10 (stage2/asan check) failure: stage2/asan check (failure)
...
[1107/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVISAInfoTest.cpp.o
[1108/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVTargetParserTest.cpp.o
[1109/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TargetParserTest.cpp.o
[1110/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TripleTest.cpp.o
[1111/1300] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapEntryTest.cpp.o
[1112/1300] Linking CXX executable unittests/ObjCopy/ObjCopyTests
[1113/1300] Linking CXX executable unittests/Support/CommandLineInit/CommandLineInitTests
[1114/1300] Building CXX object unittests/TableGen/CMakeFiles/TableGenTests.dir/AutomataTest.cpp.o
[1115/1300] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
[1116/1300] Linking CXX executable unittests/Support/DynamicLibrary/DynamicLibraryTests
FAILED: unittests/Support/DynamicLibrary/DynamicLibraryTests 
: && /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/bin/clang++ -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/include/c++/v1 -fsanitize=address -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -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 -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--export-dynamic  -Wl,--gc-sections  -Wl,--version-script,"/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports" unittests/Support/DynamicLibrary/CMakeFiles/DynamicLibraryTests.dir/DynamicLibraryTest.cpp.o -o unittests/Support/DynamicLibrary/DynamicLibraryTests  lib/libLLVMSupport.a  lib/libLLVMSupport.a  lib/libllvm_gtest_main.a  lib/libllvm_gtest.a  lib/libDynamicLibraryLib.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  /usr/lib/x86_64-linux-gnu/libzstd.so  lib/libLLVMDemangle.a  -lpthread && :
ld.lld: error: non-exported symbol '__sanitizer_internal_memcpy' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(sanitizer_libc.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__sanitizer_internal_memmove' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(sanitizer_libc.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__sanitizer_internal_memset' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(sanitizer_libc.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load1' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load2' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load4' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load8' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_load16' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store1' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store2' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store4' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store8' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_report_store16' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_handle_no_return' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_init' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_version_mismatch_check_v8' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_register_elf_globals' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_globals.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_option_detect_stack_use_after_return' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_rtl.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_stack_malloc_0' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_fake_stack.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: non-exported symbol '__asan_unregister_elf_globals' in '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build0/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.a(asan_globals.cpp.o)' is referenced by DSO '/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_build_asan/lib/libc++abi.so'
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[1117/1300] Linking CXX executable unittests/Testing/ADT/TestingADTTests
[1118/1300] Linking CXX executable unittests/Support/SupportTests
[1119/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV1Tests.cpp.o
[1120/1300] Building CXX object unittests/Transforms/Instrumentation/CMakeFiles/InstrumentationTests.dir/PGOInstrumentationTest.cpp.o
[1121/1300] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/CSKYTargetParserTest.cpp.o
[1122/1300] Building CXX object unittests/Testing/Annotations/CMakeFiles/TestingAnnotationTests.dir/AnnotationsTest.cpp.o
[1123/1300] Building CXX object unittests/Testing/Support/CMakeFiles/TestingSupportTests.dir/TempPathTest.cpp.o
[1124/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV2Tests.cpp.o
[1125/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV3Tests.cpp.o
[1126/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV5Tests.cpp.o
[1127/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/RecordTests.cpp.o
[1128/1300] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
[1129/1300] Building CXX object unittests/Transforms/IPO/CMakeFiles/IPOTests.dir/WholeProgramDevirt.cpp.o
[1130/1300] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV4Tests.cpp.o
[1131/1300] Building CXX object unittests/Transforms/IPO/CMakeFiles/IPOTests.dir/LowerTypeTests.cpp.o

```

https://github.com/llvm/llvm-project/pull/102941


More information about the llvm-commits mailing list