Hi all,<br>I'd like to use LLVM 2.8 on a openSUSE 10.3 box and when I try to compile anything I get an error:<br><br>martin@vm:~/project/backend> clang tutorial001.m -v -emit-llvm -o tutorial001<br>clang version 2.9 (trunk 122601)<br>
Target: x86_64-unknown-linux-gnu<br>Thread model: posix<br> "/usr/local/llvm/Debug+Asserts/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -disable-free -main-file-name tutorial001.m -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.17.50.20070726 -v -resource-dir /usr/local/llvm/Debug+Asserts/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 178 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-3mbwGS.o -x objective-c tutorial001.m<br>
clang -cc1 version 2.9 based upon llvm 2.9svn hosted on x86_64-unknown-linux-gnu<br>#include "..." search starts here:<br>#include <...> search starts here:<br> /usr/local/include<br> /usr/local/llvm/Debug+Asserts/bin/../lib/clang/2.9/include<br>
 /usr/include<br>End of search list.<br> "/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o tutorial001 /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o crtbegin.o -L -L/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/../../.. /tmp/cc-3mbwGS.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crtend.o /usr/lib/../lib64/crtn.o<br>
/usr/bin/ld: crtbegin.o: No such file: No such file or directory<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br><br>I did some research already and if I understand it correctly the problem is a non-standard gcc location (/usr/lib64/gcc/x86_64-suse-linux/4.2.1). As I did not find any simple solution for this problem I was hoping that this mailing list might be the right place to get some suggestions on how to fix it.<br>
<br>Thank you!<br><br>