【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

相关文章

Spring Boot中JSON数值溢出问题从报错到优雅解决办法

《SpringBoot中JSON数值溢出问题从报错到优雅解决办法》:本文主要介绍SpringBoot中JSON数值溢出问题从报错到优雅的解决办法,通过修改字段类型为Long、添加全局异常处理和... 目录一、问题背景:为什么我的接口突然报错了?二、为什么会发生这个错误?1. Java 数据类型的“容量”限制

SpringBoot项目中报错The field screenShot exceeds its maximum permitted size of 1048576 bytes.的问题及解决

《SpringBoot项目中报错ThefieldscreenShotexceedsitsmaximumpermittedsizeof1048576bytes.的问题及解决》这篇文章... 目录项目场景问题描述原因分析解决方案总结项目场景javascript提示:项目相关背景:项目场景:基于Spring

解决Maven项目idea找不到本地仓库jar包问题以及使用mvn install:install-file

《解决Maven项目idea找不到本地仓库jar包问题以及使用mvninstall:install-file》:本文主要介绍解决Maven项目idea找不到本地仓库jar包问题以及使用mvnin... 目录Maven项目idea找不到本地仓库jar包以及使用mvn install:install-file基

MySQL中的交叉连接、自然连接和内连接查询详解

《MySQL中的交叉连接、自然连接和内连接查询详解》:本文主要介绍MySQL中的交叉连接、自然连接和内连接查询,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、引入二、交php叉连接(cross join)三、自然连接(naturalandroid join)四

解决SpringBoot启动报错:Failed to load property source from location 'classpath:/application.yml'

《解决SpringBoot启动报错:Failedtoloadpropertysourcefromlocationclasspath:/application.yml问题》这篇文章主要介绍... 目录在启动SpringBoot项目时报如下错误原因可能是1.yml中语法错误2.yml文件格式是GBK总结在启动S

idea maven编译报错Java heap space的解决方法

《ideamaven编译报错Javaheapspace的解决方法》这篇文章主要为大家详细介绍了ideamaven编译报错Javaheapspace的相关解决方法,文中的示例代码讲解详细,感兴趣的... 目录1.增加 Maven 编译的堆内存2. 增加 IntelliJ IDEA 的堆内存3. 优化 Mave

如何解决mmcv无法安装或安装之后报错问题

《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.

浅谈配置MMCV环境,解决报错,版本不匹配问题

《浅谈配置MMCV环境,解决报错,版本不匹配问题》:本文主要介绍浅谈配置MMCV环境,解决报错,版本不匹配问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录配置MMCV环境,解决报错,版本不匹配错误示例正确示例总结配置MMCV环境,解决报错,版本不匹配在col

Java编译生成多个.class文件的原理和作用

《Java编译生成多个.class文件的原理和作用》作为一名经验丰富的开发者,在Java项目中执行编译后,可能会发现一个.java源文件有时会产生多个.class文件,从技术实现层面详细剖析这一现象... 目录一、内部类机制与.class文件生成成员内部类(常规内部类)局部内部类(方法内部类)匿名内部类二、

mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)的解决方法

《mysql出现ERROR2003(HY000):Can‘tconnecttoMySQLserveron‘localhost‘(10061)的解决方法》本文主要介绍了mysql出现... 目录前言:第一步:第二步:第三步:总结:前言:当你想通过命令窗口想打开mysql时候发现提http://www.cpp