[cfe-dev] test_fallback_malloc.pass.cpp fails on Linux
Dan Albert
danalbert at google.com
Fri Jan 23 01:17:30 PST 2015
Would be better to use compiler-rt when using libunwind (so we don't link
two unwinders), but it should be fine to link libgcc as long as it comes
after libunwind.
On Jan 23, 2015 1:13 AM, "İsmail Dönmez" <ismail at donmez.ws> wrote:
> Hi,
>
> Looks like this test needs to link to gcc_s :
>
> ******************** TEST 'libc++abi :: test_fallback_malloc.pass.cpp'
> FAILED ********************
> Command: ['/havana/dist/llvm/bin/clang++', '-o',
> '/havana/src/llvm/build/lib/test/Output/test_fallback_malloc.pass.cpp.exe',
> '/
> havana/src/llvm/build/lib/test/Output/test_fallback_malloc.pass.cpp.o',
> '-v', '-nodefaultlibs', '-L/havana/src/llvm/build/lib',
> '-Wl,-rpath,/havana/src/llvm/build/lib',
> '-L/havana/src/llvm/build/lib',
> '-Wl,-rpath,/havana/src/llvm/build/lib', '-lc++', '-l
> c++abi', '-lc', '-lm', '-lpthread', '-lrt', '-lunwind', '-ldl']
> Exit Code: 1
> Standard Error:
> --
> clang version 3.7.0 (trunk 226705)
> Target: armv7l-unknown-linux-gnueabihf
> Thread model: posix
> Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.9
> Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.9.1
> Selected GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.9
> Candidate multilib: .;@m32
> Selected multilib: .;@m32
> "/usr/bin/ld" -X --eh-frame-hdr -m armelf_linux_eabi -dynamic-linker
> /lib/ld-linux-armhf.so.3 -o /havana/src/llvm/build/lib/te
> st/Output/test_fallback_malloc.pass.cpp.exe
> /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crt1.o
> /usr/lib/g
> cc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crti.o
> /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtbegin.o -L/havana/src/ll
> vm/build/lib -L/havana/src/llvm/build/lib
> -L/usr/lib/gcc/arm-linux-gnueabihf/4.9
> -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../.
> ./arm-linux-gnueabihf
> -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../lib
> -L/havana/dist/llvm/bin/../lib -L/lib/arm-linux-gn
> ueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib
> -L/usr/lib/arm-linux-gnueabihf/../../lib -L/usr/lib/gcc/
> arm-linux-gnueabihf/4.9/../../.. -L/havana/dist/llvm/bin/../lib -L/lib
> -L/usr/lib /havana/src/llvm/build/lib/test/Output/test_f
> allback_malloc.pass.cpp.o -rpath /havana/src/llvm/build/lib -rpath
> /havana/src/llvm/build/lib -lc++ -lc++abi -lc -lm -lpthread
> -lrt -lunwind -ldl /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtend.o
> /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueab
> ihf/crtn.o
> /usr/bin/ld:
> /havana/src/llvm/build/lib/test/Output/test_fallback_malloc.pass.cpp.o:
> undefined reference to symbol '__aeabi_idi
> v@@GCC_3.5'
> /lib/arm-linux-gnueabihf/libgcc_s.so.1: error adding symbols: DSO
> missing from command line
> clang-3.7: error: linker command failed with exit code 1 (use -v to
> see invocation)
> --
>
> Compilation failed unexpectedly!
> ********************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150123/bbe28935/attachment.html>
More information about the cfe-dev
mailing list