public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/14626] New: Compile fails at stage2
@ 2004-03-18  1:30 ehicks at binarymagi dot com
  2004-03-18  2:12 ` [Bug bootstrap/14626] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ehicks at binarymagi dot com @ 2004-03-18  1:30 UTC (permalink / raw)
  To: gcc-bugs

My system is an Ultrasparc e250 running Solaris 9 0403.  The compiler is a 
32bit-only version of 3.3.3 that was compiled with the gcc included in the Ada 
precompiled binaries.  Binutils is version 2.14.  I am now attempting to 
compile a 64bit-enabled version of 3.3.3 with Ada support and get this during 
the compile:

echo timestamp > stage1_copy
echo stage2_build > stage_last
make CC=" stage1/xgcc -Bstage1/ -B/root/build/gnatgcc3-64bit/sparcv9-sun-
solaris2/bin/" \
         STAGE_PREFIX=stage1/ \
         ADAC="\$(CC)" AR_FOR_TARGET="ar" RANLIB_FOR_TARGET="true" CFLAGS="-g -
O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRI
CT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/root/build/gnatgcc3-
64bit/lib LANGUAGES="c gcov ada c++" MAKEOVERRIDES= OUT
PUT_OPTION="-o \$@"
make[2]: Entering directory `/root/build/gcc-3.3.3/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/root/build/gnatgcc3-64bit/sparcv9-sun-solaris2/bin/ -
c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstric
t-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -
DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -
I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/gengenrtl.c -
o gengenrtl.o
In file included from ../../gcc/gengenrtl.c:29:
../../gcc/real.h:67: error: size of array `test_real_width' is negative
make[2]: *** [gengenrtl.o] Error 1
make[2]: Leaving directory `/root/build/gcc-3.3.3/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/root/build/gcc-3.3.3/gcc-build/gcc'
make: *** [bootstrap] Error 2
[root@lurch gcc-build]# 


My configuration looks like this: (The build dir is srcdir/gcc-build)

export PATH=/root/build/gnatgcc3-32bit/bin:$PATH
export CONFIG_SHELL=/bin/ksh
cd ../gcc/ada
touch treeprs.ads [es]info.h nmake.ad[bs]
cd ../../gcc-build
../configure \
--prefix=/root/build/gnatgcc3-64bit \
--enable-languages=c,c++,ada \
--disable-nls \
--with-gnu-ld --with-gnu-as \
--with-ld=/usr/local/bin/ld --with-as=/usr/local/bin/as \
sparcv9-sun-solaris2
make bootstrap
cd gcc
make gnatlib_and_tools
cd ..
make install


If you need any more info please feel free to contact me.  TIA

-- 
           Summary: Compile fails at stage2
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ehicks at binarymagi dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug bootstrap/14626] Compile fails at stage2
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
@ 2004-03-18  2:12 ` pinskia at gcc dot gnu dot org
  2004-03-18  2:25 ` ehicks at binarymagi dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-18  2:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-18 02:12 -------
Are what compiler are you using to bootstrap the 64bit compiler with?  If it is Sun's compiler see/read 
<http://gcc.gnu.org/install/specific.html#sparc64-*-solaris2*> and then this is a dup of bug 8538.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug bootstrap/14626] Compile fails at stage2
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
  2004-03-18  2:12 ` [Bug bootstrap/14626] " pinskia at gcc dot gnu dot org
@ 2004-03-18  2:25 ` ehicks at binarymagi dot com
  2004-03-18  2:59 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ehicks at binarymagi dot com @ 2004-03-18  2:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ehicks at binarymagi dot com  2004-03-18 02:25 -------
(In reply to comment #1)
> Are what compiler are you using to bootstrap the 64bit compiler with?  If it 
is Sun's compiler see/read 
> <http://gcc.gnu.org/install/specific.html#sparc64-*-solaris2*> and then this 
is a dup of bug 8538.

Like I said, I'm attempting to compile with a version of gcc 3.3.3 that was 
compiled earlier via the compiler included in the precompiled GNAT libraries.  
The Sun compiler isn't on the system at all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug bootstrap/14626] Compile fails at stage2
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
  2004-03-18  2:12 ` [Bug bootstrap/14626] " pinskia at gcc dot gnu dot org
  2004-03-18  2:25 ` ehicks at binarymagi dot com
@ 2004-03-18  2:59 ` pinskia at gcc dot gnu dot org
  2004-03-18  9:10 ` ebotcazou at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-18  2:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-18 02:59 -------
Oh, then what you are doing is called a cross compiler and should not be using "make bootstrap" as 
when the compiler was configured was only a 32bit compiler. Use "make all" instead and it should work 
and if you want you can bootstrap a new compiler which uses the 64bit one.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug bootstrap/14626] Compile fails at stage2
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (2 preceding siblings ...)
  2004-03-18  2:59 ` pinskia at gcc dot gnu dot org
@ 2004-03-18  9:10 ` ebotcazou at gcc dot gnu dot org
  2004-03-18 19:17 ` [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2) ehicks at binarymagi dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-03-18  9:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-03-18 09:10 -------
To clarify a bit, you need a 64-bit compiler to bootstrap a 64-bit compiler. 
Either a native 64-bit compiler (sparc64-*-* or sparcv9-*-*) or a multi-arch
32-bit compiler invoked with 'gcc -m64'.

Note, however, that Ada does not appear to work for the non-default arch of a
multi-arch compiler (that is, 'gcc -m64' cannot bootstrap a 64-bit Ada compiler).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (3 preceding siblings ...)
  2004-03-18  9:10 ` ebotcazou at gcc dot gnu dot org
@ 2004-03-18 19:17 ` ehicks at binarymagi dot com
  2004-03-18 19:20 ` ehicks at binarymagi dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ehicks at binarymagi dot com @ 2004-03-18 19:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ehicks at binarymagi dot com  2004-03-18 19:17 -------
I see.  I always through cross-compilers were a lot more effort than that - I 
thought I was just compiling for another set of libraries on the server.  Ok, 
it made it through the regular compile however the 'make gnatlib_and_tools' 
for the Ada utilities is not.

../../xgcc -B../../ -DIN_GCC   `echo -g -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  |sed -
e 's/-pedantic//g' -e 's/-Wtraditional//g'`   -o ../../gnatmake b_gnatm.o 
ali.o ali-util.o alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o 
einfo.o elists.o errout.o fmap.o fname.o fname-uf.o fname-sf.o gnatmake.o 
gnatvsn.o hostparm.o krunch.o lib.o make.o makeusg.o mlib.o mlib-fil.o mlib-
prj.o mlib-tgt.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o 
prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-ext.o prj-nmsc.o prj-
pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o rident.o scans.o 
scn.o sdefault.o sfn_scan.o sinfo.o sinfo-cn.o sinput.o sinput-l.o sinput-p.o 
snames.o stand.o stringt.o style.o stylesw.o validsw.o switch.o switch-m.o 
switch-c.o table.o targparm.o tree_io.o types.o uintp.o uname.o urealp.o 
usage.o 
widechar.o ../../prefix.o ../../version.o ../rts/libgnat.a  ../../../libiberty/
libiberty.a  
ld: fatal: file ../../prefix.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ../../gnatmake
collect2: ld returned 1 exit status
make[2]: *** [../../gnatmake] Error 1


gnatbind and half a dozen other things I've seen compile just fine with 
prefix.o so I wouldn't know why it's a problem now.  (gnatbind is just a 
regular 32bit binary according to ldd.)  Any idea what it's problem is now?



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
          Component|bootstrap                   |ada
         Resolution|INVALID                     |
            Summary|Compile fails at stage2     |make gnatlib_and_tools
                   |                            |problem on cross compiler
                   |                            |(formerly: Compile fails at
                   |                            |stage2)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (4 preceding siblings ...)
  2004-03-18 19:17 ` [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2) ehicks at binarymagi dot com
@ 2004-03-18 19:20 ` ehicks at binarymagi dot com
  2004-03-18 19:23 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ehicks at binarymagi dot com @ 2004-03-18 19:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ehicks at binarymagi dot com  2004-03-18 19:20 -------
Also, something I've run into both compiles now is that the 'make 
gnatlib_and_tools' doesn't seem to compile all of the modules that it needs.  
I need to go back and manually compile the following:
   adaint.c
   argv.c
   cio.c
   cstreams.c
   exit.c
   raise.c
   init.c
   adafinal.c
   tracebak.c

After they're compiled manually I can go back and run 'make gnatlib_and_tools' 
again and it will continue where it crashed before.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (5 preceding siblings ...)
  2004-03-18 19:20 ` ehicks at binarymagi dot com
@ 2004-03-18 19:23 ` pinskia at gcc dot gnu dot org
  2004-03-19 17:51 ` ehicks at binarymagi dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-18 19:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-18 19:23 -------
You cannot use "make gnatlib_and_tools" on a cross compiler, use "make cross-gnattools" and "make 
gnatlib" to build a cross Ada compiler.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (6 preceding siblings ...)
  2004-03-18 19:23 ` pinskia at gcc dot gnu dot org
@ 2004-03-19 17:51 ` ehicks at binarymagi dot com
  2004-03-19 20:12 ` ehicks at binarymagi dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ehicks at binarymagi dot com @ 2004-03-19 17:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ehicks at binarymagi dot com  2004-03-19 17:51 -------
Do those commands exist anywhere in the documentation?  I ran a find and put 
all the files it found through grep looking for any instance of cross-
gnattools in the package and the only ones I found were in the ChangeLog and 
one of the makefiles.  It's not in the build instructions on the website of 
the crossgcc FAQ pages either.

Either way, it seems to have built happily enough so we'll see if it works 
building the final step.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (7 preceding siblings ...)
  2004-03-19 17:51 ` ehicks at binarymagi dot com
@ 2004-03-19 20:12 ` ehicks at binarymagi dot com
  2004-03-19 21:51 ` charlet at act-europe dot fr
  2004-04-27 14:04 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: ehicks at binarymagi dot com @ 2004-03-19 20:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ehicks at binarymagi dot com  2004-03-19 20:12 -------
Nope - foiled again.  My configure line is:

export PATH=/root/build/gnatgcc3-64bit/bin:$PATH
cd ../gcc/ada
touch treeprs.ads [es]info.h nmake.ad[bs]
cd ../../gcc-build
../configure \
--enable-languages=all \
--disable-nls \
--with-gnu-ld --with-gnu-as \
--with-ld=/usr/local/bin/ld --with-as=/usr/local/bin/as \
sparcv9-sun-solaris2

I then attempt to bootstrap the compiler and it crashes with this:

make[3]: Leaving directory `/root/build/gcc-3.3.3/gcc-build/gcc'
echo timestamp > stmp-multilib
ada/doctools/xgnatug 
wnt ../../gcc/ada/gnat_ug.texi ../../gcc/ada/ug_words ../../gcc/ada/gnat_ug_wnt
.texi

raised PROGRAM_ERROR : SIGBUS
make[2]: *** [../../gcc/ada/gnat_ug_wnt.texi] Error 1
make[2]: Leaving directory `/root/build/gcc-3.3.3/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/root/build/gcc-3.3.3/gcc-build/gcc'
make: *** [bootstrap] Error 2
[root@lurch gcc-build]# 

Is this the error that Eric mentioned above?  Is there any way around it?  
Sorry to create such a long bug report; however, I've been searching the net 
each time before reporting a new problem and haven't been able to find much of 
anything.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (8 preceding siblings ...)
  2004-03-19 20:12 ` ehicks at binarymagi dot com
@ 2004-03-19 21:51 ` charlet at act-europe dot fr
  2004-04-27 14:04 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: charlet at act-europe dot fr @ 2004-03-19 21:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at act-europe dot fr  2004-03-19 21:51 -------
Subject: Re:  make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)

> Do those commands exist anywhere in the documentation?  I ran a find and put 

Yes, they are fully documented in gcc 3.4, and no longer in head, since they
are no longer required there.

Arno


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2)
  2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
                   ` (9 preceding siblings ...)
  2004-03-19 21:51 ` charlet at act-europe dot fr
@ 2004-04-27 14:04 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27 14:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-27 13:36 -------
Invalid based on 3.5.0 is just a simple make and that you have to do a cross compiler 
and it was docuemented how you do it in install.texi for the release of 3.3.3 and 3.4.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14626


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-04-27 13:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-18  1:30 [Bug bootstrap/14626] New: Compile fails at stage2 ehicks at binarymagi dot com
2004-03-18  2:12 ` [Bug bootstrap/14626] " pinskia at gcc dot gnu dot org
2004-03-18  2:25 ` ehicks at binarymagi dot com
2004-03-18  2:59 ` pinskia at gcc dot gnu dot org
2004-03-18  9:10 ` ebotcazou at gcc dot gnu dot org
2004-03-18 19:17 ` [Bug ada/14626] make gnatlib_and_tools problem on cross compiler (formerly: Compile fails at stage2) ehicks at binarymagi dot com
2004-03-18 19:20 ` ehicks at binarymagi dot com
2004-03-18 19:23 ` pinskia at gcc dot gnu dot org
2004-03-19 17:51 ` ehicks at binarymagi dot com
2004-03-19 20:12 ` ehicks at binarymagi dot com
2004-03-19 21:51 ` charlet at act-europe dot fr
2004-04-27 14:04 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).