cross compile,gcc make error, short of headers - Embedded

This is a discussion on cross compile,gcc make error, short of headers - Embedded ; 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: 没有那个文件或目录 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: cross compile,gcc make error, short of headers

  1. 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:
    没有那个文件或目录
    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:
    没有那个文件或目录
    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:
    没有那个文件或目录
    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] 错误 1
    make[1]: Leaving directory `/home/fanxin/build/gcc-core/gcc'
    make: *** [all-gcc] 错误 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


  2. Re: cross compile,gcc make error, short of headers

    longway_bme wrote:
    > 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:
    > 没有那个文件或目录


    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 Thread