【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

相关文章

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. 未初始化的地址对象解决

Python报错ModuleNotFoundError的10种解决方案

《Python报错ModuleNotFoundError的10种解决方案》在Python开发中,ModuleNotFoundError是最常见的运行时错误之一,通常由模块路径配置错误、依赖缺失或命名冲... 目录一、常见错误场景与原因分析二、10种解决方案与代码示例1. 检查并安装缺失模块2. 动态添加模块

Android NDK版本迭代与FFmpeg交叉编译完全指南

《AndroidNDK版本迭代与FFmpeg交叉编译完全指南》在Android开发中,使用NDK进行原生代码开发是一项常见需求,特别是当我们需要集成FFmpeg这样的多媒体处理库时,本文将深入分析A... 目录一、android NDK版本迭代分界线二、FFmpeg交叉编译关键注意事项三、完整编译脚本示例四

idea报错java: 非法字符: ‘\ufeff‘的解决步骤以及说明

《idea报错java:非法字符:‘ufeff‘的解决步骤以及说明》:本文主要介绍idea报错java:非法字符:ufeff的解决步骤以及说明,文章详细解释了为什么在Java中会出现uf... 目录BOM是什么?1. BOM的作用2. 为什么会出现 \ufeff 错误?3. 如何解决 \ufeff 问题?最

解决Maven项目报错:failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题

《解决Maven项目报错:failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题》这篇文章主要介... 目录Maven项目报错:failed to execute goal org.apache.maven.pl

电脑找不到mfc90u.dll文件怎么办? 系统报错mfc90u.dll丢失修复的5种方案

《电脑找不到mfc90u.dll文件怎么办?系统报错mfc90u.dll丢失修复的5种方案》在我们日常使用电脑的过程中,可能会遇到一些软件或系统错误,其中之一就是mfc90u.dll丢失,那么,mf... 在大部分情况下出现我们运行或安装软件,游戏出现提示丢失某些DLL文件或OCX文件的原因可能是原始安装包

电脑显示mfc100u.dll丢失怎么办?系统报错mfc90u.dll丢失5种修复方案

《电脑显示mfc100u.dll丢失怎么办?系统报错mfc90u.dll丢失5种修复方案》最近有不少兄弟反映,电脑突然弹出“mfc100u.dll已加载,但找不到入口点”的错误提示,导致一些程序无法正... 在计算机使用过程中,我们经常会遇到一些错误提示,其中最常见的就是“找不到指定的模块”或“缺少某个DL

解决IDEA报错:编码GBK的不可映射字符问题

《解决IDEA报错:编码GBK的不可映射字符问题》:本文主要介绍解决IDEA报错:编码GBK的不可映射字符问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录IDEA报错:编码GBK的不可映射字符终端软件问题描述原因分析解决方案方法1:将命令改为方法2:右下jav