Bug 21288 - bootstrap issues with profiledbootstrap
Summary: bootstrap issues with profiledbootstrap
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-04-29 17:45 UTC by benoit.hudson
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.hudson 2005-04-29 17:45:14 UTC
(1) if you download core, g++, and fortran, only c and c++ are built; fortran is
not, unlike in prior releases.

(2) configuring with --enable-languages=c,c++,f95 and no other options; then
using make profiledbootstrap, I get an ICE:

/bin/sh ./libtool --mode=compile /var/tmp/bhudson-gcc/4.0.0/gcc/gfortran -B/var/
tmp/bhudson-gcc/4.0.0/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686
-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/l
ocal/i686-pc-linux-gnu/sys-include  -Wall -fno-repack-arrays -fno-underscoring -
c -o selected_int_kind.lo `test -f 'intrinsics/selected_int_kind.f90' || echo '/
afs/cs/usr/bhudson/gcc/gcc-4.0.0/libgfortran/'`intrinsics/selected_int_kind.f90
/var/tmp/bhudson-gcc/4.0.0/gcc/gfortran -B/var/tmp/bhudson-gcc/4.0.0/gcc/ -B/usr
/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/
local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-includ
e -Wall -fno-repack-arrays -fno-underscoring -c /afs/cs/usr/bhudson/gcc/gcc-4.0.
0/libgfortran/intrinsics/selected_int_kind.f90  -fPIC -DPIC -o .libs/selected_in
t_kind.o
<built-in>:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[3]: *** [selected_int_kind.lo] Error 1
gmake[3]: Leaving directory `/usr/tmp/bhudson-gcc/4.0.0/i686-pc-linux-gnu/libgfo
rtran'

Manually running that compile with -save-temps doesn't appear to create any files.
Comment 1 benoit.hudson 2005-05-02 17:58:51 UTC
I get the same error with 'make bootstrap' -- it's not the profiling that causes
the ICE.  Similarly, I get the same error when I download the full tar file, so
it's also not a packaging bug.

If there's any other information that would help, I'll happily provide it.
Comment 2 Andrew Pinski 2005-05-02 18:01:09 UTC
(In reply to comment #1)
> I get the same error with 'make bootstrap' -- it's not the profiling that causes
> the ICE.  Similarly, I get the same error when I download the full tar file, so
> it's also not a packaging bug.

It works for everyone else on x86 so I don't know what is going on.  It could be your version of GMP is 
broken.
Comment 3 benoit.hudson 2005-05-03 15:18:22 UTC
My (apparently broken) gmp is:
> rpm -qf /usr/lib/libgmp.so.3.3.2 
gmp-4.1.2-2

Downloading a new GMP (4.1.4, which creates libgmp.so.3.3.3) appears to work.  I
wonder if it's easy to check for this situation?  Anyway, thanks for the hint.
Comment 4 Andrew Pinski 2005-05-03 15:21:47 UTC
Closing as works for me, a GMP bug.