[LLVMdev] llvm-gcc fails to build on REL5.1 Linux and Intel x86_64

Duncan Sands baldrick at free.fr
Wed Mar 4 00:19:13 PST 2009


Hi,

>  While attempting to compile llvm-gcc on Intel x86_64 2-way 4-core machine,
> i got the following errors:

this is the second report of this, see http://llvm.org/bugs/show_bug.cgi?id=3710

> gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)

gcc 4.1 has endless problems compiling LLVM, see
http://llvm.org/docs/GettingStarted.html#brokengcc

Here's an extract:

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.
GCC 4.1.1 on X86-64/amd64: GCC  miscompiles portions of LLVM when compiling llvm itself into 64-bit code. LLVM will appear to mostly work but will be buggy, e.g. failing portions of its testsuite.
GCC 4.1.2 on OpenSUSE: Seg faults during libstdc++ build and on x86_64 platforms compiling md5.c gets a mangled constant.
GCC 4.1.2 (20061115 (prerelease) (Debian 4.1.1-21)) on Debian: Appears to miscompile parts of LLVM 2.4. One symptom is ValueSymbolTable complaining about symbols remaining in the table on destruction.
GCC 4.1.2 20071124 (Red Hat 4.1.2-42): Suffers from the same symptoms as the previous one. It appears to work with ENABLE_OPTIMIZED=0 (the default).

Try building with gcc-4.2 or newer.

Ciao,

Duncan.



More information about the llvm-dev mailing list