[LLVMdev] GCC_4.2.0 problem
nicholas at mxc.ca
Thu Sep 28 07:19:37 PDT 2006
Fredrik Svensson wrote:
> It is just the LD_LIBRARY_PATH that brings in the "llvm" libgcc_s.so.1
> that breaks the compilation.
> I added this to my build script and now llvm builds properly.
> cd build
> ../llvm-gcc4/configure --prefix=$LLVM/install --enable-llvm=$LLVMOBJDIR
> --enable-languages=c --disable-threads
> sed -i 's/LD_LIBRARY_PATH/DUMMY_LD_LIBRARY_PATH_DUMMY/g' Makefile
> make install
> The bugreport mentions this, but since the Makefile is not there before make,
> one save oneself an make/make clean trip.
> Hopefully it helps someone that is fighting with this problem.
> I am not sure if it gives any sideeffects but I have not seen any so far.
Thanks for that workaround. What I've been doing is copying
/lib/libgcc_s.so.1 over LLVM's copy and rebuilding xgcc.
A long-term fix for this would be nice.
Why does llvm-gcc build its own libgcc_s.so? Would we have the same
problem if we tried to build FSF GCC 4.01, or is this problem LLVM-specific?
More information about the llvm-dev