Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gcc 错误:应为‘’;或者‘’;在‘之前__属性_alloc_size_uu’;_Gcc_Cross Compiling_Pandaboard - Fatal编程技术网

Gcc 错误:应为‘’;或者‘’;在‘之前__属性_alloc_size_uu’;

Gcc 错误:应为‘’;或者‘’;在‘之前__属性_alloc_size_uu’;,gcc,cross-compiling,pandaboard,Gcc,Cross Compiling,Pandaboard,我正在使用x64 cpu并尝试构建交叉编译器,在执行以下命令时出现了一些错误: export PATH=/home/me/lab1/crossgcc2/bin:$PATH /home/me/lab1/gcc-5.1.0/configure \ --prefix=/home/me/lab1/crossgcc2 \ --target=arm-unknown-linux-gnueabihf \ --enable-languages=c \ --with-sysroot=/home/eric/lab1/

我正在使用x64 cpu并尝试构建交叉编译器,在执行以下命令时出现了一些错误:

export PATH=/home/me/lab1/crossgcc2/bin:$PATH
/home/me/lab1/gcc-5.1.0/configure \
--prefix=/home/me/lab1/crossgcc2 \
--target=arm-unknown-linux-gnueabihf \
--enable-languages=c \
--with-sysroot=/home/eric/lab1/sysroot \
--with-tune=cortex-a9 --with-float=hard
make
错误消息:

In file included from /home/fly/lab1/gcc-5.1.0/libgcc/../gcc/tsystem.h:101:0,
                 from /home/fly/lab1/gcc-5.1.0/libgcc/libgcc2.c:27:
/home/fly/lab1/sysroot/usr/include/stdlib.h:510:35: error: expected ‘,’ or ‘;’ before ‘__attribute_alloc_size__’
  __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur;
                               ^
In file included from /home/fly/lab1/gcc-5.1.0/libgcc/../gcc/tsystem.h:108:0,
                 from /home/fly/lab1/gcc-5.1.0/libgcc/libgcc2.c:27:
    /home/fly/lab1/sysroot/usr/include/time.h:123:5: error: unknown type name ‘__syscall_slong_t’
         __syscall_slong_t tv_nsec; /* Nanoseconds.  */
谁能告诉我怎么了吗?谢谢