Jack Howarth
2012-Nov-06 14:08 UTC
[LLVMdev] undefined symbols in AddressSanitizer tests on darwin
At 167457 on x86_64-apple-darwin12, I am seeing a slew of AddressSanitizer failures due to unresolved symbols such as... Exit Code: 1 Command Output (stderr): -- Undefined symbols for architecture x86_64: "___asan_init", referenced from: _asan.module_ctor in shared-lib-test-so-moBSTe.o "___asan_register_globals", referenced from: _asan.module_ctor in shared-lib-test-so-moBSTe.o "___asan_report_load4", referenced from: _inc in shared-lib-test-so-moBSTe.o "___asan_report_store4", referenced from: _inc in shared-lib-test-so-moBSTe.o "___asan_unregister_globals", referenced from: _asan.module_dtor in shared-lib-test-so-moBSTe.o ld: symbol(s) not found for architecture x86_64 clang-3: error: linker command failed with exit code 1 (use -v to see invocation) -- ******************** FAIL: AddressSanitizer :: sleep_before_dying.c (27 of 12557) ******************** TEST 'AddressSanitizer :: sleep_before_dying.c' FAILED ******************** Script: -- /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -g -fsanitize=address -O2 /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c -o /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp ASAN_OPTIONS="sleep_before_dying=1" /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp 2>&1 | FileCheck /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c -- Exit Code: 1 Command Output (stderr): -- Undefined symbols for architecture x86_64: "___asan_init", referenced from: _asan.module_ctor in sleep_before_dying-x9Fh1M.o "___asan_report_load1", referenced from: _main in sleep_before_dying-x9Fh1M.o ld: symbol(s) not found for architecture x86_64 clang-3: error: linker command failed with exit code 1 (use -v to see invocation) -- ******************** FAIL: AddressSanitizer :: stack-overflow.cc (28 of 12557) ******************** TEST 'AddressSanitizer :: stack-overflow.cc' FAILED ******************** Script: -- /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O0 /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc -o /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp && /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp 2>&1 | /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py | c++filt | FileCheck /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc etc. Is this occuring on linux as well? Jack
Kostya Serebryany
2012-Nov-06 14:18 UTC
[LLVMdev] undefined symbols in AddressSanitizer tests on darwin
The fix is under review. --kcc On Tue, Nov 6, 2012 at 6:08 AM, Jack Howarth <howarth at bromo.med.uc.edu>wrote:> At 167457 on x86_64-apple-darwin12, I am seeing a slew of > AddressSanitizer failures due to > unresolved symbols such as... > > Exit Code: 1 > Command Output (stderr): > -- > Undefined symbols for architecture x86_64: > "___asan_init", referenced from: > _asan.module_ctor in shared-lib-test-so-moBSTe.o > "___asan_register_globals", referenced from: > _asan.module_ctor in shared-lib-test-so-moBSTe.o > "___asan_report_load4", referenced from: > _inc in shared-lib-test-so-moBSTe.o > "___asan_report_store4", referenced from: > _inc in shared-lib-test-so-moBSTe.o > "___asan_unregister_globals", referenced from: > _asan.module_dtor in shared-lib-test-so-moBSTe.o > ld: symbol(s) not found for architecture x86_64 > clang-3: error: linker command failed with exit code 1 (use -v to see > invocation) > -- > > ******************** > FAIL: AddressSanitizer :: sleep_before_dying.c (27 of 12557) > ******************** TEST 'AddressSanitizer :: sleep_before_dying.c' > FAILED ******************** > Script: > -- > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -g > -fsanitize=address -O2 > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c > -o > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp > ASAN_OPTIONS="sleep_before_dying=1" > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp > 2>&1 | FileCheck > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c > -- > Exit Code: 1 > Command Output (stderr): > -- > Undefined symbols for architecture x86_64: > "___asan_init", referenced from: > _asan.module_ctor in sleep_before_dying-x9Fh1M.o > "___asan_report_load1", referenced from: > _main in sleep_before_dying-x9Fh1M.o > ld: symbol(s) not found for architecture x86_64 > clang-3: error: linker command failed with exit code 1 (use -v to see > invocation) > -- > > ******************** > FAIL: AddressSanitizer :: stack-overflow.cc (28 of 12557) > ******************** TEST 'AddressSanitizer :: stack-overflow.cc' FAILED > ******************** > Script: > -- > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -ccc-cxx > -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer > -fno-optimize-sibling-calls -g -m64 -O0 > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc > -o > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp > && > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp > 2>&1 | > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py > | c++filt | FileCheck > /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc > > etc. Is this occuring on linux as well? > Jack > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121106/b821c7ac/attachment.html>
Alexey Samsonov
2012-Nov-06 16:36 UTC
[LLVMdev] undefined symbols in AddressSanitizer tests on darwin
Fix is in (r167460). On Tue, Nov 6, 2012 at 6:18 PM, Kostya Serebryany <kcc at google.com> wrote:> The fix is under review. > > --kcc > > > On Tue, Nov 6, 2012 at 6:08 AM, Jack Howarth <howarth at bromo.med.uc.edu>wrote: > >> At 167457 on x86_64-apple-darwin12, I am seeing a slew of >> AddressSanitizer failures due to >> unresolved symbols such as... >> >> Exit Code: 1 >> Command Output (stderr): >> -- >> Undefined symbols for architecture x86_64: >> "___asan_init", referenced from: >> _asan.module_ctor in shared-lib-test-so-moBSTe.o >> "___asan_register_globals", referenced from: >> _asan.module_ctor in shared-lib-test-so-moBSTe.o >> "___asan_report_load4", referenced from: >> _inc in shared-lib-test-so-moBSTe.o >> "___asan_report_store4", referenced from: >> _inc in shared-lib-test-so-moBSTe.o >> "___asan_unregister_globals", referenced from: >> _asan.module_dtor in shared-lib-test-so-moBSTe.o >> ld: symbol(s) not found for architecture x86_64 >> clang-3: error: linker command failed with exit code 1 (use -v to see >> invocation) >> -- >> >> ******************** >> FAIL: AddressSanitizer :: sleep_before_dying.c (27 of 12557) >> ******************** TEST 'AddressSanitizer :: sleep_before_dying.c' >> FAILED ******************** >> Script: >> -- >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -g >> -fsanitize=address -O2 >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c >> -o >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp >> ASAN_OPTIONS="sleep_before_dying=1" >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/sleep_before_dying.c.tmp >> 2>&1 | FileCheck >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c >> -- >> Exit Code: 1 >> Command Output (stderr): >> -- >> Undefined symbols for architecture x86_64: >> "___asan_init", referenced from: >> _asan.module_ctor in sleep_before_dying-x9Fh1M.o >> "___asan_report_load1", referenced from: >> _main in sleep_before_dying-x9Fh1M.o >> ld: symbol(s) not found for architecture x86_64 >> clang-3: error: linker command failed with exit code 1 (use -v to see >> invocation) >> -- >> >> ******************** >> FAIL: AddressSanitizer :: stack-overflow.cc (28 of 12557) >> ******************** TEST 'AddressSanitizer :: stack-overflow.cc' FAILED >> ******************** >> Script: >> -- >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/bin/clang -ccc-cxx >> -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer >> -fno-optimize-sibling-calls -g -m64 -O0 >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc >> -o >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp >> && >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/projects/compiler-rt/lib/asan/lit_tests/Output/stack-overflow.cc.tmp >> 2>&1 | >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/../lit_tests/../scripts/asan_symbolize.py >> | c++filt | FileCheck >> /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc >> >> etc. Is this occuring on linux as well? >> Jack >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > >-- Alexey Samsonov, MSK -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121106/8c48da48/attachment.html>
Maybe Matching Threads
- [LLVMdev] undefined symbols in AddressSanitizer tests on darwin
- [LLVMdev] undefined symbols in AddressSanitizer tests on darwin
- [LLVMdev] linker warnings in Linking CXX executable Debug/AsanTest
- [LLVMdev] linker warnings in Linking CXX executable Debug/AsanTest
- [LLVMdev] linker warnings in Linking CXX executable Debug/AsanTest