rt-smart 的qemu-vexpress-a9,scons出错

发布于 2020-11-20 08:41:24
git clone https://gitee.com/rtthread/rt-thread.git
git checkout -b rt-smart origin/rt-smart
cd bsp/qemu-vexpress-a9
scons

错误信息如下

mmc@debian ~/dev/embedded/rt-thread/rt-thread/bsp/qemu-vexpress-a9 $ scons
scons: Reading SConscript files ...
b''
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build/applications/lcd_init.o
CC build/applications/main.o
CC build/applications/mnt.o
CC build/drivers/board.o
In file included from /home/mmc/dev/embedded/rt-thread/rt-thread/components/lwp/arch/arm/cortex-a/lwp_arch.h:13:0,
                 from drivers/board.c:23:
/home/mmc/dev/embedded/rt-thread/rt-thread/components/lwp/lwp.h:50:17: error: conflicting types for 'pid_t'
 typedef int32_t pid_t;
                 ^~~~~
In file included from /usr/include/newlib/sys/signal.h:12:0,
                 from /usr/include/newlib/signal.h:6,
                 from /home/mmc/dev/embedded/rt-thread/rt-thread/include/libc/libc_signal.h:74,
                 from /home/mmc/dev/embedded/rt-thread/rt-thread/include/rtdef.h:492,
                 from /home/mmc/dev/embedded/rt-thread/rt-thread/include/rtthread.h:24,
                 from /home/mmc/dev/embedded/rt-thread/rt-thread/include/rthw.h:21,
                 from drivers/board.c:14:
/usr/include/newlib/sys/types.h:190:18: note: previous declaration of 'pid_t' was here
 typedef __pid_t  pid_t;  /* process id */
                  ^~~~~
scons: *** [build/drivers/board.o] Error 1
scons: building terminated because of errors.

查看更多

关注者
0
被浏览
117
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览