mips-elf cross compiling need linux/xx.h?

Jeff Johnston jjohnstn@redhat.com
Fri Jun 22 08:29:00 GMT 2001


Jong-Suk,

  What options did you specify when you configured gcc/binutils/newlib?  You
are not using newlib's standard sys/types.h which should be used in this case.

-- Jeff J.

Jong-Suk Lee wrote:

> Hi
> I would like to newlib-1.9.0 to target=mips-elf.
>
> I compiled bintutil and gcc for cross compiling.
>
> when I make newlib :
>
> mips-elf-gcc -B/home/astrix/gcc/newlib-1.9.0/mips-elf/newlib/ -isystem
> /home/astrix/gcc/newlib-1.9.0/mips-elf/newlib/targ-include -isystem
> /home/astrix/gcc/newlib-1.9.0/newlib/libc/include  -I. -I./.. `if [ -d
> ./../../newlib ]; then
> echo -I./../../newlib/targ-include -I./../../newlib/libc/include;
> fi` -O2 -I. -I./.. -c -g -O2 close.c
> In file included from ../../newlib/libc/include/time.h:32,
>                  from ../../newlib/libc/include/sys/reent.h:14,
>                  from ../../newlib/targ-include/sys/errno.h:11,
>                  from ../../newlib/libc/include/errno.h:1,
>                  from close.c:8:
> ../../newlib/targ-include/sys/types.h:27:25: linux/types.h: file not found
>
> Could somebody help me?
>
> Best regards
>
> Jong-Suk Lee
>
> astrix@zenus.com



More information about the Newlib mailing list