[LLVMdev] problem building gcc4 front end on fedora core 5
Ram Bhamidipaty
rambham at gmail.com
Sun Dec 3 05:20:30 PST 2006
I'm getting a build error when trying to build gcc4 from sources. This is
for the recent 1.9 release.
How I built llvm-1.9:
-----------------------------
tar zxf llvm-1.9.tar.gz
cd llvm-1.9/
./configure --prefix=/custom/llvm-1.9
make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION='-O2' tools-only
make install
How I built gcc4:
-----------------------------
export PATH=/custom/llvm-1.9/bin:.../llvm-1.9/Release/bin:$PATH
tar zxf llvm-gcc4-1.9.source.tar.gz
mkdir llvm-gcc4-1.9.build
cd llvm-gcc4-1.9.build
../llvm-gcc4-1.9.source/configure --prefix=/custom/llvm-1.9-gcc4
--enable-languages=c,c++ --enable-checking --with-llvm=...../llvm-1.9
--disable-threads --program-prefix=llvm-
make
-------------------
This results in the following error:
/bulk/src/LLVM/llvm-gcc-build/gcc/xgcc
-B/bulk/src/LLVM/llvm-gcc-build/gcc/
-B/custom/llvm-1.9-gcc4/i686-pc-linux-gnu/bin/
-B/custom/llvm-1.9-gcc4/i686-pc-linux-gnu/lib/ -isystem
/custom/llvm-1.9-gcc4/i686-pc-linux-gnu/include -isystem
/custom/llvm-1.9-gcc4/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc4-1.9.source/gcc
-I../../llvm-gcc4-1.9.source/gcc/.
-I../../llvm-gcc4-1.9.source/gcc/../include
-I../../llvm-gcc4-1.9.source/gcc/../libcpp/include -DL_mulvdi3
-fvisibility=hidden -DHIDE_EXPORTS -c
../../llvm-gcc4-1.9.source/gcc/libgcc2.c -o libgcc/./_mulvdi3.o
../../llvm-gcc4-1.9.source/gcc/libgcc2.c:403: internal compiler error:
in prune_unused_types_update_strings, at dwarf2out.c:14372
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.
make[2]: *** [libgcc/./_mulvdi3.o] Error 1
make[2]: Leaving directory `/bulk/src/LLVM/llvm-gcc-build/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/bulk/src/LLVM/llvm-gcc-build/gcc'
make: *** [all-gcc] Error 2
----------------------
Can anyone suggest some things I can do to figure out the source of the
problem?
Thanks for any info.
-Ram
More information about the llvm-dev
mailing list