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: Need help to install a cross compiler for powerpc



--- Hua Ji <hji@netscreen.com> wrote:
> see inside. 
>  ----------------
> target=powerpc-eabi
> prefix=/dn/cross/install
> 
> cd build-binutils
> ../binutils-2.9.1/configure --target=$target
> --prefix=$prefix -v
> make all install
> cd ../build-gcc
> ../gcc-2.95.2/configure --target=$target
> --prefix=$prefix
> make all
> 
> I got the following error
> stdlib.h  No such file or directory.
> unistd.h  No such file or directory.
> 
> 
> Hua: You may want to specify the headers with
>
"--with-headers=/$somewhere/newlib-1.8.2/newlib/libc/include"
> 
> 4.  After I read the mailing list.
> I copied /usr/include to $prefix/$target/sub-include
> I have one question:
> Is /usr/include the right source for those header
> file?
>  
> 
> Hua: No.

Thanks Hua.  But after I put --with-headers as you
told  me,  I got following error when I make all under
build-gcc.  What other things I need to do ? Thanks.



cd ../libiberty ; make "SHELL=/bin/sh"
"INSTALL=/bin/sh /dn/cross/gcc-2.95.2/ins
tall-sh -c" "INSTALL_DATA=/bin/sh
/dn/cross/gcc-2.95.2/install-sh -c -m 644" "IN
STALL_PROGRAM=/bin/sh /dn/cross/gcc-2.95.2/install-sh
-c " "prefix=/dn/cross/ins
tall" "exec_prefix=/dn/cross/install"
"tooldir=/dn/cross/install/powerpc-eabi" "
gxx_include_dir=/dn/cross/install/include/g++-3"
"libsubdir=/dn/cross/install/li
b/gcc-lib/powerpc-eabi/2.95.2" "gcc_version=2.95.2"
"gcc_version_trigger=/dn/cro
ss/gcc-2.95.2/gcc/version.c" "AR=powerpc-eabi-ar"
"AR_FLAGS=rc" "CC=/dn/cross/bu
ild-gcc/gcc/xgcc -B/dn/cross/build-gcc/gcc/
-B/dn/cross/install/powerpc-eabi/bin
/" "CXX=/dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/inst
all/powerpc-eabi/bin/" "CFLAGS=-g -O2" "CXXFLAGS=-g
-O2" "NM=powerpc-eabi-nm" "R
ANLIB=powerpc-eabi-ranlib" "LIBCFLAGS=-g -O2"
"LIBCXXFLAGS=-g -O2 -fno-implicit-
templates" "LOADLIBES=" "LDFLAGS="
"MAKEINFO=/dn/cross/build-gcc/texinfo/makeinf
o/makeinfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES="
"RUNTESTFLAGS="
make[2]: Entering directory
`/dn/cross/build-gcc/powerpc-eabi/libiberty'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libstdc++'
make: *** [all-target-libstdc++] Error 2
[builder@prtpd320 build-gcc]$


=====
Ian Zhang
hhzhang@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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]