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]

help request - cross compiling for powerpc-linux target


I am a newbie following the CrossGCC FAQ.
I am attempting to follow it exactly. I believe
that I have. I am now guessing it is what may be
unwritten that is my problem. Here it goes:

I am using:
binutils-2.9.tar.gz
gcc-2.95.2.tar.gz
newlib-1.8.2.tar.gz

tar files are located in:
/home/jgentry/tars

When I run the one-tree-1.6.sh
everthing extracts correctly and the
tree structure described in the document
appears with the top level being
/home/jgentry/src

I make a build directory as instructed and
change into that directory to work
/home/jgentry/build

I then run configure as instructed. Since I am going
to use linux on a powerpc 860T on an embedded system
I use:
../src/configure --target=powerpc-linux --prefix=/usr/local -v

This step appears to configure as needed.

I finally:
make all install

After about 20 minutes of smooth sailing I finally get this:

make[1]: Entering directory '/home/jgentry/build/powerpc-linux/libio'
if [ x"no" = xyes ] && [ ! -d pic ]; then \
  mkdir pic: \
else true fi
touch stamp-picdir
test x"no" != xyes ||\
  /home/jgentry/build/gcc/xgcc -B/home/jgentry/build/gcc/
-B/usr/local/powerpc-lin
ux/bin/ -idirafter /home/jgentry/build/powerpc-linux/newlib/targ-include
-idirafte
r /home/jgentry/src/newlib/lib/include -nostdinc -c -g -O2 -I.
-I../../../src/lib
io -D_IO_MTSAFE_IO ../../../src/libio/iogetline.c -o /pic/iogetline.o
/home/jgentry/build/gcc/xgcc -B/home/jgentry/build/gcc/
-B/usr/local/powerpc-linux
/bin/ -idirafter /home/jgentry/build/powerpc-linux/newlib/targ-include
-idirafter 
/home/jgentry/src/newlib/lib/include -nostdinc -c -g -O2 -I.
-I../../../src/libio 
 -D_IO_MTSAFE_IO ../../../src/libio/iogetline.c
In file included from ../../../src/libio/iolibio.h:1
                 from ../../../src/libio/libioP.h:47
                 from ../../../src/libio/iogetline.c:26:
../../../src/libio/libio.h:30: _G_config.h: no such file or directory
make[1]: *** [iogetline.o] Error 1
make[1]: Leaving directory '/home/jgentry/build/powerpc-linux/libio'
make: *** [all-target-libio] Error 2

The only place on my host machine that I find _G_config.h is:
/usr/include

Did I do something wrong or did I not do something at all?

Where should I place lib and header file for the target?

Any help appreciated,


Jeff Gentry,
PEI Electronics,
An Integrated Defense Technologies Company
Email: JGentry@pei-idt.com
Voice: (256) 895-2106
Fax:   (256) 895-2222 

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


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