2014-10-22 35 views
0

我收到以下錯誤,當我嘗試發出讓三星來源:我怎麼對付三星源中的make錯誤編譯

@ubuntu:~/androidkernel$ sudo make 
CHK  include/linux/version.h 
CHK  include/generated/utsrelease.h 
make[1]: `include/generated/mach-types.h' is up to date. 
CC  kernel/bounds.s 
cc: error: unrecognized argument in option ‘-mabi=aapcs-linux’ 
cc: note: valid arguments to ‘-mabi=’ are: ms sysv 
cc: error: unrecognized command line option ‘-mlittle-endian’ 
cc: error: unrecognized command line option ‘-mno-thumb-interwork’ 
make[1]: *** [kernel/bounds.s] Error 1 
make: *** [prepare0] Error 2 

我做了一些網上搜索,並發現,這可能是由於以gcc工具鏈和其他文件之間的差異。我不確定我是否在正確的道路上。我需要幫助確定如何解決上述錯誤請。

+0

我認爲這意味着你缺少必要的該體系結構的交叉編譯工具包。不幸的是,我不知道什麼是正確的解決方案,雖然我認爲應該有可用於Ubuntu的軟件包。 – 2014-10-22 11:24:26

回答

1

如果您已經下載了烴源然後執行以下操作

make ARCH=arm TOOLCHAIN=/pathtosource/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin 
0

http://forum.xda-developers.com/showthread.php?t=1516051

這是問題/解決方案的完整描述。您的問題特別在 「工具鏈」 部分是:

5) Download Arm Toolchain 

This toolchain will allow you to cross compile for your phone. There are several versions to choose. I currently use the 2010q1 version here: https://sourcery.mentor.com/sgpp/lit...ux-gnu.tar.bz2 

Or choose another version if you like (version 2009q3 seems to be popular): https://sourcery.mentor.com/sgpp/lit...bscription3053 

工具鏈的另一來源是通過Android NDK(搜索臂EABI目錄):

https://developer.android.com/tools/sdk/ndk/index.html

(它有編譯C,所以應該包括所有的gcc交叉工具鏈來生成ARM二進制文件)。

如果你想要一個介紹,也許試試這個:

https://www.youtube.com/watch?v=9PoENQiuYE4