Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
QEMU
编译失败
发布于 2019-11-03 15:58:48 浏览:3028
订阅该版
你好,我按照官方文档操作配置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
被浏览
3k
关于作者
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
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
2
RT-Thread EtherKit开源以太网硬件正式发布
3
如何在master上的BSP中添加配置yml文件
4
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
5
RT-Thread 发布 EtherKit开源以太网硬件!
热门标签
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
keil_MDK
rt_mq_消息队列_msg_queue
MicroPython
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
15
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部