NDK-r25交叉编译qemu-7.0.0 第651步报错
1.报错内容如下:
[651/2712] Compiling C object libqemuutil.a.p/util_vhost-user-server.c.o
FAILED: libqemuutil.a.p/util_vhost-user-server.c.o
aarch64-linux-android33-clang -Ilibqemuutil.a.p -I. -I.. -Isubprojects/libvhost-user -I../subprojects/libvhost-user -Iqapi -Itrace -Iui -Iui/shader -I/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/glib-2.0 -I/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/glib-2.0/include -I/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/gio-unix-2.0 -I/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/pixman-1 -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -isystem /home/dubu/myinstall/qemu-7.0.0/linux-headers -isystem linux-headers -iquote . -iquote /home/dubu/myinstall/qemu-7.0.0 -iquote /home/dubu/myinstall/qemu-7.0.0/include -iquote /home/dubu/myinstall/qemu-7.0.0/disas/libvixl -iquote /home/dubu/myinstall/qemu-7.0.0/tcg/aarch64 -pthread -Wno-unused-function -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-redefinition -Wno-tautological-type-limit-compare -Wno-psabi -fstack-protector-strong -fPIE -Wno-unused-function -MD -MQ libqemuutil.a.p/util_vhost-user-server.c.o -MF libqemuutil.a.p/util_vhost-user-server.c.o.d -o libqemuutil.a.p/util_vhost-user-server.c.o -c ../util/vhost-user-server.c
In file included from ../util/vhost-user-server.c:10:
In file included from /home/dubu/myinstall/qemu-7.0.0/include/qemu/osdep.h:82:
In file included from /home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h:32:
In file included from /home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h:36:
In file included from /home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h:373:
/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h:174:47: warning: this function declaration is not a prototype [-Wstrict-prototypes]
int android_get_application_target_sdk_version() __INTRODUCED_IN(24);
^
void
/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h:194:33: warning: this function declaration is not a prototype [-Wstrict-prototypes]
int android_get_device_api_level() __INTRODUCED_IN(29);
^
void
In file included from ../util/vhost-user-server.c:12:
In file included from /home/dubu/myinstall/qemu-7.0.0/include/qemu/vhost-user-server.h:20:
In file included from /home/dubu/myinstall/qemu-7.0.0/include/standard-headers/linux/virtio_blk.h:31:
/home/dubu/myinstall/qemu-7.0.0/include/standard-headers/linux/virtio_types.h:44:19: error: typedef redefinition with different types ('uint64_t' (aka 'unsigned long') vs '__u64' (aka 'unsigned long long'))
typedef uint64_t __virtio64;
^
/home/dubu/myinstall/android-ndk-r25/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/virtio_types.h:24:25: note: previous definition is here
typedef __u64 __bitwise __virtio64;
^
2 warnings and 1 error generated.
ninja: build stopped: subcommand failed.
make: *** [Makefile:163:run-ninja] 错误 1
2.修改方法可参考如下连接
http://t.csdn.cn/lJbnw
这里要把qemu目录下的头文件virtio_types.h的宏定义修改为_UAPI_LINUX_VIRTIO_RING_H。
如果把$SYSROOT/usr/include/linux(即NDK-r25)下的头文件 virtio_types.h宏定义修改为_LINUX_VIRTIO_TYPE_H问题还是存在的。这个我不知道为什么?有大神的话清赐教。
NDK-r25交叉编译qemu-7.0.0 第651步报错相关推荐
- tensorflow1.14.0安装不上,报错
pip install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow1.14.0安装不上,报错 M ...
- Redis 5.0.3默认配置启动报错解决方法
Redis 5.0.3默认配置启动报错解决方法 参考文章: (1)Redis 5.0.3默认配置启动报错解决方法 (2)https://www.cnblogs.com/miclesvic/p/1031 ...
- MyEclipse导入jquery-1.8.0.min.js等文件报错的解决方案
2019独角兽企业重金招聘Python工程师标准>>> MyEclipse导入jquery-1.8.0.min.js等文件报错的解决方案 MyEclipse导入jquery-1.8. ...
- webview在android8.0,解决Android8.0系统应用打开webView报错
由于webView存在安全漏洞,谷歌从5.1开始全面禁止系统应用使用webview,使用会导致应用崩溃错误提示:Caused by: java.lang.UnsupportedOperationExc ...
- mysql 8.0.21 对用户授权报错 near ‘IDENTIFIED BY ‘123456‘ with grant option‘ at line 1
mysql 8.0.21 对用户授权报错 near 'IDENTIFIED BY '123456' with grant option' at line 1 问题描述 mysql在创建用户,对用户授权 ...
- 安装Saas芸众商城系统后提示:{“result“:0,“msg“:““,“data“:{“status“:-4}}报错的原因
安装Saas芸众商城系统至尊版所遇到的坑我想你也踩过,总结出来! 安装宝塔,本文是用的是lamp,可以酌情考虑. 放入代码和数据库. php使用7.4版本,安装 ionCube, fileinfo, ...
- 解决交叉编译连接器包含-ldl编译选项,但仍然报错undefined reference to ‘__dlsym‘
交叉编译连接器包含-ldl编译选项,但仍然报错undefined reference to '__dlsym' 文章目录 交叉编译连接器包含-ldl编译选项,但仍然报错undefined refere ...
- NDK-r25交叉编译qemu-7.0.0 第66步报错
交叉编译配置命令如下: PKG_CONFIG_PATH="$SYSROOT/usr/lib/pkgconfig" ../configure --prefix=/home/dubu/ ...
- IPython 8.0大版本更新:Debug报错提示更清晰,加入自动代码补全
鱼羊 发自 凹非寺 量子位 | 公众号 QbitAI 酝酿了3年多,IPython 8.0终于来了. 现在,用上最新版本,你不仅能在命令行里使用Black重新格式化代码,还能获得更好的自动代码补全和D ...
最新文章
- mysql时间日期操作
- android应用程序的组成部分
- simulink里面pid模块N的参数什么意思?
- Codeup墓地-问题 A: 最长上升子序列
- mysql 5.7 winx64_mysql 5.7.27 winx64安装配置方法图文教程
- [Webapp]国内移动端浏览器占比
- 【1】Keras复习之模型,层,训练,评估与预测
- Go基础:不同数据类型作为函数参数传递值传递/地址(引用)传递判断
- Linux c语言 creat参数,C语言open和creat函数
- 【C++游戏】日常学生党摸鱼小游戏——职业作秀V1.5.1(图文英雄解说攻略)游戏由c++与易语言配合完成
- XcodeGhost:墙、感染、信任和欺骗
- linux下海康威视MVS以及库的安装
- biopython有什么用_Biopython介绍
- 未来房价涨or跌?大数据告诉你
- 向量点积衡量相似度_向量点积与叉积
- 口袋妖怪金心银魂详细图文攻略(下)及游戏下载
- python中mysqldb模块_Python学习之MySQLdb模块
- 食物也疯狂!KOOCAN盘点因为食物毁掉的中国电视剧
- 用arduino mega2560通过isp给 arduino uno烧录程序
- LintCode Find the Duplicate Number
热门文章
- 微信小程序自定义组件,和 父子组件 之间的传值
- Vector CANoe修改Panel的名字
- 计算机丢失fine,FineRecovery(文件恢复删除)4.29
- 使用RootTools实现对Android系统文件的读写
- CC2640R2F BLE5.0 蓝牙协议栈GATTServApp模块
- Android studio中的警告Hardcoded text
- C++ 内存管理 - primitives - 侯捷
- Log4j-自动发送日志邮件
- 数据分析师课程(ArcGIS按属性选数据、各种数据分析案例)
- 关于element的日历组件改造为考勤页面