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]

RE: x86 redhat ppc-32-elf gcc build failure


Hello Gary,

I had the exact same problem bugging me. (he couldn't find stdlib.h). But i
followed the advice of few people here at the mailing list and now i got it
up and running.

The problem is that you need to make a symlink to the include directory of
the library you want to link with.
(either newlib (recommended for embedded targets) or glibc (for bigger
projects))

An interesting link that can help you set it up properly is :
http://sources.redhat.com/ml/crossgcc/2000-q2/msg00195.html

It worked for me and will most probably work with your target too. (powerpc
is not that different from m68k anyway)

Good luck and let us know ok ?
Jan


-----Original Message-----
From: caokai [mailto:tk27@taikebj.com.cn]
Sent: Friday, March 30, 2001 12:13 PM
To: Crossgcc
Subject: x86 redhat ppc-32-elf gcc build failure


hi all:
  who have onced compiled the cross compiler for ppc860 target in redhat?
i am using x86 redhat linux 6.2,and want to build a cross compiler for
ppc860
target.
i use the gcc2.95..with the command following the sample:

target=powerpc-32-elf
prefix=/bar
i=$prefix/bin

mkdir build-binutils build-gcc build-newlib build-gdb

# Configure, build and install binutils
 cd build-binutils
../binutils-2.9.1/configure --target=$target --prefix=$prefix -v
make all install

# Configure, build and install gcc
cd ../build-gcc
../gcc-2.8.1/configure --target=$target --prefix=$prefix -v
make all install

but the problem come out now.
it shows that it can't find some include file like stdio.h .:
.
but it have not such problem when i compile a native gcc.what is wrong?
do it need anything else to download to the gcc source code directory to let
it
work for cross compiler?
gary



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

------
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]