2014-05-14 114 views
0

我們正試圖在CENTOS 5.10 x86_64標準服務器b/c上構建AOSP(android-4.4.2_r1),它有很多處理器和RAM。在我們運行make -j32 2> error.log後,構建停止。 error.log顯示以下錯誤。誰能告訴我們爲什麼?在CENTOS 5.10 x86_64標準服務器上構建aosp(android)失敗

find: src: No such file or directory 
/usr/bin/m4: unrecognized option `--gnu' 
Try `/usr/bin/m4 --help' for more information. 
/root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as: /lib64/libz.so.1: no version information available (required by /root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as) 
/root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as: /lib64/libz.so.1: no version information available (required by /root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as) 
/root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as: /lib64/libz.so.1: no version information available (required by /root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as) 
/root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as: /lib64/libz.so.1: no version information available (required by /root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as) 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
/root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as: /lib64/libz.so.1: no version information available (required by /root/android/source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/as) 
/usr/bin/m4: unrecognized option `--gnu' 
Try `/usr/bin/m4 --help' for more information. 
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp] Broken pipe 
make: *** Waiting for unfinished jobs.... 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 

回答

0

要解決這個問題,我們將我們的centos服務器從5.10升級到了6.5。但是,我們並未遵循source.android.com關於如何準備服務器的說明。相反,我們只需運行make -j32,然後修復任何後續錯誤。

我們注意到的一件事是我們必須在64位服務器上安裝32位軟件包。我們最終也放棄了CM的AOSP。

最後,這是一個商業決定,我們買了一個廉價的平板電腦,有一個官方的CM11 ROM:http://wiki.cyanogenmod.org/w/Build_for_p3110,所以我們至少可以有一些指令集。