[LLVMdev] datapoint for recent llvm-gcc4 build failures
Reid Spencer
rspencer at reidspencer.com
Thu Nov 9 15:51:40 PST 2006
Gentlemen,
>From the GettingStarted.html guide:
GCC 4.1.1: GCC fails to build LLVM with template concept check errors
compiling some files. At the time of this writing, GCC mainline (4.2)
did not share the problem.
I continue to use 3.4.6 because of 4.1.X failures and because it is
*very* slow to compile LLVM. Its not clear that 4.2 will fix the slow
compilation problems (lots of related GCC bugs still not fixed).
Reid.
On Fri, 2006-11-10 at 10:32 +1100, Warren Armstrong wrote:
> Andrew Purtell wrote:
> > I routinely fetch the latest LLVM and LLVM-GCC4 and recompile, perhaps every few days or so. I've not had success in some cases building LLVM-GCC4 on a Gentoo Linux host, for perhaps the last week or so. My system compiler is GCC 4.1.1.
> >
> >
> > cc1: /usr/src/llvm/llvm/include/llvm/Target/TargetInstrInfo.h:151:const llvm::TargetInstrDescriptor& llvm::TargetInstrInfo::get(llvm::MachineOpCode) const: Assertion '(unsigned)Opcode < NumOpcodes' failed.
> > /usr/src/llvm/llvm-gcc4/gcc/crtstuff.c: At top level:
> > /usr/src/llvm/llvm-gcc4/gcc/crtstuff.c:314: internal compiler error: Aborted
> > <<<
> >
>
> Hi Andrew,
>
> I too ran into this bug, which can be sidestepped by building LLVM with
> optimisation
> at the -O2 level (rather than the default -O3). My make command was:
> make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION='-O2 -g' tools-only
>
> I was trying to track down the cause of the bug, but haven't had success
> yet.
>
> Hope this is useful.
>
> Cheers,
> Warren
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list