【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

相关文章

解决升级JDK报错:module java.base does not“opens java.lang.reflect“to unnamed module问题

《解决升级JDK报错:modulejava.basedoesnot“opensjava.lang.reflect“tounnamedmodule问题》SpringBoot启动错误源于Jav... 目录问题描述原因分析解决方案总结问题描述启动sprintboot时报以下错误原因分析编程异js常是由Ja

解决Nginx启动报错Job for nginx.service failed because the control process exited with error code问题

《解决Nginx启动报错Jobfornginx.servicefailedbecausethecontrolprocessexitedwitherrorcode问题》Nginx启... 目录一、报错如下二、解决原因三、解决方式总结一、报错如下Job for nginx.service failed bec

Java报错:org.springframework.beans.factory.BeanCreationException的五种解决方法

《Java报错:org.springframework.beans.factory.BeanCreationException的五种解决方法》本文解析Spring框架中BeanCreationExce... 目录引言一、问题描述1.1 报错示例假设我们有一个简单的Java类,代表一个用户信息的实体类:然后,

解决若依微服务框架启动报错的问题

《解决若依微服务框架启动报错的问题》Invalidboundstatement错误通常由MyBatis映射文件未正确加载或Nacos配置未读取导致,需检查XML的namespace与方法ID是否匹配,... 目录ruoyi-system模块报错报错详情nacos文件目录总结ruoyi-systnGLNYpe

MySQL中DATE_FORMAT时间函数的使用小结

《MySQL中DATE_FORMAT时间函数的使用小结》本文主要介绍了MySQL中DATE_FORMAT时间函数的使用小结,用于格式化日期/时间字段,可提取年月、统计月份数据、精确到天,对大家的学习或... 目录前言DATE_FORMAT时间函数总结前言mysql可以使用DATE_FORMAT获取日期字段

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 初始化