ClangToTLinuxASan failing compile with pthread and dlsym link errors |
||
Issue descriptionFrom https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxASan/builds/7540 [2025/45231] LINK ./sel_ldr FAILED: sel_ldr python "../../build/toolchain/gcc_link_wrapper.py" --output="./sel_ldr" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -pie -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -m64 -Werror -Wl,-O1 -Wl,--gc-sections --sysroot=../../build/linux/debian_jessie_amd64-sysroot -L../../build/linux/debian_jessie_amd64-sysroot/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_jessie_amd64-sysroot/lib/x86_64-linux-gnu -L../../build/linux/debian_jessie_amd64-sysroot/usr/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_jessie_amd64-sysroot/usr/lib/x86_64-linux-gnu -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=leak -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -Wl,-u_sanitizer_options_link_helper -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=leak -nodefaultlibs -Wl,-rpath,\$ORIGIN/ -L. -o "./sel_ldr" -Wl,--start-group @"./sel_ldr.rsp" ./libc++.so -Wl,--end-group -lrt -lc -lm -lgcc_s ../../native_client/src/trusted/service_runtime/linux/thread_suspension.c:272: error: undefined reference to 'pthread_kill' ../../native_client/src/shared/platform/posix/nacl_host_desc.c:177: error: undefined reference to 'pthread_once' ../../native_client/src/shared/platform/posix/nacl_host_desc.c:177: error: undefined reference to 'pthread_once' ../../native_client/src/shared/platform/posix/nacl_threads.c:56: error: undefined reference to 'pthread_attr_setstacksize' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/asan/asan_linux.cc:172: error: undefined reference to 'dlsym' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/asan/asan_posix.cc:98: error: undefined reference to 'pthread_key_create' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/asan/asan_posix.cc:115: error: undefined reference to 'pthread_setspecific' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/asan/asan_posix.cc:103: error: undefined reference to 'pthread_getspecific' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/asan/asan_posix.cc:108: error: undefined reference to 'pthread_setspecific' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/interception/interception_linux.cc:23: error: undefined reference to 'dlsym' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/interception/interception_linux.cc:29: error: undefined reference to 'dlvsym' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:110: error: undefined reference to 'pthread_getattr_np' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:123: error: undefined reference to 'dlsym' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:169: error: undefined reference to 'dlsym' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc:355: error: undefined reference to 'pthread_attr_setstacksize' /b/c/builder/ClangToTLinuxASan/src/third_party/llvm/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc:355: error: undefined reference to 'pthread_attr_setstacksize' clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
,
Jun 5 2017
,
Jun 6 2017
The following revision refers to this bug: https://chromium.googlesource.com/native_client/src/native_client.git/+/b1f13a7bdc7280b765cd821908fd75d7ea3b354a commit b1f13a7bdc7280b765cd821908fd75d7ea3b354a Author: Tom Anderson <thomasanderson@chromium.org> Date: Tue Jun 06 00:12:11 2017 Cleanup sel_ldr target sel_ldr removes the default_libs config, which adds dependencies on librt and libdl; it also adds the dependency on librt back. Now, libdl is needed for asan and msan builds, so this CL adds the default_libs config back. BUG= chromium:729820 R=bradnelson@chromium.org NOTRY=true Change-Id: Ie6bd877597e565a015feaf433a46a6168c9393a2 Reviewed-on: https://chromium-review.googlesource.com/518463 Commit-Queue: Brad Nelson <bradnelson@chromium.org> Reviewed-by: Brad Nelson <bradnelson@chromium.org> [modify] https://crrev.com/b1f13a7bdc7280b765cd821908fd75d7ea3b354a/src/trusted/service_runtime/BUILD.gn
,
Jun 6 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/236ebc6900f1acf1d197537bf222c72992b97f1e commit 236ebc6900f1acf1d197537bf222c72992b97f1e Author: nacl-deps-roller@chromium.org <nacl-deps-roller@chromium.org> Date: Tue Jun 06 02:32:45 2017 Roll src/native_client/ 3e3253af7..b1f13a7bd (1 commit) https://chromium.googlesource.com/native_client/src/native_client.git/+log/3e3253af7d20..b1f13a7bdc72 $ git log 3e3253af7..b1f13a7bd --date=short --no-merges --format='%ad %ae %s' 2017-05-30 thomasanderson Cleanup sel_ldr target Created with: roll-dep src/native_client BUG= 729820 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, see: http://www.chromium.org/developers/tree-sheriffs/sheriff-details-chromium#TOC-Failures-due-to-DEPS-rolls CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_dbg_32_ng,linux_nacl_sdk_build TBR=mseaborn@chromium.org Change-Id: I67de971e36fbbcce301b97cd627ef37b1d82caf4 Reviewed-on: https://chromium-review.googlesource.com/525114 Reviewed-by: <nacl-deps-roller@chromium.org> Commit-Queue: <nacl-deps-roller@chromium.org> Cr-Commit-Position: refs/heads/master@{#477159} [modify] https://crrev.com/236ebc6900f1acf1d197537bf222c72992b97f1e/DEPS
,
Jun 6 2017
The bot is green now. Thanks! |
||
►
Sign in to add a comment |
||
Comment 1 by euge...@chromium.org
, Jun 5 2017