页次: 1
env下编译不成功,提示如下:
RT-Thread Env Tool for Windows (V1.3.5)
\ | /
- RT - Thread Operating System
/ | \
2006 - 2022 Copyright by RT-Thread team
Administrator@PC-20200414XXFZ E:\RTT_Project\rt-thread-v4.0.1\bsp\allwinner_tina_prj_v1
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\Apps\UartCursor.o
In file included from E:\RTT_Project\rt-thread-v4.0.1\include/libc/libc_signal.h:67,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtlibc.h:21,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtdef.h:1080,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtthread.h:24,
from applications\Apps\UartCursor.c:2:
d:\programfiles\env-windows-v1.3.5\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:42:7: error: redefinition of 'union sigval'
42 | union sigval {
| ^~~~~~
In file included from E:\RTT_Project\rt-thread-v4.0.1\include/rtlibc.h:21,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtdef.h:1080,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtthread.h:24,
from applications\Apps\UartCursor.c:2:
E:\RTT_Project\rt-thread-v4.0.1\include/libc/libc_signal.h:27:7: note: originally defined here
27 | union sigval
| ^~~~~~
In file included from E:\RTT_Project\rt-thread-v4.0.1\include/libc/libc_signal.h:67,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtlibc.h:21,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtdef.h:1080,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtthread.h:24,
from applications\Apps\UartCursor.c:2:
d:\programfiles\env-windows-v1.3.5\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:47:8: error: redefinition of 'struct sigevent'
47 | struct sigevent {
| ^~~~~~~~
In file included from E:\RTT_Project\rt-thread-v4.0.1\include/rtlibc.h:21,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtdef.h:1080,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtthread.h:24,
from applications\Apps\UartCursor.c:2:
E:\RTT_Project\rt-thread-v4.0.1\include/libc/libc_signal.h:35:8: note: originally defined here
35 | struct sigevent
| ^~~~~~~~
In file included from E:\RTT_Project\rt-thread-v4.0.1\include/libc/libc_signal.h:67,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtlibc.h:21,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtdef.h:1080,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtthread.h:24,
from applications\Apps\UartCursor.c:2:
d:\programfiles\env-windows-v1.3.5\tools\gnu_gcc\arm_gcc\mingw\arm-none-eabi\include\sys\signal.h:72:3: error: conflicting types for 'siginfo_t'
72 | } siginfo_t;
| ^~~~~~~~~
In file included from E:\RTT_Project\rt-thread-v4.0.1\include/rtlibc.h:21,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtdef.h:1080,
from E:\RTT_Project\rt-thread-v4.0.1\include/rtthread.h:24,
from applications\Apps\UartCursor.c:2:
E:\RTT_Project\rt-thread-v4.0.1\include/libc/libc_signal.h:54:24: note: previous declaration of 'siginfo_t' was here
54 | typedef struct siginfo siginfo_t;
| ^~~~~~~~~
scons: *** [build\applications\Apps\UartCursor.o] Error 1
scons: building terminated because of errors.
Administrator@PC-20200414XXFZ E:\RTT_Project\rt-thread-v4.0.1\bsp\allwinner_tina_prj_v1
$
源码中的定义怎么和ENV环境中的变量冲突定义,这是怎么回事?有人知道吗?
页次: 1