This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/3455: cc1 segmentation fault when building gcc 3.0 cross compiler
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/3455: cc1 segmentation fault when building gcc 3.0 cross compiler
- From: iain at videonetworks dot com
- Date: 28 Jun 2001 10:18:13 -0000
- Reply-To: iain at videonetworks dot com
>Number: 3455
>Category: c
>Synopsis: cc1 segmentation fault when building gcc 3.0 cross compiler
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 28 03:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Iain Royle
>Release: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
i-PIII, Redhat Linux 6.0
>Description:
I downloaded gcc 3.0.
Built it with "make bootstrap" and installed it.
I then used it to build a cross compiler using:
configure --target=powerpc-eabi --with-cpu=403
and building with:
make LANGUAGES="c c++"
This all seems to work fine until half way through building the cross compiler I get this:
--
...
echo "int xxy_us_dummy;" >tmp-dum.c
/home/gcc-3.0-powerpc/gcc/xgcc -B/home/gcc-3.0-powerpc/gcc/ -B/usr/local/powerpc-eabi/bin/ -B/usr/local/powerpc-eabi/lib/ -isystem /usr/local/powerpc-eabi/include -S tmp-dum.c
cc1: Internal error: Segmentation fault
Please submit a full bug report,
etc...
--
I'm pretty sure this is using:
/home/gcc-3.0-powerpc/gcc/cc1, not cc1 in any of the other paths.
I don't reckon I've made any obvious errors, and cc1 certainly shouldn't just crash anyway.
>How-To-Repeat:
If you try to build the cross compiler as I described above, with any "luck" the fault should occur. I can repeat it after that just doing:
echo "int xxy_us_dummy;" >tmp-dum.c
/home/gcc-3.0-powerpc/gcc/xgcc -B/home/gcc-3.0-powerpc/gcc/ tmp-dum.c
which causes:
cc1: Internal error: Segmentation fault
>Fix:
none known
>Release-Note:
>Audit-Trail:
>Unformatted: