This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/3455: cc1 segmentation fault when building gcc 3.0 cross compiler



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]