[LLVMbugs] [Bug 3710] New: llvm-gcc fails to build: Assertion `Cost == C && " Cost exceeds InlineCost precision"' failed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Mar 3 09:16:39 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3710

           Summary: llvm-gcc fails to build: Assertion `Cost == C && "Cost
                    exceeds InlineCost precision"' failed
           Product: Build scripts
           Version: 2.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jeffhao at umich.edu
                CC: llvmbugs at cs.uiuc.edu


I've installed llvm 2.5 and was trying to make the new llvm-gcc from source for
2.5.  LLVM installed, llvm-gcc errors out with the message:

cc1: /x/jeffhao/llvm/llvm/include/llvm/Transforms/Utils/InlineCost.h:44:
llvm::InlineCost::InlineCost(int, int): Assertion `Cost == C && "Cost exceeds
InlineCost precision"' failed.
../../llvm-gcc4.2-2.5.source/gcc/libgcov.c:644: internal compiler error:
Aborted

This is using the new 2.5 releases of both llvm and llvm-gcc on a 64-bit Intel
Quad Core running Red Hat el5 with kernel version 2.6.

I used these 2 commands to generate the error:

../llvm-gcc4.2-2.5.source/configure --prefix=/x/jeffhao/llvm/llvm-gcc/install
--program-prefix=llvm- --enable-llvm=/x/jeffhao/llvm/llvm-objects
--enable-languages=c,c++ --enable-checking --disable-shared

make

Here's the end of the output captured after configuring and making llvm-gcc:

/x/jeffhao/llvm/llvm-gcc/objects/./gcc/xgcc
-B/x/jeffhao/llvm/llvm-gcc/objects/./gcc/
-B/x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/bin/
-B/x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/lib/ -isystem
/x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/include -isystem
/x/jeffhao/llvm/llvm-gcc/install/x86_64-unknown-linux-gnu/sys-include  -O2  -O2
-g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/.
-I../../llvm-gcc4.2-2.5.source/gcc/../include
-I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include 
-I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber
-I/x/jeffhao/llvm/llvm-objects/include -I/x/jeffhao/llvm/llvm/include 
-fexceptions -c ../../llvm-gcc4.2-2.5.source/gcc/unwind-dw2.c -o
libgcc/./unwind-dw2.o
cc1: /x/jeffhao/llvm/llvm/include/llvm/Transforms/Utils/InlineCost.h:44:
llvm::InlineCost::InlineCost(int, int): Assertion `Cost == C && "Cost exceeds
InlineCost precision"' failed.
../../llvm-gcc4.2-2.5.source/gcc/unwind-dw2.c:1527: internal compiler error:
Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make[4]: *** [libgcc/./unwind-dw2.o] Error 1
make[4]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects/gcc'
make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/x/jeffhao/llvm/llvm-gcc/objects'
make: *** [all] Error 2


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list