Help Building GCC-3.2 Cross-compiler for PowerPC

Tony Cerreto cerreto@us.ibm.com
Mon Oct 28 07:13:00 GMT 2002


Hi:
I am trying to build a gcc cross-compiler for the PowerPC to support
both "c" and "c++".  I was able to successfully build just a "c"
compiler using the configuration parameters below with the additional
parameter "--enable-languages=c".  However, when I specify
"--enable-languages=c,c++" I receive an error.  I also receive an error
when removing the --enable-languages parameter altogether which should
build the entire compiler collection.   Below is the CONFIGURATION
statement, the MAKE RESULTS with the error received and then the MAKE
INSTALL RESULTS with the error received.  Lastly, although I have not
thoroughly tested the compiler collection produced, a g++.exe and
gcc.exe was produced.   Does anyone know why I received these errors?
Thanks.
Tony Cerreto
IBM Endicott
cerreto@us.ibm.com

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CONFIGURATION
/cygdrive/c/gnu/gcc-3.2/configure --with-gnu-as --with-gnu-ld
--with-cpu=403 --enable-win32-registry --disable-nls --disable-multilib
--target=powerpc-IBM-eabi

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MAKE RESULTS......

Configuring in powerpc-IBM-eabi/libiberty
loading cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... powerpc-IBM-eabi
checking build system type... i686-pc-cygwin
checking for powerpc-IBM-eabi-ar... (cached) powerpc-IBM-eabi-ar
checking for powerpc-IBM-eabi-ranlib... (cached) powerpc-IBM-eabi-ranlib

checking for gcc... (cached) /cygdrive/c/gnu/object-gcc-3.2/gcc/xgcc
-B/cygdrive
/c/gnu/object-gcc-3.2/gcc/ -B/usr/local/powerpc-IBM-eabi/bin/
-B/usr/local/power
pc-IBM-eabi/lib/ -isystem /usr/local/powerpc-IBM-eabi/include
checking whether we are using GNU C... (cached) yes
checking whether /cygdrive/c/gnu/object-gcc-3.2/gcc/xgcc
-B/cygdrive/c/gnu/objec
t-gcc-3.2/gcc/ -B/usr/local/powerpc-IBM-eabi/bin/
-B/usr/local/powerpc-IBM-eabi/
lib/ -isystem /usr/local/powerpc-IBM-eabi/include accepts -g... (cached)
yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) /lib/cpp
checking for sys/file.h... grep: conftest.out: No such file or directory

yes
checking for sys/param.h... grep: conftest.out: No such file or
directory
yes
checking for limits.h... grep: conftest.out: No such file or directory
yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... grep: conftest.out: No such file or directory
yes
checking for strings.h... grep: conftest.out: No such file or directory
yes
checking for sys/time.h... grep: conftest.out: No such file or directory

yes
checking for time.h... grep: conftest.out: No such file or directory
yes
checking for sys/resource.h... grep: conftest.out: No such file or
directory
yes
checking for sys/stat.h... grep: conftest.out: No such file or directory

yes
checking for sys/mman.h... grep: conftest.out: No such file or directory

yes
checking for fcntl.h... grep: conftest.out: No such file or directory
yes
checking for alloca.h... grep: conftest.out: No such file or directory
yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking for ANSI C header files... grep: conftest.out: No such file or
director
y
no
checking for uintptr_t... no
checking whether the C compiler (/cygdrive/c/gnu/object-gcc-3.2/gcc/xgcc
-B/cygd
rive/c/gnu/object-gcc-3.2/gcc/ -B/usr/local/powerpc-IBM-eabi/bin/
-B/usr/local/p
owerpc-IBM-eabi/lib/ -isystem /usr/local/powerpc-IBM-eabi/include -g -O2
) works
... no
configure: error: installation or configuration problem: C compiler
cannot creat
e executables.
make: *** [configure-target-libiberty] Error 1


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

$ MAKE INSTALL RESULTS
......

ude/c++/3.2; done
/bin/sh /cygdrive/c/gnu/gcc-3.2/libstdc++-v3/../mkinstalldirs
/usr/local/include
/c++/3.2/./powerpc-IBM-eabi/bits
mkdir /usr/local/include/c++/3.2/./powerpc-IBM-eabi
mkdir /usr/local/include/c++/3.2/./powerpc-IBM-eabi/bits
for file in
/cygdrive/c/gnu/gcc-3.2/libstdc++-v3/config/os/newlib/bits/ctype_bas
e.h
/cygdrive/c/gnu/gcc-3.2/libstdc++-v3/config/os/newlib/bits/ctype_inline.h
/c
ygdrive/c/gnu/gcc-3.2/libstdc++-v3/config/os/newlib/bits/ctype_noninline.h
/cygd
rive/c/gnu/gcc-3.2/libstdc++-v3/config/os/newlib/bits/os_defines.h
/cygdrive/c/g
nu/gcc-3.2/libstdc++-v3/config/cpu/powerpc/bits/atomicity.h
/cygdrive/c/gnu/gcc-
3.2/libstdc++-v3/config/cpu/powerpc/bits/cpu_limits.h
./powerpc-IBM-eabi/bits/b
asic_file.h ./powerpc-IBM-eabi/bits/c++config.h
./powerpc-IBM-eabi/bits/c++io.h
./powerpc-IBM-eabi/bits/c++locale.h
./powerpc-IBM-eabi/bits/messages_members.h .
/powerpc-IBM-eabi/bits/codecvt_specializations.h \
 ./powerpc-IBM-eabi/bits/gthr.h ./powerpc-IBM-eabi/bits/gthr-single.h
./powerpc-
IBM-eabi/bits/gthr-posix.h ./powerpc-IBM-eabi/bits/gthr-default.h; do \
  /bin/sh /cygdrive/c/gnu/gcc-3.2/install-sh -c -m 644 ${file}
/usr/local/includ
e/c++/3.2/./powerpc-IBM-eabi/bits; done
make[3]: Leaving directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/libs
tdc++-v3/include'
make[2]: Leaving directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/libs
tdc++-v3/include'
Making install in libio
make[2]: Entering directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/lib
stdc++-v3/libio'
make[3]: Entering directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/lib
stdc++-v3/libio'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/libs
tdc++-v3/libio'
make[2]: Leaving directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/libs
tdc++-v3/libio'
Making install in libmath
make[2]: Entering directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/lib
stdc++-v3/libmath'
/bin/sh ../libtool --mode=compile
/cygdrive/c/gnu/object-gcc-3.2/gcc/xgcc -B/cyg
drive/c/gnu/object-gcc-3.2/gcc/ -B/usr/local/powerpc-IBM-eabi/bin/
-B/usr/local/
powerpc-IBM-eabi/lib/ -isystem /usr/local/powerpc-IBM-eabi/include
-DHAVE_CONFIG
_H -I. -I/cygdrive/c/gnu/gcc-3.2/libstdc++-v3/libmath -I..      -g -O2
-c /cygdr
ive/c/gnu/gcc-3.2/libstdc++-v3/libmath/stubs.c
/cygdrive/c/gnu/object-gcc-3.2/gcc/xgcc
-B/cygdrive/c/gnu/object-gcc-3.2/gcc/ -B
/usr/local/powerpc-IBM-eabi/bin/ -B/usr/local/powerpc-IBM-eabi/lib/
-isystem /us
r/local/powerpc-IBM-eabi/include -DHAVE_CONFIG_H -I.
-I/cygdrive/c/gnu/gcc-3.2/l
ibstdc++-v3/libmath -I.. -g -O2 -c
/cygdrive/c/gnu/gcc-3.2/libstdc++-v3/libmath/
stubs.c -o stubs.o
/cygdrive/c/gnu/gcc-3.2/libstdc++-v3/libmath/stubs.c:30:18: math.h: No
such file
 or directory
make[2]: *** [stubs.lo] Error 1
make[2]: Leaving directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/libs
tdc++-v3/libmath'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/c/gnu/object-gcc-3.2/powerpc-IBM-eabi/libs
tdc++-v3'
make: *** [install-target-libstdc++-v3] Error 2





More information about the Gcc-help mailing list