SylixOS嵌入式操作系统|论坛

标题: 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


貌似是说 __sbuf  和 __sFILE 定义的问题,这是怎么回事啊?


作者: sylixos    时间: 2015-11-29 19:53
开源编译器 C 库需要替换一个 reent.h 文件,wiki 上有说明
作者: 孙维波    时间: 2015-11-30 01:38
嗯,解决了,谢谢




欢迎光临 SylixOS嵌入式操作系统|论坛 (https://bbs.sylixos.com/) Powered by Discuz! X3.2