Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
QEMU
编译失败
发布于 2019-11-03 15:58:48 浏览:3118
订阅该版
你好,我按照官方文档操作配置ununtu下的环境: [https://www.rt-thread.org/document/site/application-note/setup/qemu/ubuntu/an0005-qemu-ubuntu/](https://www.rt-thread.org/document/site/application-note/setup/qemu/ubuntu/an0005-qemu-ubuntu/) 最后出现如下错误,帮忙看一下是什么原因引起的,谢谢
查看更多
9
个回答
默认排序
按发布时间排序
Jason_jie
2019-11-03
这家伙很懒,什么也没写!
jason@jason-XPS-15-9550:~/code/rtos/rt-thread/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/applications/lcd_init.o In file included from /home/jason/code/rtos/rt-thread/components/net/sal_socket/include/dfs_net/sys_select/sys/select.h:14:0, from /home/jason/Downloads/sofware/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/sys/types.h:68, from /home/jason/Downloads/sofware/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/sys/signal.h:12, from /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:67, from /home/jason/code/rtos/rt-thread/include/rtdef.h:466, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/code/rtos/rt-thread/components/dfs/include/dfs_select.h:19:22: error: unknown type name 'fd_set' int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); ^~~~~~ /home/jason/code/rtos/rt-thread/components/dfs/include/dfs_select.h:19:39: error: unknown type name 'fd_set' int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); ^~~~~~ /home/jason/code/rtos/rt-thread/components/dfs/include/dfs_select.h:19:57: error: unknown type name 'fd_set' int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); ^~~~~~ In file included from /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:67:0, from /home/jason/code/rtos/rt-thread/include/rtdef.h:466, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/Downloads/sofware/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/sys/signal.h:42:7: error: redefinition of 'union sigval' union sigval { ^~~~~~ In file included from /home/jason/code/rtos/rt-thread/include/rtdef.h:466:0, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:27:7: note: originally defined here union sigval ^~~~~~ In file included from /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:67:0, from /home/jason/code/rtos/rt-thread/include/rtdef.h:466, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/Downloads/sofware/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/sys/signal.h:47:8: error: redefinition of 'struct sigevent' struct sigevent { ^~~~~~~~ In file included from /home/jason/code/rtos/rt-thread/include/rtdef.h:466:0, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:35:8: note: originally defined here struct sigevent ^~~~~~~~ In file included from /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:67:0, from /home/jason/code/rtos/rt-thread/include/rtdef.h:466, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/Downloads/sofware/gcc-arm-none-eabi-7-2017-q4-major/arm-none-eabi/include/sys/signal.h:72:3: error: conflicting types for 'siginfo_t' } siginfo_t; ^~~~~~~~~ In file included from /home/jason/code/rtos/rt-thread/include/rtdef.h:466:0, from /home/jason/code/rtos/rt-thread/include/rtthread.h:24, from applications/lcd_init.c:1: /home/jason/code/rtos/rt-thread/include/libc/libc_signal.h:54:24: note: previous declaration of 'siginfo_t' was here typedef struct siginfo siginfo_t; ^~~~~~~~~ scons: *** [build/applications/lcd_init.o] Error 1 scons: building terminated because of errors.
我夏了夏天
认证专家
2019-11-03
Life isn't about finding yourself, life is about creating yourself.
是最新版本吗?
bernard
2019-11-03
这家伙很懒,什么也没写!
scons -c 然后再编译试试。或者GCC版本换下,用低些的版本,< GCC 6
还没想好
2019-11-04
这家伙很懒,什么也没写!
楼主解决了吗?
进击的错觉
2019-11-04
这家伙很懒,什么也没写!
>jason@jason-XPS-15-9550:~/code/rtos/rt-thread/bsp/qemu-vexpress-a9$ scons >scons: Reading SConscript ... --- 试一下 在rtconfig.h中加人 #define HAVE_SYS_SELECT_H 重新编译,应该就能编译过了
Jason_jie
2019-11-04
这家伙很懒,什么也没写!
>是最新版本吗? --- 是的,现在好啦:)
Jason_jie
2019-11-04
这家伙很懒,什么也没写!
>scons -c > >然后再编译试试。或者GCC版本换下,用低些的版本,< GCC 6 --- 非常感谢,现在修好啦
Jason_jie
2019-11-04
这家伙很懒,什么也没写!
>楼主解决了吗? --- 解决啦:handshake
lovefighting
2021-01-18
这家伙很懒,什么也没写!
楼主怎么解决的?能分享下马?
撰写答案
登录
注册新账号
关注者
0
被浏览
3.1k
关于作者
Jason_jie
这家伙很懒,什么也没写!
提问
1
回答
4
被采纳
0
关注TA
发私信
相关问题
1
Linux下的Qemu mini2440虚拟机(32位和64位)
2
有qemu Linux的rt-thread开发环境建立吗?
3
qemu+mini2440+bootloader问题
4
QEMU gdbstub 在Win7下的bug
5
请教如何在windows下使用qemu测试rrt0.31中的例子
6
QEMU运行os问题
7
QEMU-mini2440 模拟环境上运行RT-thread这篇
8
在Ubuntu上执行qemu的configure命令checkzlib失败
9
求大舅:telnet-连接QEMU时,QEMU segmentation fault 结束
10
RealTouch打算出QEMU模拟器吗
推荐文章
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
Wireshark抓包EtherCAT报文
2
RISC-V hardfault分析工具,RTTHREAD-RVBACKTRACE 原理讲解
3
基于RT-Thread的STM32G4开发第二讲第二篇——ADC
4
基于RT-Thread的STM32F4开发第二讲第一篇——ADC
5
RT-Thread studio的驱动5.1.0报错修改
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
I2C_IIC
cubemx
UART
ESP8266
WIZnet_W5500
BSP
ota在线升级
PWM
flash
packages_软件包
freemodbus
潘多拉开发板_Pandora
ADC
GD32
定时器
编译报错
flashDB
keil_MDK
socket
中断
rt_mq_消息队列_msg_queue
Debug
ulog
SFUD
msh
C++_cpp
at_device
本月问答贡献
出出啊
1524
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
818
个答案
179
次被采纳
crystal266
555
个答案
162
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
1
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
2
次点赞
crystal266
2
篇文章
1
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部