Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
移植问题
stm32ide
singnal
rtt移植 stm32cubeide
发布于 2020-12-03 14:59:52 浏览:1336
订阅该版
零零散散花点时间 就是准备移植一个rtt到stm32427 上 ide用stm32cubeide 一直有问题。 还找不到资料。。。。 好了 说问题把 用的cubemx 建立的空工程把 rtt board和rtthread 丢进来 编译的 ``` 14:54:45 **** Incremental Build of configuration Debug for project Mx_V1.0 **** make -j6 all arm-none-eabi-gcc "../rt-thread/src/clock.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F427xx -DUSE_HAL_DRIVER -DDEBUG -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"D:/workspace/program/Mx/application/Mx_V1.0/board" -I"D:/workspace/program/Mx/application/Mx_V1.0" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/components/finsh" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"rt-thread/src/clock.d" -MT"rt-thread/src/clock.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "rt-thread/src/clock.o" arm-none-eabi-gcc "../rt-thread/src/components.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F427xx -DUSE_HAL_DRIVER -DDEBUG -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"D:/workspace/program/Mx/application/Mx_V1.0/board" -I"D:/workspace/program/Mx/application/Mx_V1.0" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/components/finsh" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"rt-thread/src/components.d" -MT"rt-thread/src/components.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "rt-thread/src/components.o" arm-none-eabi-gcc "../rt-thread/src/cpu.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F427xx -DUSE_HAL_DRIVER -DDEBUG -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"D:/workspace/program/Mx/application/Mx_V1.0/board" -I"D:/workspace/program/Mx/application/Mx_V1.0" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/components/finsh" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"rt-thread/src/cpu.d" -MT"rt-thread/src/cpu.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "rt-thread/src/cpu.o" arm-none-eabi-gcc "../rt-thread/src/device.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F427xx -DUSE_HAL_DRIVER -DDEBUG -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"D:/workspace/program/Mx/application/Mx_V1.0/board" -I"D:/workspace/program/Mx/application/Mx_V1.0" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/components/finsh" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"rt-thread/src/device.d" -MT"rt-thread/src/device.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "rt-thread/src/device.o" arm-none-eabi-gcc "../rt-thread/src/idle.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F427xx -DUSE_HAL_DRIVER -DDEBUG -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"D:/workspace/program/Mx/application/Mx_V1.0/board" -I"D:/workspace/program/Mx/application/Mx_V1.0" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/components/finsh" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"rt-thread/src/idle.d" -MT"rt-thread/src/idle.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "rt-thread/src/idle.o" arm-none-eabi-gcc "../rt-thread/src/ipc.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F427xx -DUSE_HAL_DRIVER -DDEBUG -c -I../Core/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -I"D:/workspace/program/Mx/application/Mx_V1.0/board" -I"D:/workspace/program/Mx/application/Mx_V1.0" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc" -I"D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/components/finsh" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"rt-thread/src/ipc.d" -MT"rt-thread/src/ipc.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "rt-thread/src/ipc.o" In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/clock.c:18: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/clock.c:18: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:28:7: note: originally defined here union sigval ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/clock.c:18: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/clock.c:18: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:36:8: note: originally defined here struct sigevent ^~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/clock.c:18: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/clock.c:18: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/cpu.c:10: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/cpu.c:10: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:28:7: note: originally defined here union sigval ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/cpu.c:10: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/cpu.c:10: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:36:8: note: originally defined here struct sigevent ^~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/cpu.c:10: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/cpu.c:10: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ make: *** [rt-thread/src/subdir.mk:66: rt-thread/src/clock.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/device.c:17: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/device.c:17: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:28:7: note: originally defined here union sigval ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/device.c:17: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/components.c:20: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/ipc.c:42: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/idle.c:20: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/device.c:17: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:36:8: note: originally defined here struct sigevent ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/components.c:20: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:28:7: note: originally defined here union sigval ^~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/ipc.c:42: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:28:7: note: originally defined here union sigval ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/device.c:17: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/idle.c:20: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:28:7: note: originally defined here union sigval ^~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/components.c:20: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/ipc.c:42: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/device.c:17: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/idle.c:20: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/components.c:20: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:36:8: note: originally defined here struct sigevent ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/ipc.c:42: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:36:8: note: originally defined here struct sigevent ^~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/idle.c:20: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:36:8: note: originally defined here struct sigevent ^~~~~~~~ make: *** [rt-thread/src/subdir.mk:70: rt-thread/src/cpu.o] Error 1 In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/ipc.c:42: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/components.c:20: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from ../rt-thread/src/ipc.c:42: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ In file included from c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\signal.h:6:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:72, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/idle.c:20: c:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/components.c:20: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ In file included from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtlibc.h:21:0, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtdef.h:1103, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rtthread.h:24, from D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/rthw.h:20, from ../rt-thread/src/idle.c:20: D:/workspace/program/Mx/application/Mx_V1.0/rt-thread/include/libc/libc_signal.h:55:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ make: *** [rt-thread/src/subdir.mk:72: rt-thread/src/device.o] Error 1 make: *** [rt-thread/src/subdir.mk:74: rt-thread/src/idle.o] Error 1 make: *** [rt-thread/src/subdir.mk:68: rt-thread/src/components.o] Error 1 make: *** [rt-thread/src/subdir.mk:76: rt-thread/src/ipc.o] Error 1 "make -j6 all" terminated with exit code 2. Build might be incomplete. ``` 求助求助
查看更多
张世争
2020-12-03
学以致用
报的重定义错误。尝试ENV menuconfig ,把 signal 屏蔽掉。 ![2020-12-03_165333.png](/uploads/20201203/db5725b12471f29c7b50e9101d6dd90c.png)
3
个回答
默认排序
按发布时间排序
andychen
2020-12-04
这家伙很懒,什么也没写!
https://blog.csdn.net/hewangxing/article/details/105768207 参看下这个帖子
keyq
2021-03-19
这家伙很懒,什么也没写!
已经放弃移植了
撰写答案
登录
注册新账号
关注者
0
被浏览
1.3k
关于作者
keyq
这家伙很懒,什么也没写!
提问
23
回答
9
被采纳
0
关注TA
发私信
相关问题
1
RT-Thread 在ARM926 EJSA 内核的移植
2
裸机工程移植 RT-Thread
3
Keil MDK 移植 RT-Thread Nano
4
移植 Nano,rt_thread_mdelay()延迟时间不对
5
裸机工程移植 RT-Thread内核
6
跳转不进去main函数
7
我从KEIL 移植过来的 time外部中断定时器是失败的
8
Ambiq Apollo3 移植链接脚本问题
9
可以把 RT-Thread Studio 创建的项目移植到 Keil上面吗?
10
RT_USING_COMPONENTS_INIT 这部分相关的有没有更详细的介绍
推荐文章
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
freemodbus主机在freertos的适配,参考rtthread例程
2
开源共生 商业共赢 | RT-Thread 2024开发者大会议程正式发布!
3
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
4
RT-Thread EtherKit开源以太网硬件正式发布
5
还在担心bsp不好维护吗?快使用yml管理主线bsp
热门标签
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
次被采纳
张世争
12
个答案
3
次被采纳
踩姑娘的小蘑菇
7
个答案
3
次被采纳
用户名由3_15位
13
个答案
2
次被采纳
rv666
9
个答案
2
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
8
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部