build gcc 4.1.1 on a PowerMac G5 running Yellow Dog Linux 4.0 fails

Richardson, Joshua A. Joshua.Richardson@gd-ais.com
Thu Apr 12 17:34:00 GMT 2007


Hi all,

I'm having an issue trying to build gcc 4.1.1 on a PowerMac G5 running Yellow Dog Linux 4.0.  Since I'm pretty new to building gcc, let me just lay out the steps I've taken and the errors I've gotten.

1. Running the following configure line: 

a. ../gcc-4.1.1/configure --prefix=/usr/bin --enable-languages="c,c++' --disable-multilib 


2. Which completes normally (to the best of my knowledge) - here's my config.log 

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc  ) works
configure:1954: gcc -o conftest    conftest.c  1>&5
configure:1980: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:1994: gcc -E conftest.c
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2275: checking for correct version of gmp.h
configure:2288: gcc -c -g -O2   conftest.c 1>&5
configure:2301: checking for MPFR
configure:2314: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:3313: checking for bison
configure:3353: checking for bison
configure:3392: checking for gm4
configure:3392: checking for gnum4
configure:3392: checking for m4
configure:3431: checking for flex
configure:3471: checking for flex
configure:3510: checking for makeinfo
configure:3563: checking for expect
configure:3604: checking for runtest
configure:3652: checking for powerpc64-unknown-linux-gnu-ar
configure:3683: checking for ar
configure:3727: checking for powerpc64-unknown-linux-gnu-as
configure:3758: checking for as
configure:3802: checking for powerpc64-unknown-linux-gnu-dlltool
configure:3833: checking for dlltool
configure:3877: checking for powerpc64-unknown-linux-gnu-ld
configure:3908: checking for ld
configure:3952: checking for powerpc64-unknown-linux-gnu-lipo
configure:3983: checking for lipo
configure:4027: checking for powerpc64-unknown-linux-gnu-nm
configure:4058: checking for nm
configure:4102: checking for powerpc64-unknown-linux-gnu-ranlib
configure:4133: checking for ranlib
configure:4172: checking for powerpc64-unknown-linux-gnu-strip
configure:4203: checking for strip
configure:4242: checking for powerpc64-unknown-linux-gnu-windres
configure:4273: checking for windres
configure:4317: checking for powerpc64-unknown-linux-gnu-objcopy
configure:4348: checking for objcopy
configure:4392: checking for powerpc64-unknown-linux-gnu-objdump
configure:4423: checking for objdump
configure:4474: checking for powerpc64-unknown-linux-gnu-ar
configure:4505: checking for ar
configure:4549: checking for powerpc64-unknown-linux-gnu-as
configure:4580: checking for as
configure:4624: checking for powerpc64-unknown-linux-gnu-cc
configure:4655: checking for cc
configure:4699: checking for powerpc64-unknown-linux-gnu-c++
configure:4730: checking for c++
configure:4774: checking for powerpc64-unknown-linux-gnu-dlltool
configure:4805: checking for dlltool
configure:4849: checking for powerpc64-unknown-linux-gnu-gcc
configure:4880: checking for gcc
configure:4919: checking for powerpc64-unknown-linux-gnu-gcj
configure:4950: checking for gcj
configure:4994: checking for powerpc64-unknown-linux-gnu-gfortran
configure:5025: checking for gfortran
configure:5069: checking for powerpc64-unknown-linux-gnu-ld
configure:5100: checking for ld
configure:5144: checking for powerpc64-unknown-linux-gnu-lipo
configure:5175: checking for lipo
configure:5219: checking for powerpc64-unknown-linux-gnu-nm
configure:5250: checking for nm
configure:5294: checking for powerpc64-unknown-linux-gnu-objdump
configure:5325: checking for objdump
configure:5369: checking for powerpc64-unknown-linux-gnu-ranlib
configure:5400: checking for ranlib
configure:5439: checking for powerpc64-unknown-linux-gnu-strip
configure:5470: checking for strip
configure:5514: checking for powerpc64-unknown-linux-gnu-windres
configure:5545: checking for windres
configure:5588: checking where to find the target ar
configure:5613: checking where to find the target as
configure:5638: checking where to find the target cc
configure:5663: checking where to find the target c++
configure:5691: checking where to find the target c++ for libstdc++
configure:5719: checking where to find the target dlltool
configure:5744: checking where to find the target gcc
configure:5769: checking where to find the target gcj
configure:5797: checking where to find the target gfortran
configure:5825: checking where to find the target ld
configure:5850: checking where to find the target lipo
configure:5865: checking where to find the target nm
configure:5890: checking where to find the target objdump
configure:5915: checking where to find the target ranlib
configure:5940: checking where to find the target strip
configure:5965: checking where to find the target windres
configure:6018: checking whether to enable maintainer-specific portions of Makefiles
configure:6065: checking if symbolic links between directories work

3. Then I run make -j 3 and after several minutes get the following error: 

/usr/bin/ld: skipping incompatible /usr/lib/libc.so 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[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/opt/gcc-carp/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/opt/gcc-carp/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/opt/gcc-carp'
make: *** [all] Error 2
[root@hmi gcc-carp]#

I'm running binutils 2.17 which installs with no problem.  Any idea on what I could be doing wrong?  Thanks so much!


Joshua A. Richardson
Senior Systems Engineer
joshua.richardson@gd-ais.com
(703) 272-1761 -- Office
(540) 383-9093 -- Cell




More information about the Gcc-help mailing list