[LLVMdev] internal compiler error problem in build llvm-gcc

劉建隆 cllou1103 at gmail.com
Sat Dec 13 08:06:07 PST 2008


Hi,

When i wanted to build the llvm-gcc, i got the problem as following.
==========================================================================================================================
cc1: /home/cllou/LLVM/llvm-2.4-dir/llvm-2.4/lib/Support/StringMap.cpp:177:
void llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase*): Assertion `V
== V2 && "Didn't find key?"' failed.
../../llvm-gcc4.2-2.4.source/gcc/libgcc2.c:809: internal compiler error:
Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter<http://developer.apple.com/bugreporter>>
for instructions.
make[4]: *** [libgcc/./_popcountsi2.o] Error 1
make[4]: Leaving directory
`/home/cllou/LLVM/llvm-2.4-dir/llvm-gcc4.2-2.4_obj/gcc'
make[3]: *** [libgcc.a] Error 2
make[3]: Leaving directory
`/home/cllou/LLVM/llvm-2.4-dir/llvm-gcc4.2-2.4_obj/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/home/cllou/LLVM/llvm-2.4-dir/llvm-gcc4.2-2.4_obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/home/cllou/LLVM/llvm-2.4-dir/llvm-gcc4.2-2.4_obj'
make: *** [all] Error 2
=============================================================================================================================
Both of the LLVM and llvm-gcc were downloaded form svn
We do some instruction commands in READNE.LLVM
1. ../llvm/configure --prefix=/home/cllou/LLVM/llvm-2.4-dir/llvm_install/
--enable-optimized
2. make ENABLE_OPTIMIZED=1
and build the LLVM successfully.
3. ../llvm-gcc/configure
--prefix=/home/cllou/LLVM/llvm-2.4-dir/llvm_gcc_install/
--program-prefix=llvm- --enable-llvm=/home/cllou/LLVM/llvm-2.4-dir/llvm_obj/
--enable-languages=c,c++
4. make
and got the "../../llvm-gcc4.2-2.4.source/gcc/libgcc2.c:809: internal
compiler error: Aborted"

my environment is following:
OS: fedora8-32
gcc: gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

Are anyone could help me to fix the problem? I am the beginner of LLVM....
:(

Thanks :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081214/1315895d/attachment.html>


More information about the llvm-dev mailing list