[LLVMdev] Using non-system compiler to build llvm and llvm-gcc front end

Duncan Sands baldrick at free.fr
Tue May 5 12:26:58 PDT 2009


Hi,

> cc1: /pkg/build/llvm/llvm-2.5/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 indeed a miscompilation by your system compiler.  However so many
compilers miscompiled this that a workaround was committed to svn.  So you
may want to check out llvm and llvm-gcc from svn.  Alternatively, maybe
the patch applies to llvm 2.5 too.  I've attached it.


Ciao,

Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r69515.diff
Type: text/x-patch
Size: 2685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090505/9bd657ee/attachment.bin>


More information about the llvm-dev mailing list