Trouble building GCC 2.95.2 on intel Linux as cross compiler for PPC

Phil Karn karn@ka9q.ampr.org
Tue Jul 11 18:34:00 GMT 2000


When I try to build GCC 2.95.2 as a cross compiler for ppc-eabi, I get
the following errors. The host is a Debian GNU/Linux system running
the "frozen" release of potato, which has gcc 2.95.2.

I have already built and installed binutils-2.10 for ppc-eabi without
trouble. Both the binutils and gcc builds are done in directories
separate from the source trees.

I have a full script of the tarball extraction and build attempt, if
anyone wants to see it.

--Phil Karn

else true; fi
touch stamp-picdir
rootme=`pwd`/ ; export rootme; \
CC="/usr/local/pkg/gcc-build/gcc/xgcc -B/usr/local/pkg/gcc-build/gcc/ -B/usr/local/ppc-eabi/bin/ -I. -I../../../gcc-2.95.2/libio"; export CC; \
CXX="/usr/local/pkg/gcc-build/gcc/xgcc -B/usr/local/pkg/gcc-build/gcc/ -B/usr/local/ppc-eabi/bin/ -I. -I../../../gcc-2.95.2/libio -nostdinc++ -nostdinc++ -g -O2"; export CXX; \
CONFIG_NM="ppc-eabi-nm"; export CONFIG_NM; \
/bin/sh ../../../gcc-2.95.2/libio/gen-params LIB_VERSION=2.8.0  >tmp-params.h
dummy.c:1: sys/types.h: No such file or directory
dummy.c:8: stdio.h: No such file or directory
dummy.c:9: time.h: No such file or directory
dummy.c:10: signal.h: No such file or directory
gen-params: could not invoke /usr/local/pkg/gcc-build/gcc/xgcc -B/usr/local/pkg/gcc-build/gcc/ -B/usr/local/ppc-eabi/bin/ -I. -I../../../gcc-2.95.2/libio -E on dummy.c
make[1]: *** [_G_config.h] Error 1
make[1]: Leaving directory `/usr/local/pkg/gcc-build/ppc-eabi/libio'
make: *** [all-target-libio] Error 2


More information about the Gcc-bugs mailing list