Problem building gcc42 on 10.3.9.

William Gallafent william at gallaf.net
Wed Jun 27 02:09:21 PDT 2007


Hi,

On a clean macports installation on a powerpc machine running 
10.3.9, I typed "sudo port install gcc42". Sadly, I hit the 
following error (whole build log copied, since it isn't very 
long). I am trying a rebuild having removed the -j 2 from the 
port file, in case it was a race condition due to parallel 
build :(

--->  Fetching gmp
--->  Attempting to fetch gmp-4.2.1.tar.bz2 from 
http://ftp.gnu.org/gnu/gmp
--->  Verifying checksum(s) for gmp
--->  Extracting gmp
--->  Configuring gmp
--->  Building gmp with target all
--->  Staging gmp into destroot
--->  Running ranlib on static libraries
--->  Installing gmp 4.2.1_4+test
--->  Activating gmp 4.2.1_4+test
--->  Cleaning gmp
--->  Fetching gperf
--->  Attempting to fetch gperf-3.0.3.tar.gz from 
http://ftp.gnu.org/gnu/gperf
--->  Verifying checksum(s) for gperf
--->  Extracting gperf
--->  Configuring gperf
--->  Building gperf with target all
--->  Staging gperf into destroot
--->  Installing gperf 3.0.3_0
--->  Activating gperf 3.0.3_0
--->  Cleaning gperf
--->  Fetching libiconv
--->  Attempting to fetch libiconv-1.11.tar.gz from 
http://ftp.gnu.org/gnu/libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Configuring libiconv
--->  Building libiconv with target all
--->  Staging libiconv into destroot
--->  Installing libiconv 1.11_4+darwin_7
--->  Activating libiconv 1.11_4+darwin_7
--->  Cleaning libiconv
--->  Fetching mpfr
--->  Attempting to fetch patch01 from 
http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch02 from 
http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch03 from 
http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch04 from 
http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch patch05 from 
http://www.mpfr.org/mpfr-2.2.1/
--->  Attempting to fetch mpfr-2.2.1.tar.bz2 from 
http://www.mpfr.org/mpfr-2.2.1/
--->  Verifying checksum(s) for mpfr
--->  Extracting mpfr
--->  Applying patches to mpfr
--->  Configuring mpfr
--->  Building mpfr with target all
--->  Staging mpfr into destroot
--->  Installing mpfr 2.2.1_1
--->  Activating mpfr 2.2.1_1
--->  Cleaning mpfr
--->  Fetching gcc42
--->  Attempting to fetch gcc-core-4.2.0.tar.bz2 from 
ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.2.0/
--->  Attempting to fetch gcc-fortran-4.2.0.tar.bz2 from 
ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.2.0/
--->  Attempting to fetch gcc-g++-4.2.0.tar.bz2 from 
ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.2.0/
--->  Attempting to fetch gcc-java-4.2.0.tar.bz2 from 
ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.2.0/
--->  Attempting to fetch gcc-objc-4.2.0.tar.bz2 from 
ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-4.2.0/
--->  Verifying checksum(s) for gcc42
--->  Extracting gcc42
--->  Configuring gcc42
--->  Building gcc42 with target bootstrap
Error: Target com.apple.build returned: shell command " 
cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/build" 
&& make bootstrap -j 2 " returned error 2
Command output: 
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../../../gcc-4.2.0/libiberty/xstrndup.c -o 
xstrndup.o
if [ x"" != x ]; then \
  
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes  ../../../gcc-4.2.0/libiberty/mempcpy.c -o 
pic/mempcpy.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../../../gcc-4.2.0/libiberty/mempcpy.c -o 
mempcpy.o
if [ x"" != x ]; then \
  
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes  ../../../gcc-4.2.0/libiberty/stpncpy.c -o 
pic/stpncpy.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../../../gcc-4.2.0/libiberty/stpncpy.c -o 
stpncpy.o
if [ x"" != x ]; then \
  
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes  ../../../gcc-4.2.0/libiberty/strndup.c -o 
pic/strndup.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../../../gcc-4.2.0/libiberty/strndup.c -o 
strndup.o
if [ x"" != x ]; then \
  
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes  ../../../gcc-4.2.0/libiberty/strverscmp.c -o 
pic/strverscmp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -I. -I../../../gcc-4.2.0/libiberty/../include  -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes ../../../gcc-4.2.0/libiberty/strverscmp.c -o 
strverscmp.o
rm -f ./libiberty.a pic/./libiberty.a
ar rc ./libiberty.a \
  ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./mempcpy.o ./stpncpy.o ./strndup.o ./strverscmp.o
ranlib ./libiberty.a
if [ x"" != x ]; then \
  cd pic; \
  ar rc ./libiberty.a \
    ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./mempcpy.o ./stpncpy.o ./strndup.o ./strverscmp.o; 
\
  ranlib ./libiberty.a; \
  cd ..; \
else true; fi
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2

Error: Status 1 encountered during processing.

-- 
Bill Gallafent.



More information about the macports-users mailing list