【Error】 交叉编译ncurses-6.1 make install 报错 strip: Unable to recognise the format of the input

本文主要是介绍【Error】 交叉编译ncurses-6.1 make install 报错 strip: Unable to recognise the format of the input,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

发生在交叉编译tmux时,交叉编译ncurses-6.1 make install 报错:

.. installing alias ttytype.3ncurses.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man5/terminfo.5.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man1/tic.1.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man1/toe.1.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man1/tput.1.gz
.. installing alias reset.1.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man1/tset.1.gz
.. installing alias reset.1.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man5/user_caps.5.gz
installing /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/share/man/man3/wresize.3ncurses.gz
make[1]: Leaving directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/man'
cd include && make DESTDIR="" RPATH_LIST="/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib" install
make[1]: Entering directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/include'
mkdir -p /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing curses.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing unctrl.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing ncurses_dll.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing term.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing termcap.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing ./tic.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing ./term_entry.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
installing ./nc_tparm.h in /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/include/ncurses
make[1]: Leaving directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/include'
cd ncurses && make DESTDIR="" RPATH_LIST="/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib" install
make[1]: Entering directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/ncurses'
mkdir -p /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib
installing ../lib/libncurses.a as /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib/libncurses.a
/usr/bin/install -c -m 644 ../lib/libncurses.a /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib/libncurses.a
ranlib /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib/libncurses.a
installing ../lib/libncurses_g.a as /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib/libncurses_g.a
/usr/bin/install -c -m 644 ../lib/libncurses_g.a /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib/libncurses_g.a
ranlib /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib/libncurses_g.a
make[1]: Leaving directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/ncurses'
cd progs && make DESTDIR="" RPATH_LIST="/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/lib" install
make[1]: Entering directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/progs'
mkdir -p /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/bin
/usr/bin/install -c -s tic     /root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/bin/`echo tic|       sed 's/$//'|sed 's,x,x,'|sed 's/$//'`
strip: Unable to recognise the format of the input file `/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/out/bin/tic'
/usr/bin/install: strip process terminated abnormally
Makefile:201: recipe for target 'install.progs' failed
make[1]: *** [install.progs] Error 1
make[1]: Leaving directory '/root/Pwn/tmp/gdb-aarch64/tmux/tmux/ncurses-6.1/progs'
Makefile:113: recipe for target 'install' failed
make: *** [install] Error 2

 

问题在与gcc和strip不是同一个arch 的。交叉编译时CC已经指定,但是strip依然是系统的strip。强行ln -s修改即可。(alias尝试了无效)

 

解决方案:

ln -s /root/Pwn/tmp/gdb-aarch64/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-strip /usr/bin/strip

参考:https://www.cnblogs.com/water-moon/p/5983152.html

这篇关于【Error】 交叉编译ncurses-6.1 make install 报错 strip: Unable to recognise the format of the input的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/864946

相关文章

kkFileView启动报错:报错2003端口占用的问题及解决

《kkFileView启动报错:报错2003端口占用的问题及解决》kkFileView启动报错因office组件2003端口未关闭,解决:查杀占用端口的进程,终止Java进程,使用shutdown.s... 目录原因解决总结kkFileViewjavascript启动报错启动office组件失败,请检查of

Go语言编译环境设置教程

《Go语言编译环境设置教程》Go语言支持高并发(goroutine)、自动垃圾回收,编译为跨平台二进制文件,云原生兼容且社区活跃,开发便捷,内置测试与vet工具辅助检测错误,依赖模块化管理,提升开发效... 目录Go语言优势下载 Go  配置编译环境配置 GOPROXYIDE 设置(VS Code)一些基本

解决1093 - You can‘t specify target table报错问题及原因分析

《解决1093-Youcan‘tspecifytargettable报错问题及原因分析》MySQL1093错误因UPDATE/DELETE语句的FROM子句直接引用目标表或嵌套子查询导致,... 目录报js错原因分析具体原因解决办法方法一:使用临时表方法二:使用JOIN方法三:使用EXISTS示例总结报错原

java使用protobuf-maven-plugin的插件编译proto文件详解

《java使用protobuf-maven-plugin的插件编译proto文件详解》:本文主要介绍java使用protobuf-maven-plugin的插件编译proto文件,具有很好的参考价... 目录protobuf文件作为数据传输和存储的协议主要介绍在Java使用maven编译proto文件的插件

Go语言中make和new的区别及说明

《Go语言中make和new的区别及说明》:本文主要介绍Go语言中make和new的区别及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1 概述2 new 函数2.1 功能2.2 语法2.3 初始化案例3 make 函数3.1 功能3.2 语法3.3 初始化

Visual Studio 2022 编译C++20代码的图文步骤

《VisualStudio2022编译C++20代码的图文步骤》在VisualStudio中启用C++20import功能,需设置语言标准为ISOC++20,开启扫描源查找模块依赖及实验性标... 默认创建Visual Studio桌面控制台项目代码包含C++20的import方法。右键项目的属性:

HTML input 标签示例详解

《HTMLinput标签示例详解》input标签主要用于接收用户的输入,随type属性值的不同,变换其具体功能,本文通过实例图文并茂的形式给大家介绍HTMLinput标签,感兴趣的朋友一... 目录通用属性输入框单行文本输入框 text密码输入框 password数字输入框 number电子邮件输入编程框

qt5cored.dll报错怎么解决? 电脑qt5cored.dll文件丢失修复技巧

《qt5cored.dll报错怎么解决?电脑qt5cored.dll文件丢失修复技巧》在进行软件安装或运行程序时,有时会遇到由于找不到qt5core.dll,无法继续执行代码,这个问题可能是由于该文... 遇到qt5cored.dll文件错误时,可能会导致基于 Qt 开发的应用程序无法正常运行或启动。这种错

MySQL启动报错:InnoDB表空间丢失问题及解决方法

《MySQL启动报错:InnoDB表空间丢失问题及解决方法》在启动MySQL时,遇到了InnoDB:Tablespace5975wasnotfound,该错误表明MySQL在启动过程中无法找到指定的s... 目录mysql 启动报错:InnoDB 表空间丢失问题及解决方法错误分析解决方案1. 启用 inno

解决Java异常报错:java.nio.channels.UnresolvedAddressException问题

《解决Java异常报错:java.nio.channels.UnresolvedAddressException问题》:本文主要介绍解决Java异常报错:java.nio.channels.Unr... 目录异常含义可能出现的场景1. 错误的 IP 地址格式2. DNS 解析失败3. 未初始化的地址对象解决