Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
QEMU
debian10编译qemu-vexpress-a9失败
发布于 2019-08-14 19:16:30 浏览:1737
订阅该版
* 本帖最后由 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.7k
关于作者
921742079
这家伙很懒,什么也没写!
提问
42
回答
144
被采纳
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
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
五分钟玩转RT-Thread新社区
5
国产MCU移植系列教程汇总,欢迎查看!
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
FRDM-MCXN947 & RT-Thread的CAN实践——控制GM6020云台电机
2
[Vision Board创客营]WDT实践之配置、issue、PR一条龙
3
恩智浦FRDM-MCXN947上的RW007联网实践
4
[Vision Board创客营]学习片上Flash移植FAL
5
MCXN947测评系列(二)串口设备测评
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
CAN总线
Hardfault
FinSH
USB
文件系统
DMA
RT-Thread
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
flash
cubemx
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
ADC
BSP
中断
keil_MDK
编译报错
socket
MicroPython
GD32
msh
Debug
ulog
SDIO总线
SFUD
rt_mq_消息队列_msg_queue
C++_cpp
本月问答贡献
xiaorui
6
个答案
3
次被采纳
sakumisu
4
个答案
3
次被采纳
三世执戟
31
个答案
1
次被采纳
梦笑真美
17
个答案
1
次被采纳
踩姑娘的小蘑菇
14
个答案
1
次被采纳
本月文章贡献
Z_Y
2
篇文章
5
次点赞
Alipay
2
篇文章
2
次点赞
2345vor
2
篇文章
1
次点赞
比特饼干
1
篇文章
6
次点赞
Lu_盼盼
1
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部