New issue
Advanced search Search tips

Issue 716204 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

clang can't use compiler-rt as rtlib when sysroot is set.

Project Member Reported by manojgupta@chromium.org, Apr 27 2017

Issue description

Using compiler-rt as default rtlib needs libunwind.
However, currently libunwind is installed in /usr/$CTARGET/usr/lib and linker can't find it. 
Therefore, libunwind or llvm-libwind must be installed on target board by default during setup_board (same as gcc-libs).

x86_64-cros-linux-gnu-clang++ a.cc  -o a.out -rtlib=compiler-rt -fsanitize=address --sysroot=/build/amd64-generic 
/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real: error: cannot find -lunwind
/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real: error: cannot find -lunwind
 
Status: WontFix (was: Untriaged)
Decided to use gcc_eh for unwinding. So no need for libunwind.

Sign in to add a comment