public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: extremely disappointing bootstrap problems building gcc on linux :(
@ 2003-05-17 19:19 Dara Hazeghi
  2003-05-18 12:56 ` John Sincock
  2003-05-18 12:56 ` John Sincock
  0 siblings, 2 replies; 9+ messages in thread
From: Dara Hazeghi @ 2003-05-17 19:19 UTC (permalink / raw)
  To: jss; +Cc: gcc-help

A couple of points.

1. gcc 3.2.X and previous could not be built within their source 
directory: ie "cd gcc-3.2.3 && ./configure && make" generally failed. 
This may account for the -lgcc_eh problem. This was unfortunately not 
well documented.

2. diff files do not apply to tarballs. Period. Diffs apply only to 
regular directories. ie tar -xzf gcc-3.2.2.tar.gz && patch -p0 -E < 
gcc-3.2.2-3.2.3.diff should work fine.

3. --enable-shared and --enable-threads are I believe the default on 
Linux. It appears that you may have found a bug in configure on gcc 
3.3. Please just do a vanilla configure without any options, and see if 
this still fails.

3.5. What version of GNU make are you using? There have been a few 
which have worked rather less than well (I recall 3.78 had significant 
issues).

4. Quite a number of people have successfully built gcc 3.3 on Linux 
(and elsewhere). If you look at 
http://gcc.gnu.org/gcc-3.3/buildstat.html , you'll see at least 10 
people have successfully built gcc 3.3. So while I sympathize with your 
frustration, please remember that we do not have access to your exact 
setup, we are a volunteer project, and it is very difficult to test 
every possible environment.

Thanks,

Dara

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: extremely disappointing bootstrap problems building gcc on linux :(
@ 2003-06-01 18:36 Dara Hazeghi
  0 siblings, 0 replies; 9+ messages in thread
From: Dara Hazeghi @ 2003-06-01 18:36 UTC (permalink / raw)
  To: ible_snover; +Cc: gcc-help

Hello,
 
> The glibc_lsb is a leftover from the packages i 
> already had installed. I left it there as I have no 
> idea what it really is and it seems to be numbered 
> differently to the proper glibc rpms.

Probably just something dealing with file layout, and
not related to your problems.

> Aargh... I am now giving up, unless someone else
> has had the same problem and worked out what the 
> solution is.

Just one more suggestion. You mention that you can
build the gcc 3.3 C compiler? If so, try installing
that, and building the rest of gcc 3.3 with it. Also
when you build, make sure you've got a clean directory
you're building in, and that none of your build
directories are in $PATH.

Oh, and one other thing :-) If you don't mind trying
to build again with gcc 2.96, can you do so, and at
the point that it fails, add "-v" to the command line,
so I can see what's being invoked. For some reason, it
seems the wrong cc1 binary is being invoked by your
installed compiler, but it would be good to find out
why. What exactly is your $PATH when you're building.

Thanks,

Dara

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20030521073851.73254.qmail@web41110.mail.yahoo.com>]
[parent not found: <200305171200.h4HC0acA251822@e35.co.us.ibm.com>]
* extremely disappointing bootstrap problems building gcc on linux :(
@ 2003-05-17 12:00 John Sincock
  0 siblings, 0 replies; 9+ messages in thread
From: John Sincock @ 2003-05-17 12:00 UTC (permalink / raw)
  To: gcc-help; +Cc: gcc-bugs

Hi everybody,

I have tried unsuccessfully to build gcc 3.2.2 and now 3.3, on 
Mandrake 8.2 (with lots of updates).

I have tried building with gcc 2.95.3 , Mandrake (ie Redhat's) 2.96, and 
with 3.04. 

I would just installl a newer gcc from an rpm but newer rpms seem to 
have dependencies on newer glibc etc etc And i would prefer to build 
it myself anyway, because I have heard elsewhere that Mandrake tends 
to do weird things with the configuration of  gcc in their rpms.

I am following the build procedure correctly, but it just doesnt work.

I have built gigabytes of software on my system so I am prety sure there 
is nothing so unusual about it that building gcc should fail so miserably. 

I dont want this email to sound too hypercritical... but, i just dont get it.
How can it possibly be this hard to build gcc, using gcc, on an otherwise
nicely working linux?

Even building GHC was a piece of cake compared to this.

There are no configure errors, telling me i have outdated utilities, or 
missing libs, or anything, the configure goes fine... (well, except for a
warning about an out of date makeinfo, but that is not the problem).

The md5sum on my gcc-3.2.2.tar.bz2 is fine.
The md5sum on my gcc-3.2.2-3.2.3.diff.bz2 is fine.
The md5sum on my gcc-3.3.tar.bz2 is fine.

I am building with:
automake (GNU automake) 1.5
autoconf (GNU Autoconf) 2.57
glibc-2.2.4-25mdk
kernel-2.4.18.6mdk-1-1mdk (but recompiled with alsa 0.9.0rc2 support)

The gcc3.2.2 builds fail in stage 1 at underscore.c 
and the gcc 3.3 builds fail at gcc-3.3/gcc/cp/g++spec.c as it does not exist

Help! Anyone! Please tell me what is going on here !!

thanks very much for any help,

John



ps here is a long list of Build Failures, with various compilers and flags:

---------------------------------------------------------------3.2.2

gcc 3.2.2 compiled with 2.95.3:
configured with --enable-shared --enable-threads 
make bootstrap
...
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
underscore.c:0: malformed option `-A system=posix'
underscore.c:0: malformed option `-A cpu=i386'
underscore.c:0: malformed option `-A machine=i386'
make[2]: *** [underscore.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2



-----------------------------------
gcc 3.2.2 compiled with 2.96:
configured with --enable-shared --enable-threads 
make bootstrap

gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
/mnt/scsi/src/gcc-3.2.2/gcc/cppmain.c -o cppmain.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o cpp0 cppmain.o \
intl.o libcpp.a   ../libiberty/libiberty.a
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o Tcollect2 \
        collect2.o tlink.o hash.o intl.o underscore.o version.o   
../libiberty/libiberty.a 
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [collect2] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2
: jss: 08:22:38 /mnt/scsi/src ; 


-----------------------------------
gcc 3.2.2 compiled with 3.0.4:
configured with --enable-shared --enable-threads 
make bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o Tcollect2 \
        collect2.o tlink.o hash.o intl.o underscore.o version.o   
../libiberty/libiberty.a 
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [collect2] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2

------------------------------------
gcc 3.2.2 compiled with 2.95.3:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
underscore.c:0: malformed option `-A system=posix'
underscore.c:0: malformed option `-A cpu=i386'
underscore.c:0: malformed option `-A machine=i386'
make[2]: *** [underscore.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2


------------------------------------
gcc 3.2.2 compiled with 2.96:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o Tcollect2 \
        collect2.o tlink.o hash.o intl.o underscore.o version.o   
../libiberty/libiberty.a 
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [collect2] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2





---------------------------------------------------------------------------------3.2.3

I downloaded the diff from 3.2.2 to 3.2.3, and patched the 3.2.2 tarfile 
with:

patch -E -p0 gcc-3.2.2.tar gcc-3.2.2-3.2.3.diff

This seemed to work, but the patched tarfile would not untar correctly...
tar complained of obsolescent base64 headers and many directories ended 
up missing. This was extremely disappointing...



---------------------------------------------------------------------------------3.3

gcc 3.3 compiled with 2.96:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
if [ -f /usr/include/limits.h ] ; then \
  cat /mnt/scsi/src/gcc-3.3/gcc/limitx.h /mnt/scsi/src/gcc-3.3/gcc/glimits.h 
/mnt/scsi/src/gcc-3.3/gcc/limity.h > tmp-xlimits.h; \
else \
  cat /mnt/scsi/src/gcc-3.3/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
(SHLIB_LINK=' ./xgcc -B./ 
-B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC   
 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
 -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1 
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && ln -s 
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/\" 
-DDEFAULT_TARGET_VERSION=\"3.3\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
        -I. -I. -I/mnt/scsi/src/gcc-3.3/gcc -I/mnt/scsi/src/gcc-3.3/gcc/. 
-I/mnt/scsi/src/gcc-3.3/gcc/config -I/mnt/scsi/src/gcc-3.3/gcc/../include 
/mnt/scsi/src/gcc-3.3/gcc/cp/g++spec.c)
cc1: Unrecognized option `-E'
cc1: Unrecognized option `-lang-c'
cc1: Unrecognized option `-D__GNUC__=3'
cc1: Unrecognized option `-D__GNUC_MINOR__=3'
cc1: Unrecognized option `-D__GNUC_PATCHLEVEL__=0'
cc1: Unrecognized option `-DIN_GCC'
cc1: Unrecognized option `-DHAVE_CONFIG_H'
cc1: Unrecognized option `-DSTANDARD_STARTFILE_PREFIX="../../../"'
cc1: Unrecognized option 
`-DSTANDARD_EXEC_PREFIX="/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/"'
cc1: Unrecognized option `-DDEFAULT_TARGET_VERSION="3.3"'
cc1: Unrecognized option `-DDEFAULT_TARGET_MACHINE="i686-pc-linux-gnu"'
cc1: Unrecognized option 
`-DSTANDARD_BINDIR_PREFIX="/usr/local/gcc/gcc-3.3-20030517/bin/"'
cc1: Unrecognized option `-DTOOLDIR_BASE_PREFIX="../../../../"'
cc1: Unrecognized option `-DENABLE_SHARED_LIBGCC'
/home/jss/tmp/cc6VCL2I.i:1: warning: ISO C forbids an empty source file
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make: *** [bootstrap] Error 2


----------------------------------
gcc 3.3 compiled with 3.0.4:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
if [ -f /usr/include/limits.h ] ; then \
  cat /mnt/scsi/src/gcc-3.3/gcc/limitx.h /mnt/scsi/src/gcc-3.3/gcc/glimits.h 
/mnt/scsi/src/gcc-3.3/gcc/limity.h > tmp-xlimits.h; \
else \
  cat /mnt/scsi/src/gcc-3.3/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
(SHLIB_LINK=' ./xgcc -B./ 
-B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC   
 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
 -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1 
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && ln -s 
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/\" 
-DDEFAULT_TARGET_VERSION=\"3.3\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
	-I. -I. -I/mnt/scsi/src/gcc-3.3/gcc -I/mnt/scsi/src/gcc-3.3/gcc/. 
-I/mnt/scsi/src/gcc-3.3/gcc/config -I/mnt/scsi/src/gcc-3.3/gcc/../include 
/mnt/scsi/src/gcc-3.3/gcc/cp/g++spec.c)
cc1: Unrecognized option `-auxbase'
cc1: Output filename specified twice
cc1: g++spec: No such file or directory
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make: *** [bootstrap] Error 2


----------------------------------
gcc 3.3 compiled with 3.0.4:
configured with --enable-shared --enable-threads 
make bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
if [ -f /usr/include/limits.h ] ; then \
  cat /mnt/scsi/src/gcc-3.3/gcc/limitx.h /mnt/scsi/src/gcc-3.3/gcc/glimits.h 
/mnt/scsi/src/gcc-3.3/gcc/limity.h > tmp-xlimits.h; \
else \
  cat /mnt/scsi/src/gcc-3.3/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
(SHLIB_LINK=' ./xgcc -B./ 
-B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC   
 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
 -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1 
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && ln -s 
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/\" 
-DDEFAULT_TARGET_VERSION=\"3.3\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
	-I. -I. -I/mnt/scsi/src/gcc-3.3/gcc -I/mnt/scsi/src/gcc-3.3/gcc/. 
-I/mnt/scsi/src/gcc-3.3/gcc/config -I/mnt/scsi/src/gcc-3.3/gcc/../include 
/mnt/scsi/src/gcc-3.3/gcc/cp/g++spec.c)
cc1: Unrecognized option `-auxbase'
cc1: Output filename specified twice
cc1: g++spec: No such file or directory
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make: *** [bootstrap] Error 2


^ permalink raw reply	[flat|nested] 9+ messages in thread
* extremely disappointing bootstrap problems building gcc on linux :(
@ 2003-05-17 12:00 John Sincock
  0 siblings, 0 replies; 9+ messages in thread
From: John Sincock @ 2003-05-17 12:00 UTC (permalink / raw)
  To: gcc-help; +Cc: gcc-bugs

Hi everybody,

I have tried unsuccessfully to build gcc 3.2.2 and now 3.3, on 
Mandrake 8.2 (with lots of updates).

I have tried building with gcc 2.95.3 , Mandrake (ie Redhat's) 2.96, and 
with 3.04. 

I would just installl a newer gcc from an rpm but newer rpms seem to 
have dependencies on newer glibc etc etc And i would prefer to build 
it myself anyway, because I have heard elsewhere that Mandrake tends 
to do weird things with the configuration of  gcc in their rpms.

I am following the build procedure correctly, but it just doesnt work.

I have built gigabytes of software on my system so I am prety sure there 
is nothing so unusual about it that building gcc should fail so miserably. 

I dont want this email to sound too hypercritical... but, i just dont get it.
How can it possibly be this hard to build gcc, using gcc, on an otherwise
nicely working linux?

Even building GHC was a piece of cake compared to this.

There are no configure errors, telling me i have outdated utilities, or 
missing libs, or anything, the configure goes fine... (well, except for a
warning about an out of date makeinfo, but that is not the problem).

The md5sum on my gcc-3.2.2.tar.bz2 is fine.
The md5sum on my gcc-3.2.2-3.2.3.diff.bz2 is fine.
The md5sum on my gcc-3.3.tar.bz2 is fine.

I am building with:
automake (GNU automake) 1.5
autoconf (GNU Autoconf) 2.57
glibc-2.2.4-25mdk
kernel-2.4.18.6mdk-1-1mdk (but recompiled with alsa 0.9.0rc2 support)

The gcc3.2.2 builds fail in stage 1 at underscore.c 
and the gcc 3.3 builds fail at gcc-3.3/gcc/cp/g++spec.c as it does not exist

Help! Anyone! Please tell me what is going on here !!

thanks very much for any help,

John



ps here is a long list of Build Failures, with various compilers and flags:

---------------------------------------------------------------3.2.2

gcc 3.2.2 compiled with 2.95.3:
configured with --enable-shared --enable-threads 
make bootstrap
...
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
underscore.c:0: malformed option `-A system=posix'
underscore.c:0: malformed option `-A cpu=i386'
underscore.c:0: malformed option `-A machine=i386'
make[2]: *** [underscore.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2



-----------------------------------
gcc 3.2.2 compiled with 2.96:
configured with --enable-shared --enable-threads 
make bootstrap

gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
/mnt/scsi/src/gcc-3.2.2/gcc/cppmain.c -o cppmain.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o cpp0 cppmain.o \
intl.o libcpp.a   ../libiberty/libiberty.a
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o Tcollect2 \
        collect2.o tlink.o hash.o intl.o underscore.o version.o   
../libiberty/libiberty.a 
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [collect2] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2
: jss: 08:22:38 /mnt/scsi/src ; 


-----------------------------------
gcc 3.2.2 compiled with 3.0.4:
configured with --enable-shared --enable-threads 
make bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o Tcollect2 \
        collect2.o tlink.o hash.o intl.o underscore.o version.o   
../libiberty/libiberty.a 
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [collect2] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2

------------------------------------
gcc 3.2.2 compiled with 2.95.3:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
underscore.c:0: malformed option `-A system=posix'
underscore.c:0: malformed option `-A cpu=i386'
underscore.c:0: malformed option `-A machine=i386'
make[2]: *** [underscore.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2


------------------------------------
gcc 3.2.2 compiled with 2.96:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/bin/ 
-isystem /usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.2.2-20030517/i686-pc-linux-gnu/sys-include -S tmp-dum.c
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
/bin/sh /mnt/scsi/src/gcc-3.2.2/gcc/move-if-change tmp-under.c underscore.c
rm -f tmp-dum.c tmp-dum.s
echo timestamp > s-under
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
  -I. -I. -I/mnt/scsi/src/gcc-3.2.2/gcc -I/mnt/scsi/src/gcc-3.2.2/gcc/. 
-I/mnt/scsi/src/gcc-3.2.2/gcc/config -I/mnt/scsi/src/gcc-3.2.2/gcc/../include 
underscore.c -o underscore.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  
-o Tcollect2 \
        collect2.o tlink.o hash.o intl.o underscore.o version.o   
../libiberty/libiberty.a 
/usr/bin/ld: cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [collect2] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2





---------------------------------------------------------------------------------3.2.3

I downloaded the diff from 3.2.2 to 3.2.3, and patched the 3.2.2 tarfile 
with:

patch -E -p0 gcc-3.2.2.tar gcc-3.2.2-3.2.3.diff

This seemed to work, but the patched tarfile would not untar correctly...
tar complained of obsolescent base64 headers and many directories ended 
up missing. This was extremely disappointing...



---------------------------------------------------------------------------------3.3

gcc 3.3 compiled with 2.96:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
if [ -f /usr/include/limits.h ] ; then \
  cat /mnt/scsi/src/gcc-3.3/gcc/limitx.h /mnt/scsi/src/gcc-3.3/gcc/glimits.h 
/mnt/scsi/src/gcc-3.3/gcc/limity.h > tmp-xlimits.h; \
else \
  cat /mnt/scsi/src/gcc-3.3/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
(SHLIB_LINK=' ./xgcc -B./ 
-B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC   
 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
 -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1 
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && ln -s 
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/\" 
-DDEFAULT_TARGET_VERSION=\"3.3\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
        -I. -I. -I/mnt/scsi/src/gcc-3.3/gcc -I/mnt/scsi/src/gcc-3.3/gcc/. 
-I/mnt/scsi/src/gcc-3.3/gcc/config -I/mnt/scsi/src/gcc-3.3/gcc/../include 
/mnt/scsi/src/gcc-3.3/gcc/cp/g++spec.c)
cc1: Unrecognized option `-E'
cc1: Unrecognized option `-lang-c'
cc1: Unrecognized option `-D__GNUC__=3'
cc1: Unrecognized option `-D__GNUC_MINOR__=3'
cc1: Unrecognized option `-D__GNUC_PATCHLEVEL__=0'
cc1: Unrecognized option `-DIN_GCC'
cc1: Unrecognized option `-DHAVE_CONFIG_H'
cc1: Unrecognized option `-DSTANDARD_STARTFILE_PREFIX="../../../"'
cc1: Unrecognized option 
`-DSTANDARD_EXEC_PREFIX="/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/"'
cc1: Unrecognized option `-DDEFAULT_TARGET_VERSION="3.3"'
cc1: Unrecognized option `-DDEFAULT_TARGET_MACHINE="i686-pc-linux-gnu"'
cc1: Unrecognized option 
`-DSTANDARD_BINDIR_PREFIX="/usr/local/gcc/gcc-3.3-20030517/bin/"'
cc1: Unrecognized option `-DTOOLDIR_BASE_PREFIX="../../../../"'
cc1: Unrecognized option `-DENABLE_SHARED_LIBGCC'
/home/jss/tmp/cc6VCL2I.i:1: warning: ISO C forbids an empty source file
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make: *** [bootstrap] Error 2


----------------------------------
gcc 3.3 compiled with 3.0.4:
configured with --enable-shared --enable-threads 
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 
-fno-implicit-templates' BOOT_CFLAGS="-O2 -pipe -fomit-frame-pointer 
-funroll-loops -march=pentium3 -mcpu=pentium3 -mfpmath=sse -mmmx -msse 
-msse2" bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
if [ -f /usr/include/limits.h ] ; then \
  cat /mnt/scsi/src/gcc-3.3/gcc/limitx.h /mnt/scsi/src/gcc-3.3/gcc/glimits.h 
/mnt/scsi/src/gcc-3.3/gcc/limity.h > tmp-xlimits.h; \
else \
  cat /mnt/scsi/src/gcc-3.3/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
(SHLIB_LINK=' ./xgcc -B./ 
-B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC   
 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
 -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1 
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && ln -s 
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/\" 
-DDEFAULT_TARGET_VERSION=\"3.3\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
	-I. -I. -I/mnt/scsi/src/gcc-3.3/gcc -I/mnt/scsi/src/gcc-3.3/gcc/. 
-I/mnt/scsi/src/gcc-3.3/gcc/config -I/mnt/scsi/src/gcc-3.3/gcc/../include 
/mnt/scsi/src/gcc-3.3/gcc/cp/g++spec.c)
cc1: Unrecognized option `-auxbase'
cc1: Output filename specified twice
cc1: g++spec: No such file or directory
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make: *** [bootstrap] Error 2


----------------------------------
gcc 3.3 compiled with 3.0.4:
configured with --enable-shared --enable-threads 
make bootstrap

./xgcc -B./ -B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -dumpspecs > 
tmp-specs
mv tmp-specs specs
if [ -f /usr/include/limits.h ] ; then \
  cat /mnt/scsi/src/gcc-3.3/gcc/limitx.h /mnt/scsi/src/gcc-3.3/gcc/glimits.h 
/mnt/scsi/src/gcc-3.3/gcc/limity.h > tmp-xlimits.h; \
else \
  cat /mnt/scsi/src/gcc-3.3/gcc/glimits.h > tmp-xlimits.h; \
fi
mv tmp-xlimits.h xlimits.h
(SHLIB_LINK=' ./xgcc -B./ 
-B/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/bin/ -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/include -isystem 
/usr/local/gcc/gcc-3.3-20030517/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC   
 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
 -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1 
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && ln -s 
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
   -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/lib/gcc-lib/\" 
-DDEFAULT_TARGET_VERSION=\"3.3\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc/gcc-3.3-20030517/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
	-I. -I. -I/mnt/scsi/src/gcc-3.3/gcc -I/mnt/scsi/src/gcc-3.3/gcc/. 
-I/mnt/scsi/src/gcc-3.3/gcc/config -I/mnt/scsi/src/gcc-3.3/gcc/../include 
/mnt/scsi/src/gcc-3.3/gcc/cp/g++spec.c)
cc1: Unrecognized option `-auxbase'
cc1: Output filename specified twice
cc1: g++spec: No such file or directory
make[2]: *** [g++spec.o] Error 1
make[2]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/scsi/src/configured/gcc-3.3/gcc'
make: *** [bootstrap] Error 2


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

end of thread, other threads:[~2003-06-01 18:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-17 19:19 extremely disappointing bootstrap problems building gcc on linux :( Dara Hazeghi
2003-05-18 12:56 ` John Sincock
2003-05-18 12:56 ` John Sincock
  -- strict thread matches above, loose matches on Subject: below --
2003-06-01 18:36 Dara Hazeghi
     [not found] <20030521073851.73254.qmail@web41110.mail.yahoo.com>
2003-06-01 12:06 ` ible
2003-06-01 12:06 ` ible
     [not found] <200305171200.h4HC0acA251822@e35.co.us.ibm.com>
2003-05-19 19:37 ` Janis Johnson
2003-05-17 12:00 John Sincock
2003-05-17 12:00 John Sincock

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).