error:inconsistent uses of .cfi_sections clang: error: assembler command failed with exit code 1 (use -v to see invocation) make: *** [out/host/linux-x86/obj32/STATIC_LIBRARIES/libcompiler_rt_intermediates/lib/builtins/absvdi2.o] 错误 1 make: *** 正在等待未完成的任务.... /tmp/absvsi2-cb407e.s: Assembler messages: /tmp/absvsi2-cb407e.s:361: 错误:inconsistent uses of .cfi_sections clang: error: assembler command failed with exit code 1 (use -v to see invocation) make: *** [out/host/linux-x86/obj32/STATIC_LIBRARIES/libcompiler_rt_intermediates/lib/builtins/absvsi2.o] 错误 1
截图:
这个问题在编译android5.1.1的时候,遇到的问题,折腾了好久,网上关于这个的很少,在这里记录一下
这个是因为binutils版本问题,应该是2.27的问题,只要不是使用这个版本即可,升高,或者降低都可以,我是降低了,因为5.1.1很早了,还是用低版本的保险点。
直接按照下面步骤下载安装即可,不需要卸载。
首先需要下载安装包
wget https://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz
然后解压安装即可,执行以下命令既可以了:
1. tar -zxf binutils-2.26.tar.gz
2. cd binutils-2.26
3. ./configure --prefix=/usr
4. make
5. make install
执行完之后,你就继续编译你的源码就可以。