cross compile,gcc make error, short of headers

Hello:

Everyone! I do the cross compile for arm-linux 2.6.10, when i make arm-linux-gcc i get the following errors:

In file included from /home/fanxin/software/gcc-3.4.2/gcc/tsystem.h:79, from /home/fanxin/software/gcc-3.4.2/gcc/crtstuff.c:62: /arm-linux/arm-linux/include/stdio.h:33:18: cstdio: =E6=B2=A1=E6=9C=89=E9=82=A3=E4=B8=AA=E6=96=87=E4=BB=B6=E6=88=96=E7=9B=AE=E5= =BD=95 In file included from /home/fanxin/software/gcc-3.4.2/gcc/tsystem.h:79, from /home/fanxin/software/gcc-3.4.2/gcc/crtstuff.c:62: /arm-linux/arm-linux/include/stdio.h:35: error: parse error before "std" In file included from /home/fanxin/software/gcc-3.4.2/gcc/crtstuff.c:62: /home/fanxin/software/gcc-3.4.2/gcc/tsystem.h:82:23: sys/types.h: =E6=B2=A1=E6=9C=89=E9=82=A3=E4=B8=AA=E6=96=87=E4=BB=B6=E6=88=96=E7=9B=AE=E5= =BD=95 In file included from /home/fanxin/software/gcc-3.4.2/gcc/tsystem.h:93, from /home/fanxin/software/gcc-3.4.2/gcc/crtstuff.c:62: /arm-linux/arm-linux/include/stdlib.h:33:19: cstdlib: =E6=B2=A1=E6=9C=89=E9=82=A3=E4=B8=AA=E6=96=87=E4=BB=B6=E6=88=96=E7=9B=AE=E5= =BD=95 In file included from /home/fanxin/software/gcc-3.4.2/gcc/tsystem.h:93, from /home/fanxin/software/gcc-3.4.2/gcc/crtstuff.c:62: /arm-linux/arm-linux/include/stdlib.h:35: error: parse error before "std" make[1]: *** [crtbegin.o] =E9=94=99=E8=AF=AF 1 make[1]: Leaving directory `/home/fanxin/build/gcc-core/gcc' make: *** [all-gcc] =E9=94=99=E8=AF=AF 2 [root@fanxin gcc-core]#

I pass the kernel linux2.6.10 :make menuconfig I copy the stdio.h stdlib.h sys-types.h to the ./arm-linux/incude by hands. The original headers stdio.h stdlib.h sys-types.h is in directory ./gcc/..

Any one can help me? Thanks

Reply to
longway_bme
Loading thread data ...

My cross compiling is nearly as poor as my Chinese, but just in case someone else is almost there:

Chinese 8 symbol phrase, used 3 times:

?????????

?? ?? ?? ? ??

?? [mei2 you3] /haven't/hasn't/doesn't exist/to not have/to not be/ ?? [nei4 ge4] /that one/ ?? [wen2 jian4] /document/file/ ? [huo4] /maybe/perhaps/might/possibly/or/ ?? [mu4 lu4] /catalog/table of contents/directory (computer)/list/contents/

Chinese 2 symbol phrase, used 2 times:

?? [cuo4 wu4] /error/mistake/mistaken/

Jan Coombs.

Reply to
Jan Coombs

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.