Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
编译出错
5
编译出错,请大神指教
发布于 2022-05-02 12:03:22 浏览:441
订阅该版
使用的官方IDE,编译出错,请大神指教 ``` 11:57:17 **** 构建 of configuration Debug for project sensor_01 **** make -j4 all arm-none-eabi-gcc "../rt-thread/src/clock.c" arm-none-eabi-gcc "../rt-thread/src/components.c" arm-none-eabi-gcc "../rt-thread/src/device.c" arm-none-eabi-gcc "../rt-thread/src/idle.c" In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/clock.c:19: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' 42 | union sigval { | ^~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/clock.c:19: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:28:7: note: originally defined here 28 | union sigval | ^~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/clock.c:19: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' 47 | struct sigevent { | ^~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/clock.c:19: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:36:8: note: originally defined here 36 | struct sigevent | ^~~~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/clock.c:19: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' 72 | } siginfo_t; | ^~~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/clock.c:19: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here 55 | typedef struct siginfo siginfo_t; | ^~~~~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/components.c:20: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' 42 | union sigval { | ^~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/components.c:20: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:28:7: note: originally defined here 28 | union sigval | ^~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/components.c:20: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' 47 | struct sigevent { | ^~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/components.c:20: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:36:8: note: originally defined here 36 | struct sigevent | ^~~~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/components.c:20: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' 72 | } siginfo_t; | ^~~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/components.c:20: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here 55 | typedef struct siginfo siginfo_t; | ^~~~~~~~~ make: *** [rt-thread/src/subdir.mk:57: rt-thread/src/clock.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [rt-thread/src/subdir.mk:57: rt-thread/src/components.o] Error 1 In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from ../rt-thread/src/device.c:17: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' 42 | union sigval { | ^~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from ../rt-thread/src/device.c:17: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:28:7: note: originally defined here 28 | union sigval | ^~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from ../rt-thread/src/device.c:17: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' 47 | struct sigevent { | ^~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from ../rt-thread/src/device.c:17: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:36:8: note: originally defined here 36 | struct sigevent | ^~~~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from ../rt-thread/src/device.c:17: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' 72 | } siginfo_t; | ^~~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from ../rt-thread/src/device.c:17: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here 55 | typedef struct siginfo siginfo_t; | ^~~~~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/idle.c:20: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' 42 | union sigval { | ^~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/idle.c:20: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:28:7: note: originally defined here 28 | union sigval | ^~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/idle.c:20: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' 47 | struct sigevent { | ^~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/idle.c:20: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:36:8: note: originally defined here 36 | struct sigevent | ^~~~~~~~ In file included from d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\signal.h:6, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:72, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/idle.c:20: d:\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\10.2.1\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' 72 | } siginfo_t; | ^~~~~~~~~ In file included from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtlibc.h:21, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtdef.h:1103, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rtthread.h:24, from C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/rthw.h:20, from ../rt-thread/src/idle.c:20: C:\Users\Administrator\Desktop\sensor_02\rt-thread\include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here 55 | typedef struct siginfo siginfo_t; | ^~~~~~~~~ make: *** [rt-thread/src/subdir.mk:57: rt-thread/src/device.o] Error 1 make: *** [rt-thread/src/subdir.mk:57: rt-thread/src/idle.o] Error 1 "make -j4 all" terminated with exit code 2. Build might be incomplete. 11:57:22 Build Failed. 17 errors, 0 warnings. (took 4s.504ms) ```
查看更多
1
个回答
默认排序
按发布时间排序
出出啊
2022-05-02
恃人不如自恃,人之为己者不如己之自为也
rtt带的libc头文件和编译器带的重复了,想办法去掉其中一个
撰写答案
登录
注册新账号
关注者
0
被浏览
441
关于作者
paul096
日拱一卒 功不唐捐
提问
11
回答
6
被采纳
0
关注TA
发私信
相关问题
1
RT-Thread Studio 编译出错
2
这是个什么情况?,更改新建文件夹名字后,编译出错
3
使用rtthread编译出现错误
4
mdk5移植rtthread
5
sx12xx的lora组件包编译时出错
6
RT-thread移植到riscv上面编译时出错
7
基于rtthread下的Renesas RA4M2 BSP生成rtthread studio 开发板支持包后,建立新工程编译出错
推荐文章
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
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
a1012112796
20
个答案
3
次被采纳
张世争
11
个答案
3
次被采纳
踩姑娘的小蘑菇
7
个答案
3
次被采纳
rv666
9
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
6
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部