This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build trouble, gcc 2.95.3 i868/powerpc cross compiler



I'm trying to build a gcc cross compiler, 
host is linux i686 box, target is powerpc.

I have done the following so far.

I have searched dejanews/google and this list's 
archive and found several close matches, but when 
I tried the suggestions provided previously it has
not so far worked for me.

The gcc I'm using to try to make the cross compiler is:
2.96 (according to `gcc --version, this is a redhat 7.2 system)

Got gcc.2.95.3.tar.gz from ftp.gnu.org
Got newlib from CVS ( :pserver:anoncvs@anoncvs.cygnus.com:/cvs/src )
Got binutils-2.12.90.0.4.tar.bz2 from ftp.gnu.org

Configured binutils with --prefix=/usr/local/ppc --target=powerpc-linux
make
make install

Unpacked gcc-2 to /home/scameron/gcc-2.95.3
Copied src/newlib directory to /home/scameron/gcc-2.95.3/newlib

cd /home/scameron/gcc-2.95.3
./configure --prefix=/usr/local/ppc \
	--target=powerpc-linux \
	--enable-shared \
	--with-headers=/home/scameron/gcc-2.95.3/newlib/libc/includ

make

I get:

[...bunch of stuff deleted...]

touch stamp-picdir
test x"yes" != xyes || \
  /home/scameron/gcc-2.95.3/gcc/xgcc -B/home/scameron/gcc-2.95.3/gcc/ -B/usr/local/ppc/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I./../../include  -fPIC argv.c -o pic/argv.o
/home/scameron/gcc-2.95.3/gcc/xgcc -B/home/scameron/gcc-2.95.3/gcc/ -B/usr/local/ppc/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I./../../include  argv.c
test x"yes" != xyes || \
  /home/scameron/gcc-2.95.3/gcc/xgcc -B/home/scameron/gcc-2.95.3/gcc/ -B/usr/local/ppc/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I./../../include  -fPIC choose-temp.c -o pic/choose-temp.o
choose-temp.c:29: stdio.h: No such file or directory
choose-temp.c:30: sys/types.h: No such file or directory
choose-temp.c:32: unistd.h: No such file or directory
choose-temp.c:35: stdlib.h: No such file or directory
choose-temp.c:38: sys/file.h: No such file or directory
make[1]: *** [choose-temp.o] Error 1
make[1]: Leaving directory `/home/scameron/gcc-2.95.3/powerpc-linux/libiberty'
make: *** [all-target-libiberty] Error 2


Please cc me as I'm not subscribed to this list.

Thanks for any help.

-- steve


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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