cross compile,gcc make error, short of headers

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
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%B2A1%E69C%89E9%82A3%E4B8%AAE6%9687%E4BB%B6E6%8896%E79B%AEE5%
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%B2A1%E69C%89E9%82A3%E4B8%AAE6%9687%E4BB%B6E6%8896%E79B%AEE5%
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%B2A1%E69C%89E9%82A3%E4B8%AAE6%9687%E4BB%B6E6%8896%E79B%AEE5%
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%9499%E8AF%AF 1
make[1]: Leaving directory `/home/fanxin/build/gcc-core/gcc'
make: *** [all-gcc] E9%9499%E8AF%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


Re: cross compile,gcc make error, short of headers
Quoted text here. Click to load it

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.

Site Timeline