New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Fixed
Closed: Jul 2017
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug

Sign in to add a comment

Issue 745773: nonsfi_loader stopped linking after libc++ switch

Reported by, Jul 18 2017 Project Member

Issue description
[1680/46904] LINK ./nonsfi_loader
FAILED: nonsfi_loader 
python "../../build/toolchain/" --output="./nonsfi_loader" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -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 -nodefaultlibs -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=vptr -fsanitize-coverage=trace-pc-guard -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -o "./nonsfi_loader" -Wl,--start-group @"./nonsfi_loader.rsp"  -Wl,--end-group   -lc -lm -lgcc_s -lrt -ldl -lpthread 
/b/c/builder/ClangToTLinuxUBSanVptr/src/third_party/llvm/compiler-rt/lib/ubsan/ error: undefined reference to 'typeinfo for __cxxabiv1::__si_class_type_info'
/b/c/builder/ClangToTLinuxUBSanVptr/src/third_party/llvm/compiler-rt/lib/ubsan/ error: undefined reference to 'typeinfo for __cxxabiv1::__class_type_info'
/b/c/builder/ClangToTLinuxUBSanVptr/src/third_party/llvm/compiler-rt/lib/ubsan/ error: undefined reference to '__dynamic_cast'
/b/c/builder/ClangToTLinuxUBSanVptr/src/third_party/llvm/compiler-rt/lib/ubsan/ error: undefined reference to 'typeinfo for __cxxabiv1::__vmi_class_type_info'
/b/c/builder/ClangToTLinuxUBSanVptr/src/third_party/llvm/compiler-rt/lib/ubsan/ error: undefined reference to '__dynamic_cast'
/b/c/builder/ClangToTLinuxUBSanVptr/src/third_party/llvm/compiler-rt/lib/ubsan/ error: undefined reference to '__dynamic_cast'

Nothing depends on the target, it's only built if you build 'all' (which most bots don't do, but this one does).

Looks like nonsfi_loader is C-only and doesn't need a C++ library usually. It does need abi stuff in asan mode though.

Do we just add the exe_and_shlib_deps dep anyways?

Comment 1 by, Jul 19 2017

This is causing the ClangToTLinuxASan and ClangToTLinuxUBSanVptr bots to be red, so I would like to get it fixed.

thakis, is the exe_and_shlib_deps only used to add sanitizer libraries to sanitizer builds? If so, that sounds like just the ticket to me.

Comment 2 by, Jul 19 2017

Status: Started (was: Untriaged)
c#1: yes;  I'll create a quick CL for this

Comment 3 by, Jul 20 2017

Project Member
The following revision refers to this bug:

commit c6daaeebc89b1445d744bd1f4a456933d68ce620
Author: <>
Date: Thu Jul 20 01:47:37 2017

Roll src/native_client/ 015356a98..01a28a606 (1 commit)

$ git log 015356a98..01a28a606 --date=short --no-merges --format='%ad %ae %s'
2017-07-19 thomasanderson Add missing dependency on exe_and_shlib_deps

Created with:
  roll-dep src/native_client
BUG= 745773 

Documentation for the AutoRoller is here:

If the roll is causing failures, see:


Change-Id: Iead54c72a7c511750ff4a4c16526e85505fd708c
Reviewed-by: <>
Commit-Queue: <>
Cr-Commit-Position: refs/heads/master@{#488088}

Comment 4 by, Jul 20 2017

Status: Fixed (was: Started)

Sign in to add a comment