首页 > 其他分享 >关于 使用不同的交叉编译工具链,对gdb-8.1.1进行编译的结果

关于 使用不同的交叉编译工具链,对gdb-8.1.1进行编译的结果

时间:2022-11-07 14:26:40浏览次数:38  
标签:8.1 buildroot .. gnu aarch64 编译 gdb linux

gdb-8.1.1解压编译,使用厂家自带交叉编译工具
../configure CC=aarch64-buildroot-linux-gnu-gcc -host=aarch64-buildroot-linux-gnu -target=aarch64-buildroot-linux-gnu
make
make报错:
In file included from ../../gdb/nat/linux-ptrace.c:20:
../../gdb/nat/linux-ptrace.h:180:22: 错误:expected identifier before numeric constant
180 | # define TRAP_HWBKPT 4
| ^
../../gdb/nat/linux-ptrace.h:180:22: 错误:expected ‘}’ before numeric constant
In file included from /media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/signal.h:58,
from build-gnulib/import/signal.h:52,
from /media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/sys/wait.h:36,
from ../../gdb/common/gdb_wait.h:23,
from ../../gdb/nat/linux-ptrace.c:24:
/media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/siginfo-consts.h:156:1: 附注:to match this ‘{’
156 | {
| ^
In file included from ../../gdb/nat/linux-ptrace.c:20:
../../gdb/nat/linux-ptrace.h:180:22: 错误:expected unqualified-id before numeric constant
180 | # define TRAP_HWBKPT 4
| ^
In file included from /media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/features.h:450,
from /media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/libc-header-start.h:33,
from /media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/stdio.h:27,
from build-gnulib/import/stdio.h:43,
from ../../gdb/common/common-defs.h:52,
from ../../gdb/nat/linux-ptrace.c:19:
/media/harddisk1/ema/3ok3568/rk356x_linux/buildroot/output/rockchip_rk3568_med3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/sys/wait.h:158:1: 错误:expected declaration before ‘}’ token
158 | __END_DECLS
| ^~~~~~~~~~~
Makefile:1643: recipe for target 'linux-ptrace.o' failed
make[2]: *** [linux-ptrace.o] Error 1
make[2]: 离开目录“/opt/opensource/gdb-8.1.1/build-buildroot/gdb”
Makefile:9126: recipe for target 'all-gdb' failed
make[1]: *** [all-gdb] Error 2
make[1]: 离开目录“/opt/opensource/gdb-8.1.1/build-buildroot”
Makefile:849: recipe for target 'all' failed
make: *** [all] Error 2

gdb-8.1.1解压编译,使用自下载gcc-linaro工具
../configure CC=aarch64-linux-gnu-gcc -host=aarch64-linux-gnu -target=aarch64-linux-gnu
make

 

标签:8.1,buildroot,..,gnu,aarch64,编译,gdb,linux
From: https://www.cnblogs.com/walkies/p/16865766.html

相关文章

  • AI 模型编译器 MegCC 开源,解决推理引擎体积问题
    目前社区已经有多个移动端深度学习推理框架,如:NCNN、MNN...这些推理引擎都给社区的用户带来了在移动端上部署深度学习非常多的便利,但是他们也都有一个共性问题:随着不断地迭......
  • 编辑器在编译Shader时的报错疑问
    1)编辑器在编译Shader时的报错疑问​2)关于图片大小和包体大小的疑问3)关于合图和合批是否会降低带宽的疑问4)URP下,如何优化多相机渲染时的Cull耗时这是第312篇UWA技术知识分......
  • Nginx1.8.1 编译扩展https
    nginx无缝编译扩展https本贴只限用于通过编译安装的nginx,如果用的是yum源安装请卸载后参见 安装nginx部分。一、重新编译nginx1、查看nginx是否支持ssl/usr/local/nginx/sb......
  • stm32cubeIDE STLINK连接SWD接口调试,启动GDB server失败的处理
    stm32cubeIDESTLINK连接SWD接口调试,启动GDBserver失败的处理报警提示Failedtobindtoport61234,errorcode-1:NoerrorFailurestartingGDBserver:TCPpor......
  • stm32cubeIDE STLINK连接SWD接口调试,启动GDB server失败的处理
    stm32cubeIDESTLINK连接SWD接口调试,启动GDBserver失败的处理报警提示Failedtobindtoport61234,errorcode-1:NoerrorFailurestartingGDBserver:TCPpor......
  • SQLite3编译
    官方编译方式SQLite3源码提供了非常便捷的编译脚本,通过执行以下命令可以编译得到sqlite3.c、sqlite3.h、sqlite3ext.h、shell.c以及一个可执行程序sqlite3。所有的代......
  • 最新版Jenkins(jdk11)-----JAVA项目使用低版本jdk编译的解决办法
    背景开源Devops工具Jenkins宣布:从6月28日发布的Jenkins2.357和即将发布的9月LTS版本开始,Jenkins最低需要Java11。所以,你懂得,很坑,项目只是jdk1.8解决......
  • CentOS7编译安装haproxy-2.6.6
    创建用户并安装依赖包#selinux会影响haproxy启动,会有'cannotbindUNIXsocket(Permissiondenied)'的报错,请关闭它除非你知道设置selinux规则sed-i'/SELINUX/s/enf......
  • C#动态编译2
    思路:通过C#的编译对象CSharpCodeProvider对一段C#代码进行编译C#代码包含命名空间、类、方法。以及需要引用的命名空间可以在编译前增加DLL引用,这样动态的C#代码就可以......
  • java 编译器
    1.javac介绍2. javac文件系统3. 词法分析4.语法分析之认识树节点5.语法分析之建立抽象语法树6.符号表的组织7. 填充符号表8. 插入式注解的实现9.语......