完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
使用env编译qemu-vexpress-a9报错。rtt
版本4.0.3,使用rt-thread studio里面的bsp。 欢迎使用RT-Thread env (V1.3.0)工具 | / - RT - 线程操作系统 / | ://www.rt-thread.org/document/site user user@DESKTOP-T4713QD D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.3bspqemu-vexpress-a9 $ scons scons: 读取 SConscript 文件 ... scons: 完成读取 SConscript 文件。 scons:构建目标 ... scons:构建关联的 VariantDir 目标:构建 CC buildkernelcomponentsdfssrcselect.o D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.3componentsdfssrcselect.c:在函数“fdszero”中: D:RT-ThreadStudiorepoExtract RT-Thread_Source_CodeRT-Thread4.0.3componentsdfssrcselect.c:21:5:错误:未知类型名称“fd_mask” 21 | fd_mask *m; | ^~~~~~~ D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.3componentsdfssrcselect.c:28:10: error: 'fd_mask' undeclared (在此函数中首次使用);您指的是 'umask' 吗? 28 | m = (fd_mask *)set; | ^~~~~~~ | 掩码 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.3componentsdfssrcselect.c:28:10:注意:每个未声明的标识符只为每个函数报告一次出现在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.3componentsdfssrcselect.c:28:19: error: ')' token 28 之前的预期表达式 | m = (fd_mask *)set; | ^ scons: *** [buildkernelcomponentsdfssrcselect.o] 错误 1 scons:构建因错误而终止。 rtt 版本 4.0.2 @DESKTOP-T4713QD D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2bspqemu-vexpress-a9 $ scons scons: 读取 SConscript 文件 ... scons : 读完 SConscript 文件。 scons:构建目标 ... scons:构建关联的 VariantDir 目标:构建 CC buildkernelcomponentslibccompilersnewliblibc.o 在 d:rt-threadstudioplatformenv_releasedenvtools 包含的文件中gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:23, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabi includesystypes.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d :rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2componentslibcpthreads/sched.h:19:5:错误:数字常量 19 之前的预期标识符 | SCHED_OTHER = 0, | ^~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:19 中包含的文件中: D:RT-ThreadStudiorepo ExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:29:警告:“PTHREAD_CREATE_JOINABLE”重新定义 29 | #define PTHREAD_CREATE_JOINABLE 0x00 | 在来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes.h:223 的文件中, 来自 d:rt-threadstudioplatform env_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingw arm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtools gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:47:注意:这是前面定义的位置 47 | #define PTHREAD_CREATE_JOINABLE 1 | 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:19 中包含的文件中: D:RT-ThreadStudiorepo ExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:30:警告:“PTHREAD_CREATE_DETACHED”重新定义 30 | #define PTHREAD_CREATE_DETACHED 0x01 | 在来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes.h:223 的文件中, 来自 d:rt-threadstudioplatform env_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingw arm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtools gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:46:注意:这里是前面定义的 46 | #define PTHREAD_CREATE_DETACHED 0 | 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:19 中包含的文件中: D:RT-ThreadStudiorepo ExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:32:警告:“PTHREAD_EXPLICIT_SCHED”重新定义 32 | #define PTHREAD_EXPLICIT_SCHED 0 | 在来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes.h:223 的文件中, 来自 d:rt-threadstudioplatform env_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingw arm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtools gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:43:注意:这里是前面定义的 43 | #define PTHREAD_EXPLICIT_SCHED 2 /* 从提供的属性对象中设置 */ | 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:19 中包含的文件中: D:RT-ThreadStudiorepo ExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:35:14: 错误:'pthread_t' 35 的类型冲突 | typedef long pthread_t; | ^~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes.h:223 包含的文件中, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_released环境工具gnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtools gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:32:20:注意:'pthread_t' 的先前声明在这里 32 | typedef __uint32_t pthread_t; /* 识别线程 */ | ^~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:19 中包含的文件中: D:RT-ThreadStudiorepo ExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:36:14:错误:'pthread_condattr_t' 36 的类型冲突 | typedef long pthread_condattr_t; | ^~~~~~~~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiinclude 包含的文件中systypes.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d: rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtools gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:186:3: 注意:'pthread_condattr_t' 的先前声明在这里 186 | } pthread_condattr_t; /* 条件属性对象 */ | ^~~~~~~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:19 中包含的文件中: D:RT-ThreadStudiorepo提取RT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:38:14:错误:“pthread_mutexattr_t”的类型冲突 38 | typedef long pthread_mutexattr_t; | ^~~~~~~~~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabi 中包含的文件中includesystypes.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT- Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtdef.h: 466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:169:3:注意:'pthread_mutexattr_t'的先前声明在这里 169 | } pthread_mutexattr_t; | ^~~~~~~~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibc 包含的文件中编译器newliblibc.c:19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:41:13:错误:冲突'pthread_key_t' 的类型 41 | typedef int pthread_key_t; | ^~~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes 包含的文件中。小时:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_released envtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/ libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepo ExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibc编译器newliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:190:20:注意:'pthread_key_t' 的先前声明在这里 190 | typedef __uint32_t pthread_key_t; /* 线程特定的数据键 */ | ^~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc 中包含的文件中。 c:19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:42:13:错误:'pthread_once_t' 42的类型冲突| typedef int pthread_once_t; | ^~~~~~~~~~~~~~ 在来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes.h:223 的文件中, 来自 d:rt-threadstudioplatform env_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingw arm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread 4.0.2include/rtthread.h:24, 从 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenv toolsgnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:195:3: 注意:'pthread_once_t' 的先前声明在这里 195 | } pthread_once_t; /* 动态包初始化 */ | ^~~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc 的文件中.c:19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:79:8: 错误:重新定义 'struct sched_param' 79 | 结构 sched_param | ^~~~~~~~~~~ 在来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:23 的文件中, 来自 d:rt-threadstudioplatform env_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingw arm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h :6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT -Thread_Source_CodeRT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-线程4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys sched.h:48:8: 注意:最初在这里定义 48 | 结构 sched_param { | ^~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c 中包含的文件中: 19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:95:29: 错误:'pthread_attr_t' 的类型冲突 95 | typedef struct pthread_attr pthread_attr_t; | ^~~~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes 包含的文件中.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudio platformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0 .2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-线程4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys _pthreadtypes.h:75:3: 注意:'pthread_attr_t' 的先前声明在这里是 75 | } pthread_attr_t; | ^~~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc 的文件中.c:19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:102:30:错误:“pthread_mutex_t”的类型冲突 102 | typedef struct pthread_mutex pthread_mutex_t; | ^~~~~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys 包含的文件中types.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt- threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread 4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-线程4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesys _pthreadtypes.h:154:20:注意:“pthread_mutex_t”的先前声明在这里 154 | typedef __uint32_t pthread_mutex_t; /* 识别互斥体 */ | ^~~~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewlib 包含的文件中libc.c:19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:109:29:错误:'pthread_cond_t' 109 的类型冲突 | typedef struct pthread_cond pthread_cond_t; | ^~~~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesystypes 包含的文件中.h:223, 来自 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:12, 来自 d:rt-threadstudio platformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_Code RT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtthread.h:24, 来自 D :RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c:10: d:rt-threadstudioplatformenv_releasedenvtools gnu_gccarm_gccmingwarm-none-eabiincludesys_pthreadtypes.h:176:20: 注意:'pthread_cond_t' 的先前声明在这里 176 | typedef __uint32_t pthread_cond_t; /* 识别条件变量 */ | ^~~~~~~~~~~~~~ 在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc 的文件中.c:19: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibcpthreads/pthread.h:191:5:错误:“pthread_kill”的类型冲突 191 | int pthread_kill(pthread_t 线程,int sig); | ^~~~~~~~~~~~ 在 d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesignal.h:6 包含的文件中, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/libc/libc_signal.h:71, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2include/rtdef.h:466, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT- Thread4.0.2include/rtthread.h:24, 来自 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.0.2componentslibccompilersnewliblibc.c: 10: d:rt-threadstudioplatformenv_releasedenvtoolsgnu_gccarm_gccmingwarm-none-eabiincludesyssignal.h:226:5: 注意:'pthread_kill' 的先前声明是在这里 226 | int pthread_kill (pthread_t, int); | ^~~~~~~~~~~~ scons: *** [buildkernelcomponentslibccompilersnewliblibc.o] 错误 1 scons: 构建因错误而终止。 使用rt-thread studio新建器并项目编译qemu-vexpress-a9可以正常编译和使用调试。 rt-thread studio是4.1.0,通过RT-thread SDK管理下载4.1.0,测试,同样编译@DESKTOP- T4713QD D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.1.0bspqemu-vexpress-a9 $ scons scons: 读取 SConscript 文件 ... Newlib 版本: 4.1.0 scons:读完 SConscript 文件。 scons:构建目标 ... scons:构建关联的 VariantDir 目标:构建 CC buildapplicationslcd_init.o CC buildapplicationsmain.o CC buildapplicationsmnt.o CC builddriversboard.o CC build driversdrv_keyboard.o CC builddriversdrv_mouse.o CC builddriversdrv_sdio.o CC builddriversdrv_smc911x.o CC builddriversdrv_timer.o CC builddriverssecondary_cpu.o CC builddriversserial.o CC buildkernelcomponentsdfsfilesystemsdevfsdevfs.o CC buildkernelcomponentsdfsfilesystems elmfatdfs_elm.o CC buildkernelcomponentsdfsfilesystemselmfatff.o CC buildkernelcomponentsdfsfilesystemselmfatffunicode.o CC buildkernelcomponentsdfsfilesystemsramfs dfs_ramfs.o CC buildkernelcomponentsdfsfilesystemsromfsdfs_romfs.o CC buildkernelcomponentsdfsfilesystemsromfsromfs.o CC buildkernelcomponentsdfssrcdfs.o CC buildkernelcomponentsdfssrcdfs_file.o CC buildkernelcomponentsdfssrcdfs_fs.o CC buildkernelcomponentsdfssrcdfs_posix.o CC buildkernelcomponentsdriversi2ci2c-bit-ops.o CC buildkernelcomponentsdriversi2ci2c_core.o CC buildkernelcomponentsdriversi2ci2c_dev.o CC buildkernel componentsdriversipccompletion.o CC buildkernelcomponentsdriversipcdataqueue.o CC buildkernelcomponentsdriversipcpipe.o CC buildkernelcomponentsdriversipcringblk_buf .o CC buildkernelcomponentsdriversipcringbuffer.o CC buildkernelcomponentsdriversipcwaitqueue.o CC buildkernelcomponentsdriversipcworkqueue.o CC build kernelcomponents driversmiscpin.o CC buildkernelcomponentsdriversmtdmtd_nand.o CC buildkernelcomponentsdriversmtdmtd_nor.o CC buildkernelcomponentsdriversrtcrtc.o CC buildkernelcomponentsdriversrtcsoft_rtc.o CC buildkernelcomponentsdriverssdioblock_dev.o CC buildkernelcomponentsdrivers sdiommc.o CC buildkernelcomponentsdriverssdiommcsd_core.o CC buildkernelcomponentsdriverssdiosd.o CC buildkernelcomponentsdriverssdiosdio.o CC build kernelcomponentsdriversserialserial.o CC buildkernelcomponentsdriversspisfudsrcsfud.o CC buildkernelcomponentsdriversspisfudsrcsfud_sfdp.o CC build kernelcomponentsdriversspispi_core.o CC buildkernelcomponentsdriversspispi_dev.o CC buildkernelcomponentsdriversspispi_flash_sfud.o CC buildkernelcomponentsdriversspispi_msd.o CC buildkernelcomponentsdriverswatchdogwatchdog.o CC buildkernelcomponentsfinshcmd.o CC buildkernelcomponentsfinshmsh .o CC buildkernelcomponentsfinshmsh_file.o CC buildkernelcomponentsfinshshell.o CC buildkernelcomponentslibccompilerscommonstdlib.o CC buildkernelcomponentslibc compilerscommontime.o CC buildkernelcomponentslibccompilersnewlibsyscalls.o CXX buildkernelcomponentslibccpluspluscxx_crt.o CC buildkernelcomponentslibccpluspluscxx_crt_init .o CXX buildkernelcomponentslibccpluspluscxx_Mutex.o CXX buildkernelcomponentslibccpluspluscxx_Semaphore.o CXX buildkernelcomponentslibccpluspluscxx_Thread.o CC buildkernelcomponentslibcposixdelaydelay.o CC buildkernelcomponentslibcposixioaioaio.o CC build kernelcomponentslibcposixiopollpoll.o CC buildkernelcomponentslibcposixiopollselect.o D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT -Thread4.1.0componentslibcposixiopollselect.c:在函数“fdszero”中: D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.1.0 componentslibcposixiopollselect.c:17:5: 错误:未知类型名称 'fd_mask' 17 | fd_mask *m; | ^~~~~~~ D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.1.0componentslibcposixiopollselect.c:24:10: error: 'fd_mask' undeclared (first use在这个函数中) 24 | m = (fd_mask *)set; | ^~~~~~~ D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.1.0componentslibcposixiopollselect.c:24:10:注意:对于出现在 D:RT-ThreadStudiorepoExtractRT-Thread_Source_CodeRT-Thread4.1.0componentslibcposixiopollselect.c中的每个函数,每个未声明的标识符仅报告一次: 24:19:错误:')' 标记 24 之前的预期表达式 | m = (fd_mask *)set; | ^ scons: *** [buildkernelcomponentslibcposixiopollselect.o] 错误 1 scons:建筑因错误而终止。 |
|
相关推荐
4个回答
|
|
|
|
|
|
从错误看,像 LIBC 相关的配置不匹配。可以用 scons --verbose 看看调试。
|
|
|
|
把cconfig.h删除后,重新生成看看是否OK
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
772 浏览 0 评论
3946 浏览 0 评论
如何使用python调起UDE STK5.2进行下载自动化下载呢?
2493 浏览 0 评论
开启全新AI时代 智能嵌入式系统快速发展——“第六届国产嵌入式操作系统技术与产业发展论坛”圆满结束
2911 浏览 0 评论
获奖公布!2024 RT-Thread全球巡回线下培训火热来袭!报名提问有奖!
31260 浏览 11 评论
72843 浏览 21 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-20 21:37 , Processed in 0.599552 second(s), Total 81, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号