[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building mips cross compiler with 2.95.4



Othmar Pasteka wrote:
[snip]
>   /home/othmar/gcc/gcc-2.95-2.95.4.ds15/src-native/gcc/xgcc
> -B/home/othmar/gcc/gcc-2.95-2.95.4.ds15/src-native/gcc/
> -B/usr/local/mips-linux/bin/ -I/usr/local/mips-linux/include -O2
> -DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include   -g1
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I./config
> -I./../include -c -DL${name} \
>        ./libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   mips-linux-ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> ./libgcc2.c:41: stdlib.h: No such file or directory
> ./libgcc2.c:42: unistd.h: No such file or directory

You need a mips-linux libc in order to build a full gcc.

[snip]
> adding an -I/usr/mips-linux/include gives me a nice
> In file included from /usr/mips-linux/include/sys/types.h:31,
>                  from /usr/mips-linux/include/stdlib.h:416,
>                  from ./libgcc2.c:41:
> /usr/mips-linux/include/bits/types.h:127: #error 
> make[1]: *** [libgcc2.a] Fehler 1
> 
> do I miss something here?

Incompatible header files.

> I also tried with --with-newlib which resulted in
> 
>   /home/othmar/gcc/gcc-2.95-2.95.4.ds15/src-native/gcc/xgcc
> -B/home/othmar/gcc/gcc-2.95-2.95.4.ds15/src-native/gcc/
> -B/usr/local/mips-linux/bin/ -I/usr/local/mips-linux/include -O2
> -DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include   -g1
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I.
> -I./config -I./../include -c -DL${name} \
>        ./libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   mips-linux-ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> as: Unbekannte Option »-O2«

This is the native as instead of the mips-linux cross as.


Thiemo



Reply to: