Dear guys, my llvm-gcc does not compile stdlib.h correctly. I found this explanation here: http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=567 Indeed, I am running Mac OS 10.4. Do I have to rebuild my gcc front-end from source, or there is a script in the LLVM website that could help me? Best regards, Fernando
Rebuilding llvm-gcc4 from source should work fine. Please see the directions in the file README.LLVM at the top level src directory. You can check llvm-gcc4 out from Subversion with the command: svn co svn://anonsvn.opensource.apple.com/svn/llvm/trunk llvm-gcc4 Reid. On Sat, 2006-08-19 at 20:15 -0700, Fernando Magno Quintao Pereira wrote:> Dear guys, > > my llvm-gcc does not compile stdlib.h correctly. I found this > explanation > here: http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=567 > Indeed, I am running Mac OS 10.4. Do I have to rebuild my gcc > front-end from source, or there is a script in the LLVM website that could > help me? > > Best regards, > > Fernando > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> Rebuilding llvm-gcc4 from source should work fine. Please see the > directions in the file README.LLVM at the top level src directory. You > can check llvm-gcc4 out from Subversion with the command:Dear guys, I've rebuild my llvm-gcc3 (not llvm-gcc4) from source, and now it can find stdlib.c and all the other sources, but I am having some other problems with the new libraries. 1) If I try: llvm-gcc source.c -o source; llc -f source.bc -o ch.s ; gcc ch.s -o exec, I end up getting this error from gcc: /usr/bin/ld: Undefined symbols: ___main collect2: ld returned 1 exit status If I fix this, by replacing ___main by main manually, the program seg-faults. It used to work fine with the cfrontend that came together with llvm. Do you guys know what can be happening? 2) If I try: llvm-g++ source.cpp -o source ; source I get this error: ERROR: Program used external function '__llvm_eh_add_uncaught_exception' which could not be resolved! Abort Could some one help me fixing this? Do I have to use llvm-gcc4? All the best, Fernando