2015-10-18 164 views
0

交叉編譯我想配置我的OSX的機器上的環境,讓我交叉編譯爲樹莓派ARM6應用。當談到建立工具鏈時,我似乎正在跑進一堵牆。我正在使用crosstool-ng,並在安裝過程中遵循多個指南,但是我的問題歸結爲運行ct-ng build命令時。在OSX到樹莓派

一旦我運行此命令似乎一切都運行良好,直到我去試圖建立binutils的。一旦它達到這種依賴性,它最終將無法完成我所做的任何事情。

這是我看到的輸出中:

[INFO ] Installing binutils for host 
[EXTRA] Configuring binutils 
[EXTRA] Building binutils 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:51:72: error: use of undeclared identifier 'do_not_use_isalnum_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:59:72: error: use of undeclared identifier 'do_not_use_isalpha_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:75:72: error: use of undeclared identifier 'do_not_use_iscntrl_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:83:72: error: use of undeclared identifier 'do_not_use_isdigit_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:91:72: error: use of undeclared identifier 'do_not_use_isgraph_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:99:72: error: use of undeclared identifier 'do_not_use_islower_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:107:72: error: use of undeclared identifier 'do_not_use_isprint_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:115:72: error: use of undeclared identifier 'do_not_use_ispunct_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:123:72: error: use of undeclared identifier 'do_not_use_isspace_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:131:72: error: use of undeclared identifier 'do_not_use_isupper_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:139:73: error: use of undeclared identifier 'do_not_use_isxdigit_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:147:72: error: use of undeclared identifier 'do_not_use_tolower_with_safe_ctype' 
[ERROR] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:155:72: error: use of undeclared identifier 'do_not_use_toupper_with_safe_ctype' 
[ERROR] make[5]: *** [binary.o] Error 1 
[ERROR] make[4]: *** [all-recursive] Error 1 
[ERROR] make[3]: *** [all] Error 2 
[ERROR] make[2]: *** [all-gold] Error 2 
[ERROR] make[1]: *** [all] Error 2 
[ERROR] 
[ERROR] >> 
[ERROR] >> Build failed in step 'Installing binutils for host' 
[ERROR] >>  called in step '(top-level)' 
[ERROR] >> 
[ERROR] >> Error happened in: CT_DoExecLog[scripts/[email protected]] 
[ERROR] >>  called from: do_binutils_backend[scripts/build/binutils/[email protected]] 
[ERROR] >>  called from: do_binutils_for_host[scripts/build/binutils/[email protected]] 
[ERROR] >>  called from: main[scripts/[email protected]] 
[ERROR] >> 
[ERROR] >> For more info on this error, look at the file: 'build.log' 
[ERROR] >> There is a list of known issues, some with workarounds, in: 
[ERROR] >>  '/usr/local/Cellar/crosstool-ng/1.21.0/share/doc/crosstool-ng/ct-ng.1.21.0/B - Known issues.txt' 
[ERROR] 
[ERROR] (elapsed: 5:11.00) 
[05:12]/make: *** [build] Error 1 

如果有人跑進這個問題,並知道如何解決它。這將非常感激。試圖從淠源建(型號A +已被證明非常艱難的,因爲它最終會崩潰)

謝謝。

+0

可能不會這樣,但是您安裝了開發人員工具嗎?如果還沒有,請在命令行輸入g ++,並彈出一個窗口,提示您安裝它們。 –

+0

你有沒有設法啓動並運行? – Todd

回答