building llvm using gcc 3.4.2

Hi,

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 LLVMHello.so
/data/softs/gcc-3.4.2/lib/../lib/libstdc++.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [/remote/users/hsenussi/edifact/llvm-2.4/Release//lib/LLVMHello.la] 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

Thanks

This looks like a problem with your gcc installation.

-eric

GCC 3.4.2 is not recommended for use with LLVM:
http://llvm.org/docs/GettingStarted.html#brokengcc

2009/7/29 Husam Senussi <husam@senussi.com>