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>
Duncan Sands
2008-Dec-13 19:31 UTC
[LLVMdev] internal compiler error problem in build llvm-gcc
Hi,> gcc: gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)most likely the version of gcc you are using is broken. See http://llvm.org/docs/GettingStarted.html#brokengcc Ciao, Duncan.
Dan Villiom Podlaski Christiansen
2008-Dec-13 23:50 UTC
[LLVMdev] internal compiler error problem in build llvm-gcc
On 13 Dec 2008, at 20:31, Duncan Sands wrote:> Hi, > >> gcc: gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) > > most likely the version of gcc you are using is broken. > See http://llvm.org/docs/GettingStarted.html#brokengccIt very well may be. It's a slightly older version of the GCC (Red Hat 4.1.2-42) than on the installation I have access to, where the default GCC cannot compile LLVM. I'd suggest downloading the LLVM GCC binaries from <http://llvm.org/releases/download.html#2.4> and use them as a bootstrap compiler. -- Dan Villiom Podlaski Christiansen, stud. scient. danchr at gmail.com