GCC 3.2 compilation on sparc64-unknown-linux-gnu

Hillel (Sabba) Markowitz sabbahem@bcpl.net
Fri Sep 13 10:17:00 GMT 2002


1. The gcc man pages seem to say that you need to specify --with-gnu-ld and 
--with-gnu-as in order to build properly.

2. The instructions also say that you need to first build and install 
binutils-2.13 before trying to build the new gcc.

3.  The coments on linux seem to say that you should also build glibc before 
building gcc but I have not built on a Linux platform so I do not know if it 
is required.



----------------------- Original Message ---------------------------------
     From: Allen Parker <allenp at efn dot org>
     To: gcc-help at gcc dot gnu dot org
     Date: Fri, 13 Sep 2002 05:03:46 -0400
     Subject: GCC 3.2 compilation on sparc64-unknown-linux-gnu



I'm very frustrated, I've been trying for 3 days to get GCC 3.2 to
compile on my Splack 8.1 (?) machine (seems to have most of the same
software as deb 3.0) so that I can move over to the
http://www.linuxfromscratch.com basic system. Here's the configure
line(s) and where it chokes and pukes:


lfs@ultra5:/lfs/static/src$ ../gcc-3.2/configure --prefix=/static \
--enable-languages=c --disable-nls --disable-shared \
 --enable-threads-posix &&
 echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &&
 make BOOT_LDFLAGS=-static bootstrap &&
 make prefix=$LFS/static install &&
 ln -s gcc $LFS/static/bin/cc

make CC="stage1/xgcc -Bstage1/ -B/static/sparc64-unknown-linux-gnu/bin/"
\
         STAGE_PREFIX=stage1/ \
         CFLAGS="-g -O2" LDFLAGS="-static"
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic
-Wno-long-long" libdir=/static/lib LANGUAGES="c gcov " MAKEOVERRIDES=
OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/lfs/static/src/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/static/sparc64-unknown-linux-gnu/bin/ -c
-DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2/gcc
-I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config
-I../../gcc-3.2/gcc/../include ../../gcc-3.2/gcc/gengenrtl.c -o
gengenrtl.o
stage1/xgcc -Bstage1/ -B/static/sparc64-unknown-linux-gnu/bin/ -DIN_GCC
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE
-static -o gengenrtl \
 gengenrtl.o ../libiberty/libiberty.a
/usr/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for
-lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching
for -lc
/usr/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for
-lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for
-lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/lfs/static/src/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/lfs/static/src/gcc-build/gcc'
make: *** [bootstrap] Error 2

ALSO: here's the make, gcc, and glibc versions:

lfs@ultra5:/lfs/static/src$ make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-slackware-linux-gnu

lfs@ultra5:/lfs/static/src$ gcc -v
Reading specs from /usr/lib/gcc-lib/sparc-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)

glibc appears to be of version 2.2.3

lfs@ultra5:/lfs/static/src$ ld -v
GNU ld version 2.11.90.0.19 (with BFD 2.11.90.0.19)

I'm not quite sure how I'm supposed to go about doing anything without
being able to compile my compiler... any help would be appreciated. And:
if you're not quite sure what I'm trying to do, I need to build a
NON-DYNAMICLY LINKED version of GCC 3.2 to perform further maintenance.
---------------------- End Original Message ---------------------------

-- 
Said the fox to the fish, "Join me ashore".
 The fish are the Jews, Torah is our water

Hillel (Sabba) Markowitz - sabbahem@bcpl.net



More information about the Gcc-help mailing list