2017-05-13 21 views
1

power-pc用のブーストライブラリをクロスコンパイルする必要があります。power-pc用のクロスコンパイルブーストライブラリが失敗する

私はそれを実行するために取得するために実行した私のステップの下に見つけてください:

私は

  1. ダウンロードブーストをした1.61
  2. /homeの下にそれを展開/ emh2
  3. 実行したsudo ./home/bootstrap.shビルドを高めるためb2
  4. Boost.Builder b2が正常に作成されました。

クロスコンパイラのPowerPC-BT-Linuxベースgnuspe-G ++次のパスの下に配置されている:

は/ usr/local /クロス/ i686の-BT-のLinuxの/ usr/binに/ PowerPCの-BT-Linuxベースgnuspe/

ザは

は/ usr/local /のCROを、以下の通りであるクロスコンパイラのディレクトリを含みますusr/include/C++/5.2.0/powerpc-bt-linux-gnuspe

/usr/local/cross/ppce500v2-bt-linux-gnuspe/usr/include/gnuspe/ppce500v2-bt-linux-gnuspe/usr/C++/5.2.0/

は/ usr/local /クロス/ ppce500v2-BT-linuxの-gnuspeは/ usr/Iがで作成した/

次が含まれる/ホームユーザー設定.jamの内容は次のとおりです。

using gcc 
: ppc 
: /usr/local/cross/i686-bt-linux/usr/bin/powerpc-bt-linux-gnuspe/powerpc-bt-linux-gnuspe-g++ 
: <compilerflags>-I/usr/local/cross/ppce500v2-bt-linux-gnuspe/usr/include/c++/5.2.0/powerpc-bt-linux-gnuspe -I/usr/local/cross/ppce500v2-bt-linux-gnuspe/usr/include/c++/5.2.0/ -I/usr/local/cross/ppce500v2-bt-linux-gnuspe/usr/include/ ; 

は、その後、私は--with-ログ

そしてここ./b2ツールセット= GCC-PPCが示す出力は、ファイル/ディレクトリが見つからないこと、である

でクロスコンパイルを開始しました:

Performing configuration checks 
- 32-bit     : yes (cached) 
- arm      : no (cached) 
- mips1     : no (cached) 
- power     : yes (cached) 

Building the Boost C++ Libraries. 
- symlinks supported  : yes (cached) 
- compiler-supports-visibility : yes (cached) 
- has_icu builds   : no (cached) 
- lockfree boost::atomic_flag : no (cached) 
Component configuration: 

- atomic     : not building 
- chrono     : not building 
- container    : not building 
- context     : not building 
- coroutine    : not building 
- coroutine2    : not building 
- date_time    : not building 
- exception    : not building 
- filesystem    : not building 
- graph     : not building 
- graph_parallel   : not building 
- iostreams    : not building 
- locale     : not building 
- log      : building 
- math      : not building 
- metaparse    : not building 
- mpi      : not building 
- program_options   : not building 
- python     : not building 
- random     : not building 
- regex     : not building 
- serialization   : not building 
- signals     : not building 
- system     : not building 
- test      : not building 
- thread     : not building 
- timer     : not building 
- type_erasure    : not building 
- wave      : not building 
...patience... 
...patience... 
...patience... 
...patience... 
...found 4056 targets... 
...updating 208 targets... 
gcc.compile.c++ bin.v2/libs/atomic/build/gcc-ppc/release/threading- multi/lockpool.o 
libs/atomic/src/lockpool.cpp:15:19: fatal error: cstddef: No such file or directory 
compilation terminated. 

"/usr/local/cross/i686-bt-linux/usr/bin/powerpc-bt-linux-gnuspe/powerpc-bt-linux-gnuspe-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_ATOMIC_SOURCE -DNDEBUG -I"." -c -o "bin.v2/libs/atomic/build/gcc-ppc /release/threading-multi/lockpool.o" "libs/atomic/src/lockpool.cpp" 

...failed gcc.compile.c++ bin.v2/libs/atomic/build/gcc-ppc/release/threading- multi/lockpool.o... 
...skipped <pbin.v2/libs/atomic/build/gcc-ppc/release/threading- multi>libboost_atomic.so.1.61.0 for lack of <pbin.v2/libs/atomic/build/gcc-ppc /release/threading-multi>lockpool.o... 
...skipped <pstage/lib>libboost_atomic.so.1.61.0 for lack of <pbin.v2/libs /atomic/build/gcc-ppc/release/threading-multi>libboost_atomic.so.1.61.0... 
...skipped <pstage/lib>libboost_atomic.so for lack of <pstage/lib>libboost_atomic.so.1.61.0... 
gcc.compile.c++ bin.v2/libs/date_time/build/gcc-ppc/release/threading- multi/gregorian/greg_month.o 
In file included from ./boost/date_time/gregorian/greg_month.hpp:12:0, 
      from libs/date_time/src/gregorian/greg_month.cpp:14: 
./boost/date_time/constrained_value.hpp:12:21: fatal error: exception: No such file or directory 
compilation terminated. 

私はここで何が間違っていますか?これらの「No such file or directory」というエラーが表示されるのはなぜですか?

答えて

0

まず、私が説明したhereよう

./b2 --debug-configuration -n 

を実行します。これにより、b2が正しいジャムファイルを取得していることを確認できます。これは、/ home/user /内のuser-config.jamを探します。まだ存在しない場合は、そのディレクトリに移動する必要があります。

さらに、私は自分自身が書き出す必要があることを発見しました<compileflag>-option1 <compileflag>-option2 etc...オプションの文字列全体を渡す方法があるかもしれませんが、単一の<compileflags>が動作していないように見えるように間隔を置いてください。

出力には、これが実行された完全なコンパイルコマンドが表示されます。コンパイルフラグが表示され、ジャムファイルの構文が正しく動作していることを確認するのに使用できます。上記のあなたの出力で

、あなたの意図を含んでいます

"/usr/local/cross/i686-bt-linux/usr/bin/powerpc-bt-linux-gnuspe/powerpc-bt-linux-gnuspe-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_ATOMIC_SOURCE -DNDEBUG -I"." -c -o "bin.v2/libs/atomic/build/gcc-ppc /release/threading-multi/lockpool.o" "libs/atomic/src/lockpool.cpp" 
を表示されないことをすることができます
関連する問題