Fail to compile LLVM on Gentoo Linux

Hi all,

  I think it's Gentoo's bug, but I want to know if anyone has the same
issue here. I am compiling LLVM trunk on Gentoo (gcc 4.5.2), and I get
error message below,

/nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1: internal compiler error: in extract_insn, at recog.c:2103

I think that this is a GCC ICE.

--Sean Silva

/nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1: internal compiler error: in extract_insn, at recog.c:2103

I think that this is a GCC ICE.

Yes, very definitely.

Jim

>> /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1: internal compiler error: in extract_insn, at recog.c:2103
>
> I think that this is a GCC ICE.

Yes, very definitely.

Jim

  O.K., I already file a Gentoo bug report for this.

Regards,
chenwj

[1] 434852 – [ICE/4.5] sys-devel/gcc-4.5.2 crashes while building llvm in extract_insn, at recog.c:2103 (unrecognizable insn)

Do you guys think putting Gentoo GCC 4.5 & 4.6 on the list is a good
idea [1]?

Regards,
chenwj

[1] http://llvm.org/docs/GettingStarted.html#brokengcc

Hi 陳韋任,

> Do you guys think putting Gentoo GCC 4.5 & 4.6 on the list is a good

idea [1]?

if these are the standard gentoo compilers, and you aren't building with some
weird optimization flags, then yes.

Ciao, Duncan.

Hi.
This is a known gcc bug
(53670 – GCC internal compiler error). GCC 4.5 can't
compile clang 3.1

Hi Sergey,

This is a known gcc bug
(53670 – GCC internal compiler error). GCC 4.5 can't
compile clang 3.1

are you sure? I built the LLVM/clang-3.1 release binaries for ubuntu 64 bits
using gcc-4.5.

Ciao, Duncan.

Hi Duncan.
Probably it depends on exact gcc version and possibly assert/noassert
build option. I've got this problem with gcc 4.5.2 on 64-bit Suse (I
don't remember whether assertions were enabled).

FWIW, I built LLVM with "--enable-optimized" option, which is a
Release+Asserts build.

Regards,
chenwj

Hi Sergey,