This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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.


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