1. 程式人生 > >ubuntu編譯android6.0錯誤recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed

ubuntu編譯android6.0錯誤recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed

trip: libpagemap_32 (out/target/product/xx/obj_arm/lib/libpagemap.so)
target Strip: librilutils_32 (out/target/product/xx/obj_arm/lib/librilutils.so)
target Strip: libtinyxml_32 (out/target/product/xx/obj_arm/lib/libtinyxml.so)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
drivers/soc/qcom/Kconfig:310:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:315:warning: choice value used outside its choice group

#
# configuration written to .config
#
make[2]: Leaving directory '/home/xx/xx/6.0/android/xx/out/target/product/xx/obj/KERNEL_OBJ'
make[1]: Leaving directory '/home/xx/xx/6.0/android/xx/kernel'
make[1]: Entering directory '/home/xx/xx/6.0/android/xx/kernel'
make[2]: Entering directory '/home/xx/xx/6.0/android/xx/out/target/product/xx/obj/KERNEL_OBJ'
build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed

make: *** [out/host/linux-x86/obj/lib/libart.so] Error 1
make: *** 正在等待未完成的任務....

clang編譯器導致的問題,目前可行的修改方法時在art/build/Android.common_build.mk ,中將host 預設編輯器使用clang關掉,找到WITHOUT_HOST_CLANG

關閉clang即可

# Host.
ART_HOST_CLANG := false
ifneq ($(WITHOUT_HOST_CLANG),true)
  # By default, host builds use clang for better warnings.

  ART_HOST_CLANG := false
endif

相關推薦

ubuntu編譯android6.0錯誤recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed

trip: libpagemap_32 (out/target/product/xx/obj_arm/lib/libpagemap.so) target Strip: librilutils_32 (out/target/product/xx/obj_arm/lib/lib

android原始碼編譯錯誤make ***[out/host/linux-x86/obj/EXECUTABL

     系統是Ubuntu1264位,2G記憶體,編譯的時候出現下面這個錯誤: make:***[out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc]Error1make:***Waitingforunfinishe

編譯android sdk時的出錯out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/Asset.o

提示出錯的資訊為:host C++: libutils <= frameworks/base/libs/utils/AssetDir.cpphost C++: libutils <= frameworks/base/libs/utils/Asset.cppg++

ubuntu12.04 64bit 編譯android原始碼時遇到的問題"make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates"

ubuntu12.04 64bit 編譯android原始碼時出現如下錯誤:         host Executable: cmu2nuance (out/host/linux-x86/obj/EXECUTABLES/cmu2nuance_intermediates/

android編譯 out/host/linux-x86/bin/clang: Permission denied 問題解決方法

問題現象: 編譯出錯點提示為: out/host/linux-x86/bin/clang: Permission denied 開始嘗試刪除out/host/linux-x86/bin/clang後重新make -j4但還是出錯。 在網上也沒有找到現成的解決方法,經過嘗試如

Caffe-ssd編譯錯誤:Makefile:570: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed

在編譯Caffe-SSD時候遇到以下問題: Makefile:570: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' fail

[7]_編譯核心錯誤提示2:recipe for target 'kernel/timeconst.h' failed 和 "mkimage" command not found

----------------------------------------------------------------編譯核心出現的錯誤---------------------------

交叉編譯openssh出現錯誤Makefile:548: recipe for target 'install_sw' failed

交叉編譯openssh出現錯誤 將OpenSSH移植到ARM Linux,交叉編譯openssh時,在第二步編譯openssl時,make install出現如下錯誤: cp: 'e_os2.h' and '/home/word/iTOP-4412-Li

Ubuntu18.04編譯Nginx報錯objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed

問題描述 在Ubuntu18.04上安裝Ngnix,在編譯步驟出現如下錯誤: cc1: all warnings being treated as errors objs/Makefile:460:

Makefile:160: recipe for target 'all' failed(ubuntu16.04+opencv3.4+gcc5.4.0)

安裝並編譯的步驟如下 wget https://github.com/opencv/opencv/archive/3.4.0.zip 2、 Unzip it and create a build folder: sudo unzip 3.4.0.zip cd

recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed

LD -o .build_release/lib/libcaffe.so.1.0.0 /usr/bin/ld: cannot find -lhdf5_hl /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit st

編譯ROS的package包出錯,提示recipe for target 'all' failed

最近在學習ROS機器人作業系統,嘗試自己新建node,發現編譯始終不通過貼出問題程式碼/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+

ubuntu16.04 編譯android6.0遇到的兩個錯誤解決辦法

一:為了提高編譯效率,設定編譯器快取記憶體時出錯 prebuilts/misc/linux-x86/ccache/ccache -M 50G bash: prebuilts/misc/linux-x86/ccache/ccache: 沒有那個檔案或目錄 解決辦法:在andr

ubuntu編譯android4.0.3原始碼

1.ubuntu安裝 a.下載64位桌面版映象檔案ubuntu-12.10-desktop-amd64 b.下載EasyBCD     新增新條目——>NeoGrub——>安裝——>配置     新增     root (hd0,0)     kernel

Ubuntu編譯FFmpeg4.0.2單獨so庫(驗證可用)

1、修改ffmpeg-4.0.2原始碼下configure檔案 將該檔案中的如下四行: SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' LIB_INSTALL_EXTRA_CMD='$$(RANLIB)"$(LIBDIR)/$(

~/caffe$ make all -j8 Makefile:606: recipe for target '.build_release/cuda/src/caffe/solvers/adam_s

cuda9.0+cudnn7.0.5下,編譯caffe 執行出錯:   [email protected]:~/caffe$ make all -j8 NVCC src/caffe/solvers/adam_solver.cu NVCC src/caffe/solve

Ubuntu14.04編譯android6.0問題

1.記憶體分配不夠 ,增加記憶體2.提示java sdk記憶體不足執行下面3條命令:export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"./prebuilts

Ubuntu16.04編譯android6.0原始碼

2016-08-25 因為最近經常編譯android,每次都要去網上搜索教程,這裡把自己編譯的步驟記錄下來,方便以後查詢。 原始碼下載 安裝git 安裝好了後配置下使用者名稱和郵箱地址。 1 2 3 $ sudo apt-get install git

32位Ubuntu編譯android常見錯誤

原文: 連結 開始正式編譯,在原始碼目錄下make即可。 make 我完全不知道跑了個啥,只知道超級卡。完成後產生的out資料夾有3.9G。 映象生成在out/target/product/generic下:android原始碼編譯後得到system.img,ram

ubuntu16.04編譯Android6.0環境

Android6.0需要JDK7,安裝JDK7用如下命令在root許可權下。 add-apt-repository ppa:openjdk-r/ppa apt-get update apt-get install openjdk-7-jdk 配置環境變數,