<p dir="ltr">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.</p>
<div class="gmail_quote">On Jan 23, 2015 1:13 AM, "İsmail Dönmez" <<a href="mailto:ismail@donmez.ws">ismail@donmez.ws</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Looks like this test needs to link to gcc_s :<br>
<br>
******************** TEST 'libc++abi :: test_fallback_malloc.pass.cpp'<br>
FAILED ********************<br>
Command: ['/havana/dist/llvm/bin/clang++', '-o',<br>
'/havana/src/llvm/build/lib/test/Output/test_fallback_malloc.pass.cpp.exe',<br>
'/<br>
havana/src/llvm/build/lib/test/Output/test_fallback_malloc.pass.cpp.o',<br>
'-v', '-nodefaultlibs', '-L/havana/src/llvm/build/lib',<br>
 '-Wl,-rpath,/havana/src/llvm/build/lib',<br>
'-L/havana/src/llvm/build/lib',<br>
'-Wl,-rpath,/havana/src/llvm/build/lib', '-lc++', '-l<br>
c++abi', '-lc', '-lm', '-lpthread', '-lrt', '-lunwind', '-ldl']<br>
Exit Code: 1<br>
Standard Error:<br>
--<br>
clang version 3.7.0 (trunk 226705)<br>
Target: armv7l-unknown-linux-gnueabihf<br>
Thread model: posix<br>
Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.9<br>
Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.9.1<br>
Selected GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/4.9<br>
Candidate multilib: .;@m32<br>
Selected multilib: .;@m32<br>
 "/usr/bin/ld" -X --eh-frame-hdr -m armelf_linux_eabi -dynamic-linker<br>
/lib/ld-linux-armhf.so.3 -o /havana/src/llvm/build/lib/te<br>
st/Output/test_fallback_malloc.pass.cpp.exe<br>
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crt1.o<br>
/usr/lib/g<br>
cc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crti.o<br>
/usr/lib/gcc/arm-linux-gnueabihf/4.9/crtbegin.o -L/havana/src/ll<br>
vm/build/lib -L/havana/src/llvm/build/lib<br>
-L/usr/lib/gcc/arm-linux-gnueabihf/4.9<br>
-L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../.<br>
./arm-linux-gnueabihf<br>
-L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../lib<br>
-L/havana/dist/llvm/bin/../lib -L/lib/arm-linux-gn<br>
ueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib<br>
-L/usr/lib/arm-linux-gnueabihf/../../lib -L/usr/lib/gcc/<br>
arm-linux-gnueabihf/4.9/../../.. -L/havana/dist/llvm/bin/../lib -L/lib<br>
-L/usr/lib /havana/src/llvm/build/lib/test/Output/test_f<br>
allback_malloc.pass.cpp.o -rpath /havana/src/llvm/build/lib -rpath<br>
/havana/src/llvm/build/lib -lc++ -lc++abi -lc -lm -lpthread<br>
-lrt -lunwind -ldl /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtend.o<br>
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueab<br>
ihf/crtn.o<br>
/usr/bin/ld: /havana/src/llvm/build/lib/test/Output/test_fallback_malloc.pass.cpp.o:<br>
undefined reference to symbol '__aeabi_idi<br>
v@@GCC_3.5'<br>
/lib/arm-linux-gnueabihf/libgcc_s.so.1: error adding symbols: DSO<br>
missing from command line<br>
clang-3.7: error: linker command failed with exit code 1 (use -v to<br>
see invocation)<br>
--<br>
<br>
Compilation failed unexpectedly!<br>
********************<br>
</blockquote></div>