This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cross compile for powerpc-eabi problem.
- From: diego <diego_liu at 263 dot net>
- To: gcc-bugs at gcc dot gnu dot org <gcc-bugs at gcc dot gnu dot org>
- Cc: wenshengliu at 263 dot net <wenshengliu at 263 dot net>
- Date: Fri, 30 Nov 2001 14:58:13 +0800
- Subject: cross compile for powerpc-eabi problem.
[Get raw message]
i use a cygwin1.3.5 on win2000 to build a toolchain for powerpc target.
on host i use :
gcc2.95.3-5
ld 2.11.92
the source file is :
binutils-2.11.2
gcc-2.95.1
newlib-1.9.0
gdb-5.0
after setting up the target and prefix environment variables, i do as the instructions.
after i successfully make and install the binutils, i go on to second step
to compile gcc. but when compiling, the following error messages occurs:
_muldi3
./../gcc-2.95.1/gcc/libgcc2.c:41 stdlib.h: No such file or directory
./../gcc-2.95.1/gcc/libgcc2.c:42 unistd.h: No such file or directory
when i examine the file libgcc2.c:
#ifndef inhibit_libc
/* fixproto guarantees these system headers exitst. */
#include <stdlib.h>
#include <unistd.h>
#endif
probably this is the libc or glibc problem, what shall do. when compiling the source
, i think the header file needed is to the host(cygnus) not to the target(powerpc).
and the two file resides in /usr/include.
what is the problem?
can anyone help me?
thanks very much!
Diego Liou