2013-01-05 63 views
0

我上的BeagleBoard-XM編譯內核:編譯上的BeagleBoard - 失敗的AR

[email protected]:~# uname -a 
Linux beagleboard 2.6.32 #3 PREEMPT Tue Jul 26 10:56:56 CEST 2011 armv7l unknown 

我現在嘗試編譯與CMake的靜態庫,一切工作正常,直到它連接的圖書館:

[email protected]:/usr/src/build/beaglebuild# make 
Scanning dependencies of target phoenix_base 
[ 2%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/exec_buffer.cpp.o 
[ 5%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/func_buffer.cpp.o 
[ 8%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/worker.cpp.o 
[ 11%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/workermanager.cpp.o 
[ 14%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/command.cpp.o 
[ 17%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/logger.cpp.o 
[ 20%] Building CXX object 00_phoenix_base/CMakeFiles/phoenix_base.dir/src/signal.cpp.o 
Linking CXX static library libphoenix_base.a 
BusyBox v1.13.2 (2011-02-25 16:46:47 CET) multi-call binary 

Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES 

Extract or list FILES from an ar archive 

Options: 
    -o Preserve original dates 
    -p Extract to stdout 
    -t List 
    -x Extract 
    -v Verbose 

make[2]: *** [00_phoenix_base/libphoenix_base.a] Error 1 
make[1]: *** [00_phoenix_base/CMakeFiles/phoenix_base.dir/all] Error 2 
make: *** [all] Error 2 

在我的「ar - 幫助」打印相同的東西。

有沒有辦法讓板子上的鏈接運行? 可能是什麼問題?

一些其他系統版本:

[email protected]:~# cmake --version 
cmake version 2.8.2 
[email protected]:~# g++ --version 
g++ (GCC) 4.3.3 
Copyright (C) 2008 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions. There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 

回答

0

的麻煩後,我通過交叉編譯一個完全處於最新版本的AR(我的事情主板上的一個已經過時)和我擺脫了BusyBox的。

現在一切正常,如我所料。