标题: ubuntu系统下编译sylixos-base出错 [打印本页] 作者: 孙维波 时间: 2015-11-25 21:11 标题: ubuntu系统下编译sylixos-base出错 在sylixos-base下执行make,输出错误如下:
In file included from /usr/include/newlib/math.h:5:0,
from SylixOS/lib/libc/stdio/vfprintf.c:258:
/usr/include/newlib/sys/reent.h:115:8: error: redefinition of 'struct __sbuf'
struct __sbuf {
^
In file included from ./SylixOS/../SylixOS/lib/lib_lib.h:42:0,
from ./SylixOS/../SylixOS/kernel/include/k_kernel.h:204,
from ./SylixOS/include/SylixOS.h:56,
from ./SylixOS/include/stdio.h:30,
from SylixOS/lib/libc/stdio/vfprintf.c:46:
./SylixOS/../SylixOS/lib/./libc/stdio/lib_stdio.h:93:8: note: originally defined here
struct __sbuf {
^
In file included from /usr/include/newlib/math.h:5:0,
from SylixOS/lib/libc/stdio/vfprintf.c:258:
/usr/include/newlib/sys/reent.h:179:8: error: redefinition of 'struct __sFILE'
struct __sFILE {
^
In file included from ./SylixOS/../SylixOS/lib/lib_lib.h:42:0,
from ./SylixOS/../SylixOS/kernel/include/k_kernel.h:204,
from ./SylixOS/include/SylixOS.h:56,
from ./SylixOS/include/stdio.h:30,
from SylixOS/lib/libc/stdio/vfprintf.c:46:
./SylixOS/../SylixOS/lib/./libc/stdio/lib_stdio.h:124:16: note: originally defined here
typedef struct __sFILE {
^
make[1]: *** [Debug/obj/SylixOS/lib/libc/stdio/vfprintf.o] 错误 1
make[1]:正在离开目录 `/home/bobo/sylixos_workspace/sylixos-base/libsylixos'
make: *** [all] 错误 2