Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Env
qemu-vexpress-a9
env 编译qemu-vexpress-a9 报错
发布于 2022-04-03 14:56:46 浏览:1118
订阅该版
使用env 编译qemu-vexpress-a9报错。 rtt版本4.0.3,使用的rt-thread studio里面的bsp。 ``` 欢迎使用 RT-Thread env (V1.3.0) 工具 \ | / - RT - Thread Operating System / | \ 2006 - 2022 Copyright by rt-thread team Online help documents : https://www.rt-thread.org/document/site user user@DESKTOP-T4713QD D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.3\bsp\qemu-vexpress-a9 $ scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build\kernel\components\dfs\src\select.o D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.3\components\dfs\src\select.c: In function 'fdszero': D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.3\components\dfs\src\select.c:21:5: error: unknown type name 'fd_mask' 21 | fd_mask *m; | ^~~~~~~ D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.3\components\dfs\src\select.c:28:10: error: 'fd_mask' undeclared (first use in this function); did you mean 'umask'? 28 | m = (fd_mask *)set; | ^~~~~~~ | umask D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.3\components\dfs\src\select.c:28:10: note: each undeclared identifier is reported only once for each function it appears in D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.3\components\dfs\src\select.c:28:19: error: expected expression before ')' token 28 | m = (fd_mask *)set; | ^ scons: *** [build\kernel\components\dfs\src\select.o] Error 1 scons: building terminated because of errors. ``` rtt版本 4.0.2 ``` @DESKTOP-T4713QD D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\bsp\qemu-vexpress-a9 $ scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build\kernel\components\libc\compilers\newlib\libc.o In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:23, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/sched.h:19:5: error: expected identifier before numeric constant 19 | SCHED_OTHER = 0, | ^~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:29: warning: "PTHREAD_CREATE_JOINABLE" redefined 29 | #define PTHREAD_CREATE_JOINABLE 0x00 | In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:47: note: this is the location of the previous definition 47 | #define PTHREAD_CREATE_JOINABLE 1 | In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:30: warning: "PTHREAD_CREATE_DETACHED" redefined 30 | #define PTHREAD_CREATE_DETACHED 0x01 | In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:46: note: this is the location of the previous definition 46 | #define PTHREAD_CREATE_DETACHED 0 | In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:32: warning: "PTHREAD_EXPLICIT_SCHED" redefined 32 | #define PTHREAD_EXPLICIT_SCHED 0 | In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:43: note: this is the location of the previous definition 43 | #define PTHREAD_EXPLICIT_SCHED 2 /* set from provided attribute object */ | In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:35:14: error: conflicting types for 'pthread_t' 35 | typedef long pthread_t; | ^~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:32:20: note: previous declaration of 'pthread_t' was here 32 | typedef __uint32_t pthread_t; /* identify a thread */ | ^~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:36:14: error: conflicting types for 'pthread_condattr_t' 36 | typedef long pthread_condattr_t; | ^~~~~~~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:186:3: note: previous declaration of 'pthread_condattr_t' was here 186 | } pthread_condattr_t; /* a condition attribute object */ | ^~~~~~~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:38:14: error: conflicting types for 'pthread_mutexattr_t' 38 | typedef long pthread_mutexattr_t; | ^~~~~~~~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:169:3: note: previous declaration of 'pthread_mutexattr_t' was here 169 | } pthread_mutexattr_t; | ^~~~~~~~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:41:13: error: conflicting types for 'pthread_key_t' 41 | typedef int pthread_key_t; | ^~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:190:20: note: previous declaration of 'pthread_key_t' was here 190 | typedef __uint32_t pthread_key_t; /* thread-specific data keys */ | ^~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:42:13: error: conflicting types for 'pthread_once_t' 42 | typedef int pthread_once_t; | ^~~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:195:3: note: previous declaration of 'pthread_once_t' was here 195 | } pthread_once_t; /* dynamic package initialization */ | ^~~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:79:8: error: redefinition of 'struct sched_param' 79 | struct sched_param | ^~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:23, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\sched.h:48:8: note: originally defined here 48 | struct sched_param { | ^~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:95:29: error: conflicting types for 'pthread_attr_t' 95 | typedef struct pthread_attr pthread_attr_t; | ^~~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:75:3: note: previous declaration of 'pthread_attr_t' was here 75 | } pthread_attr_t; | ^~~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:102:30: error: conflicting types for 'pthread_mutex_t' 102 | typedef struct pthread_mutex pthread_mutex_t; | ^~~~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:154:20: note: previous declaration of 'pthread_mutex_t' was here 154 | typedef __uint32_t pthread_mutex_t; /* identify a mutex */ | ^~~~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:109:29: error: conflicting types for 'pthread_cond_t' 109 | typedef struct pthread_cond pthread_cond_t; | ^~~~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\types.h:223, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:12, from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\_pthreadtypes.h:176:20: note: previous declaration of 'pthread_cond_t' was here 176 | typedef __uint32_t pthread_cond_t; /* identify a condition variable */ | ^~~~~~~~~~~~~~ In file included from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:19: D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\pthreads/pthread.h:191:5: error: conflicting types for 'pthread_kill' 191 | int pthread_kill(pthread_t thread, int sig); | ^~~~~~~~~~~~ In file included from d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\signal.h:6, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/libc/libc_signal.h:71, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtdef.h:466, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\include/rtthread.h:24, from D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.0.2\components\libc\compilers\newlib\libc.c:10: d:\rt-threadstudio\platform\env_released\env\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:226:5: note: previous declaration of 'pthread_kill' was here 226 | int pthread_kill (pthread_t, int); | ^~~~~~~~~~~~ scons: *** [build\kernel\components\libc\compilers\newlib\libc.o] Error 1 scons: building terminated because of errors. ``` 使用rt-thread studio 新建项目并编译qemu-vexpress-a9可以正常编译和调试。 rt-thread studio使用的是4.1.0,通过RT-thread SDK管理器下载4.1.0,测试,同样编译不成功。 ``` @DESKTOP-T4713QD D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.1.0\bsp\qemu-vexpress-a9 $ scons scons: Reading SConscript files ... Newlib version:4.1.0 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 CC build\drivers\drv_keyboard.o CC build\drivers\drv_mouse.o CC build\drivers\drv_sdio.o CC build\drivers\drv_smc911x.o CC build\drivers\drv_timer.o CC build\drivers\secondary_cpu.o CC build\drivers\serial.o CC build\kernel\components\dfs\filesystems\devfs\devfs.o CC build\kernel\components\dfs\filesystems\elmfat\dfs_elm.o CC build\kernel\components\dfs\filesystems\elmfat\ff.o CC build\kernel\components\dfs\filesystems\elmfat\ffunicode.o CC build\kernel\components\dfs\filesystems\ramfs\dfs_ramfs.o CC build\kernel\components\dfs\filesystems\romfs\dfs_romfs.o CC build\kernel\components\dfs\filesystems\romfs\romfs.o CC build\kernel\components\dfs\src\dfs.o CC build\kernel\components\dfs\src\dfs_file.o CC build\kernel\components\dfs\src\dfs_fs.o CC build\kernel\components\dfs\src\dfs_posix.o CC build\kernel\components\drivers\i2c\i2c-bit-ops.o CC build\kernel\components\drivers\i2c\i2c_core.o CC build\kernel\components\drivers\i2c\i2c_dev.o CC build\kernel\components\drivers\ipc\completion.o CC build\kernel\components\drivers\ipc\dataqueue.o CC build\kernel\components\drivers\ipc\pipe.o CC build\kernel\components\drivers\ipc\ringblk_buf.o CC build\kernel\components\drivers\ipc\ringbuffer.o CC build\kernel\components\drivers\ipc\waitqueue.o CC build\kernel\components\drivers\ipc\workqueue.o CC build\kernel\components\drivers\misc\pin.o CC build\kernel\components\drivers\mtd\mtd_nand.o CC build\kernel\components\drivers\mtd\mtd_nor.o CC build\kernel\components\drivers\rtc\rtc.o CC build\kernel\components\drivers\rtc\soft_rtc.o CC build\kernel\components\drivers\sdio\block_dev.o CC build\kernel\components\drivers\sdio\mmc.o CC build\kernel\components\drivers\sdio\mmcsd_core.o CC build\kernel\components\drivers\sdio\sd.o CC build\kernel\components\drivers\sdio\sdio.o CC build\kernel\components\drivers\serial\serial.o CC build\kernel\components\drivers\spi\sfud\src\sfud.o CC build\kernel\components\drivers\spi\sfud\src\sfud_sfdp.o CC build\kernel\components\drivers\spi\spi_core.o CC build\kernel\components\drivers\spi\spi_dev.o CC build\kernel\components\drivers\spi\spi_flash_sfud.o CC build\kernel\components\drivers\spi\spi_msd.o CC build\kernel\components\drivers\watchdog\watchdog.o CC build\kernel\components\finsh\cmd.o CC build\kernel\components\finsh\msh.o CC build\kernel\components\finsh\msh_file.o CC build\kernel\components\finsh\shell.o CC build\kernel\components\libc\compilers\common\stdlib.o CC build\kernel\components\libc\compilers\common\time.o CC build\kernel\components\libc\compilers\newlib\syscalls.o CXX build\kernel\components\libc\cplusplus\cxx_crt.o CC build\kernel\components\libc\cplusplus\cxx_crt_init.o CXX build\kernel\components\libc\cplusplus\cxx_Mutex.o CXX build\kernel\components\libc\cplusplus\cxx_Semaphore.o CXX build\kernel\components\libc\cplusplus\cxx_Thread.o CC build\kernel\components\libc\posix\delay\delay.o CC build\kernel\components\libc\posix\io\aio\aio.o CC build\kernel\components\libc\posix\io\poll\poll.o CC build\kernel\components\libc\posix\io\poll\select.o D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.1.0\components\libc\posix\io\poll\select.c: In function 'fdszero': D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.1.0\components\libc\posix\io\poll\select.c:17:5: error: unknown type name 'fd_mask' 17 | fd_mask *m; | ^~~~~~~ D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.1.0\components\libc\posix\io\poll\select.c:24:10: error: 'fd_mask' undeclared (first use in this function) 24 | m = (fd_mask *)set; | ^~~~~~~ D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.1.0\components\libc\posix\io\poll\select.c:24:10: note: each undeclared identifier is reported only once for each function it appears in D:\RT-ThreadStudio\repo\Extract\RT-Thread_Source_Code\RT-Thread\4.1.0\components\libc\posix\io\poll\select.c:24:19: error: expected expression before ')' token 24 | m = (fd_mask *)set; | ^ scons: *** [build\kernel\components\libc\posix\io\poll\select.o] Error 1 scons: building terminated because of errors. ```
查看更多
mysterywolf
认证专家
2022-04-05
https://github.com/mysterywolf
你的newlib version是4.1.0的 (注意不是rtt 4.1.0) 我们现在常用的是newlib 2.4.0 没有支持到newlib4.1.0 在newlib 4.1.0里 select相关函数有变动。所以会报错。 下个版本会加上对newlib4.1.0的支持
5
个回答
默认排序
按发布时间排序
new4
2022-04-03
这家伙很懒,什么也没写!
rt-thread studio 版本: 2.2.1 在rt-thread studio运行调试正常 ``` D:\RT-ThreadStudio\workspace\VEXPRESS-A9-QEMU>D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/RealThread/QEMU/4.2.0.4\qemu-system-arm.exe -M vexpress-a9 -sd sd.bin -S -s -net nic -net tap,ifname=tap -kernel Debug/rtthread.elf -serial stdio -show-cursor WARNING: Image format was not specified for 'sd.bin' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. \ | / - RT - Thread Operating System / | \ 4.1.0 build Apr 3 2022 14:13:32 2006 - 2022 Copyright by RT-Thread team lwIP-2.0.3 initialized! [I/sal.skt] Socket Abstraction Layer initialize success. [I/SDIO] SD card capacity 65536 KB. [I/SDIO] switching card to high speed failed! [W/POSIX.delay] Please consider implementing rt_hw_us_delay() in another file. [W/POSIX.delay] Please consider implementing rt_hw_us_delay() in another file. [W/POSIX.delay] Please consider implementing rt_hw_us_delay() in another file. msh /> ```
TXH97
2022-04-03
这家伙很懒,什么也没写!
会不会是版本的问题呀
RTT_逍遥
认证专家
2022-04-03
https://github.com/supperthomas
从错误看,像LIBC相关的配置不匹配。可以用 scons --verbose 调试看看。
bernard
2022-04-04
这家伙很懒,什么也没写!
把cconfig.h删除后,重新生成看看是否OK
撰写答案
登录
注册新账号
关注者
0
被浏览
1.1k
关于作者
new4
这家伙很懒,什么也没写!
提问
2
回答
1
被采纳
0
关注TA
发私信
相关问题
1
用scons构建代码出现问题
2
求助用scons生成不了mdk工程
3
关于使用scons编译的问题
4
关于scons 编译CPP问题求教
5
scons编译出现警告信息
6
SCons生成MDK5工程出错
7
realtouch的scons问题
8
SCons的PreAction能用吗?
9
scons 编译时出错。
10
求教:关于scons构建rtt时的两个问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
开源共生 商业共赢 | RT-Thread 2024开发者大会议程正式发布!
2
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
3
RT-Thread EtherKit开源以太网硬件正式发布
4
如何在master上的BSP中添加配置yml文件
5
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
MicroPython
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
19
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
6
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
6
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部