Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
QEMU
debian10编译qemu-vexpress-a9失败
发布于 2019-08-14 19:16:30 浏览:1912
订阅该版
* 本帖最后由 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
五分钟玩转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
RT-thred的stm32h723对应bsp包CubeMX添加其他外设报错
2
RT-Thread中的time溢出问题,时间戳溢出,解决方法
3
ART-PI使用env驱动ETH网卡,pc和板子可以ping通
4
SystemView线程名字不显示
5
只用网页也能跑RT-Smart 无门槛腾讯Cloud studio + smart-build快速构建
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
I2C_IIC
ESP8266
UART
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
8
个答案
2
次被采纳
三世执戟
7
个答案
1
次被采纳
KunYi
6
个答案
1
次被采纳
winfeng
2
个答案
1
次被采纳
chenyaxing
2
个答案
1
次被采纳
本月文章贡献
catcatbing
2
篇文章
5
次点赞
swet123
1
篇文章
3
次点赞
YZRD
1
篇文章
2
次点赞
Days
1
篇文章
2
次点赞
阳光的掌控者
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部