building llvm using gcc 3.4.2


Can I build llvm with gcc 3.4.2 !!!!

I'm getting the following error when I trying to build llvm 2.5 and also 2.4

make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/remote/users/hsenussi/edifact/llvm-2.4/lib/Transforms/IPO'
make[3]: Entering directory `/remote/users/hsenussi/edifact/llvm-2.4/lib/Transforms/Hello'
llvm[3]: Linking Release Loadable Module
/data/softs/gcc-3.4.2/lib/../lib/ could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [/remote/users/hsenussi/edifact/llvm-2.4/Release//lib/] Error 1
make[3]: Leaving directory `/remote/users/hsenussi/edifact/llvm-2.4/lib/Transforms/Hello'
make[2]: *** [Hello/.makeall] Error 2
make[2]: Leaving directory `/remote/users/hsenussi/edifact/llvm-2.4/lib/Transforms'
make[1]: *** [Transforms/.makeall] Error 2
make[1]: Leaving directory `/remote/users/hsenussi/edifact/llvm-2.4/lib'
make: *** [all] Error 1

And this how I configured make files

./configure --enable-pic

I'm need to use llvm with llvmruby and it stated that it has to be built with --enable-pic


This looks like a problem with your gcc installation.


GCC 3.4.2 is not recommended for use with LLVM:

2009/7/29 Husam Senussi <>