Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
QEMU
debian10编译qemu-vexpress-a9失败
发布于 2019-08-14 19:16:30 浏览:1933
订阅该版
* 本帖最后由 921742079 于 2019-8-14 19:18 编辑 * 参考的[这里](https://www.rt-thread.org/document/site/application-note/setup/qemu/ubuntu/an0005-qemu-ubuntu/) 环境 ```$ uname -a Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux $ cat /etc/debian_version 10.0``` 流程 ```git clone https://github.com/RT-Thread/rt-thread.git sudo apt install scons 下载gcc编译器,使用下面这里的 https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/8-2019q3/RC1.1/gcc-arm-none-eabi-8-2019-q3-update-linux.tar.bz2 rt-thread/bsp/qemu-vexpress-a9/rtconfig.py 修改gcc的路径 EXEC_PATH = '/home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/bin/' cd rt-thread/bsp/qemu-vexpress-a9/ scons -c; scons --menuconfig; scons``` 错误信息,帖子限制了长度,具体在[这里](https://github.com/RT-Thread/rt-thread/issues/2950) ```In file included from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/types.h:223, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:12, from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/_pthreadtypes.h:190:20: note: previous declaration of 'pthread_key_t' was here typedef __uint32_t pthread_key_t; /* thread-specific data keys */ ^~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:19: /home/mmc/dev/embedded/rtt/rt-thread/components/libc/pthreads/pthread.h:42:13: error: conflicting types for 'pthread_once_t' typedef int pthread_once_t; ^~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/types.h:223, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:12, from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/_pthreadtypes.h:195:3: note: previous declaration of 'pthread_once_t' was here } pthread_once_t; /* dynamic package initialization */ ^~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:19: /home/mmc/dev/embedded/rtt/rt-thread/components/libc/pthreads/pthread.h:79:8: error: redefinition of 'struct sched_param' struct sched_param ^~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/_pthreadtypes.h:23, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/types.h:223, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:12, from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/sched.h:48:8: note: originally defined here struct sched_param { ^~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:19: /home/mmc/dev/embedded/rtt/rt-thread/components/libc/pthreads/pthread.h:95:29: error: conflicting types for 'pthread_attr_t' typedef struct pthread_attr pthread_attr_t; ^~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/types.h:223, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:12, from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/_pthreadtypes.h:75:3: note: previous declaration of 'pthread_attr_t' was here } pthread_attr_t; ^~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:19: /home/mmc/dev/embedded/rtt/rt-thread/components/libc/pthreads/pthread.h:102:30: error: conflicting types for 'pthread_mutex_t' typedef struct pthread_mutex pthread_mutex_t; ^~~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/types.h:223, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:12, from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/_pthreadtypes.h:154:20: note: previous declaration of 'pthread_mutex_t' was here typedef __uint32_t pthread_mutex_t; /* identify a mutex */ ^~~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:19: /home/mmc/dev/embedded/rtt/rt-thread/components/libc/pthreads/pthread.h:109:29: error: conflicting types for 'pthread_cond_t' typedef struct pthread_cond pthread_cond_t; ^~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/types.h:223, from /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:12, from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/_pthreadtypes.h:176:20: note: previous declaration of 'pthread_cond_t' was here typedef __uint32_t pthread_cond_t; /* identify a condition variable */ ^~~~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:19: /home/mmc/dev/embedded/rtt/rt-thread/components/libc/pthreads/pthread.h:191:5: error: conflicting types for 'pthread_kill' int pthread_kill(pthread_t thread, int sig); ^~~~~~~~~~~~ In file included from /home/mmc/dev/embedded/rtt/rt-thread/include/libc/libc_signal.h:67, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtdef.h:466, from /home/mmc/dev/embedded/rtt/rt-thread/include/rtthread.h:24, from /home/mmc/dev/embedded/rtt/rt-thread/components/libc/compilers/newlib/libc.c:10: /home/mmc/dev/embedded/rtt/gcc-arm-none-eabi-8-2019-q3-update/arm-none-eabi/include/sys/signal.h:226:5: note: previous declaration of 'pthread_kill' was here int pthread_kill (pthread_t, int); ^~~~~~~~~~~~ scons: *** [build/kernel/components/libc/compilers/newlib/libc.o] Error 1```
查看更多
6
个回答
默认排序
按发布时间排序
flyboy
2019-08-14
Do my self();
gcc7及以上的版本好像不支持pthread了,楼主,可以换一个低版本的gcc,或者把pthread关闭。
wuhanstudio
2019-08-14
这家伙很懒,什么也没写!
看报错是 pthread_once_t 重定义了,先 scons -c 试试,我之后也试试看看会不会报错
921742079
2019-08-14
这家伙很懒,什么也没写!
>看报错是 pthread_once_t 重定义了,先 scons -c 试试,我之后也试试看看会不会报错 ... --- 这个一样的
wuhanstudio
2019-08-14
这家伙很懒,什么也没写!
>这个一样的 --- 我当然是指用不同版本的 gcc 试试了 =_= 不然不就只是问题重现
921742079
2019-08-14
这家伙很懒,什么也没写!
>gcc7及以上的版本好像不支持pthread了,楼主,可以换一个低版本的gcc,或者把pthread关闭。 ... --- 谢谢,我试试
921742079
2019-08-14
这家伙很懒,什么也没写!
换了个老的编译器,好了,感谢各位
撰写答案
登录
注册新账号
关注者
0
被浏览
1.9k
关于作者
921742079
这家伙很懒,什么也没写!
提问
42
回答
145
被采纳
3
关注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
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
6
五分钟玩转RT-Thread新社区
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
STM32内存扩展,SRAM-RMC
2
基于RT-Thread的STM32F4开发第八讲——SPI(普通、DMA、SFUD)
3
artpi2的drv-eth修改使用eth与设备驱动学习笔记
4
【面向零基础】基于星火1号开发板从头学习基于RT-Thread的嵌入式开发 第一讲
5
新版OneNet的星火1号开发板例程适配(下)
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
Bootloader
AT
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
I2C_IIC
cubemx
UART
ota在线升级
ESP8266
WIZnet_W5500
BSP
PWM
packages_软件包
flash
freemodbus
潘多拉开发板_Pandora
GD32
ADC
定时器
编译报错
flashDB
keil_MDK
socket
rt_mq_消息队列_msg_queue
ulog
中断
Debug
SFUD
msh
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
4
次被采纳
xiaorui
4
个答案
1
次被采纳
tjrong
2
个答案
1
次被采纳
yans
2
个答案
1
次被采纳
alight
2
个答案
1
次被采纳
本月文章贡献
Pai同学
9
篇文章
12
次点赞
Rick98
3
篇文章
12
次点赞
RTT_逍遥
2
篇文章
11
次点赞
WenShan
2
篇文章
1
次点赞
加缪
1
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部