stdio.h: No such file or directory
Dan Kegel
dank@kegel.com
Fri Oct 21 16:09:00 GMT 2005
Use crosstool.
Pramod P K wrote:
> Hi,
> i ve done
>
> * for binutils-2.15 :
>
> ./configure --target=arm-linux --prefix=/home/pramod
>
> make
>
> make install
>
> * for gcc-3.4.3 :
> in the Makefile of Kernel 2.6.10, changed to :
>
> ARCH = arm
> CROSS_COMPILE=<path-to-compiler-without-gcc>
>
> make menuconfig
> 'System type' as StrongARM, since i compile it for ARM9
>
> mkdir /home/pramod/include
>
> cp -dR /home/pramod/linux-2.6.10/include/asm-arm
> home/pramod/arm-linux/include/asm
>
> cp -dR /home/pramod/linux-2.6.10/include/linux
> /home/pramod/arm-linux/include/linux
>
> Then at gcc-3.4.3, i edit gcc/config/arm/t-linux:
> to:
> TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC -Dinhibit_libc
> -D__gthr_posix_h
>
> at gcc-3.4.3 i do:
>
> ./configure --target=arm-linux --prefix=/home/pramod
> --with-headers=/home/pramod/linux-2.6.10/include
>
> make
>
> this procedure gives me the error at the end looks like:
>
> /bin/sh ../../gcc/mkconfig.sh tconfig.h
> /home/pramod/gcc-3.4.3/gcc/xgcc -B/home/pramod/gcc-3.4.3/gcc/
> -B/home/pramod/arm-linux/bin/ -B/home/pramod/arm-linux/lib/ -isystem
> /home/pramod/arm-linux/include -isystem
> /home/pramod/arm-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W
> -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition -isystem ./include -I. -I. -I../../gcc
> -I../../gcc/. -I../../gcc/../include -g0 -finhibit-size-directive
> -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
> -fno-unit-at-a-time \
> -c ../../gcc/crtstuff.c -DCRT_BEGIN \
> -o crtbegin.o
> In file included from ../../gcc/crtstuff.c:62:
> ../../gcc/tsystem.h:79:19: stdio.h: No such file or directory
> ../../gcc/tsystem.h:82:23: sys/types.h: No such file or directory
> ../../gcc/tsystem.h:85:19: errno.h: No such file or directory
> ../../gcc/tsystem.h:92:20: string.h: No such file or directory
> ../../gcc/tsystem.h:93:20: stdlib.h: No such file or directory
> ../../gcc/tsystem.h:94:20: unistd.h: No such file or directory
> ../../gcc/tsystem.h:100:18: time.h: No such file or directory
> make[1]: *** [crtbegin.o] Error 1
> make[1]: Leaving directory `/home/pramod/NEW/gcc-3.4.3/arm_tool/gcc'
> make: *** [all-gcc] Error 2
>
>
> Plz go thru, come with possible solution;
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list