5

utility を使用してクロス コンパイラ ツールチェーンを構築したいと考えています。だから私はすべてのtarファイルをダウンロードしました。次に、親ビルドのルート ディレクトリに変更しました。

次に、ARMおよびARM 920Tに構成しました。にあるすべてのオプションのチェックを外しましたbuild options --->tool chain--->を使用make menuconfig

Target Architecture (arm)  --->                                                                       
Target Architecture Variant (arm920t)  --->   
Target ABI (EABI)  --->

建物のオプション

  Commands  --->
  ($(TOPDIR)/dl) Download dir
  ($(BASE_DIR)/host) Host dir
  Mirrors and Download locations  --->
  (2) Number of jobs to run simultaneously
[ ] Enable compiler cache
[ ] Show packages that are deprecated or obsolete
[ ] build packages with debugging symbols                                                               
strip (strip)  --->
gcc optimization level (optimize for size)  ---> 
[*] prefer static libraries 
[ ] documentation on the target                                                                          

[ ] development files in target filesystem                                                       

ツールチェーン

  Toolchain type (Buildroot toolchain)  --->
      *** Kernel Header Options ***
                                 Kernel Headers (Linux 2.6.37.x kernel headers) 
      *** uClibc Options ***
 uClibc C library Version (uClibc 0.9.30.x)  ---> 

               (toolchain/uClibc/uClibc-0.9.30.config) uClibc
configuration file to use? 
[ ] Thread library debugging
[*] Compile and install uClibc tests
*** Binutils Options ***
Binutils Version (binutils 2.21)  --->
()  Additional binutils options
*** GCC Options ***
GCC compiler Version (gcc 4.3.x)  ---> 

私は走りmakeます。

以下のエラーが発生しています。

make[2]: Leaving directory `/home/gangadhar/Embedded/Embedded/buildroot- 2011.02/output/toolchain/gcc-4.3.5-initial/fixincludes'
make[2]: Entering directory `/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial/build-i686-pc-linux-gnu/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial/build-i686-pc-linux-gnu/fixincludes'
make[2]: Entering directory `/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial/libcpp'
test -f config.h || (rm -f stamp-h1 && /usr/bin/make stamp-h1)
make[2]: Leaving directory `/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial/libcpp'
make[2]: Entering directory `/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial/gcc'
if [ xinfo = xinfo ]; then \
    makeinfo --split-size=5000000 --no-split -I . -I /home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc \
        -I /home/gangadhar/Embedded/Embedded/buildroot- 2011.02/output/toolchain/gcc-4.3.5/gcc/doc/include -o doc/cpp.info  /home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc- 4.3.5/gcc/doc/cpp.texi; \
       fi
if [ xinfo = xinfo ]; then \
    makeinfo --split-size=5000000 --no-split -I . -I  /home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc \
        -I /home/gangadhar/Embedded/Embedded/buildroot- 2011.02/output/toolchain/gcc-4.3.5/gcc/doc/include -o doc/gcc.info   /home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc- 4.3.5/gcc/doc/gcc.texi; \
fi
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/cppopts.texi:757: @itemx must follow @item
make[2]: *** [doc/cpp.info] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/gcc.texi:89: warning: @tex should only appear at a line beginning
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/gcc.texi:89: warning: @end should only appear at a line beginning
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/gcc.texi:91: warning: @tex should only appear at a line beginning
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/gcc.texi:91: warning: @end should only appear at a line beginning
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:961: @itemx must follow @item
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/cppopts.texi:757: @itemx must follow @item
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:8574: @itemx must follow @item
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4234: @subsection seen before @end table
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4263: @item outside of table or list
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4264: @itemx outside of table or list
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4277: unmatched `@end table'
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:855: warning: node next `Overall Options' in menu `C Dialect   Options' and in sectioning `Invoking G++' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:855: warning: node up `Overall Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:1282: warning: node prev `C Dialect Options' in menu `Overall Options' and in sectioning `Invoking G++' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:1282: warning: node up `C Dialect Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:1617: warning: node up `C++ Dialect Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/ho me/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:2198: warning: node up `Objective-C and Objective-C++ Dialect Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:2475: warning: node up `Language Independent Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:2536: warning: node up `Warning Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:4058: warning: node up `Debugging Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:5102: warning: node up `Optimize Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:7334: warning: node up `Preprocessor Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:7371: warning: node up `Assembler Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:7394: warning: node up `Link Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:7611: warning: node up `Directory Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:7749: warning: node up `Spec Files' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:8281: warning: node up `Target Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1122: warning: node next `Zero Length' in menu `Variable Length' and in sectioning `Empty Structures' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1220: warning: node next `Empty Structures' in menu `Variadic Macros' and in sectioning `Variable Length' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1220: warning: node prev `Empty Structures' in menu `Variable  Length' and in sectioning `Zero Length' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1236: warning: node next `Variable Length' in menu `Empty Structures' and in sectioning `Variadic Macros' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1236: warning: node prev `Variable Length' in menu `Zero Length' and in sectioning `Empty Structures' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1319: warning: node prev `Variadic Macros' in menu `Empty Structures' and in sectioning `Variable Length' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1537: warning: node next `Designated Inits' in menu `Cast to Union' and in sectioning `Case Ranges' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1681: warning: node next `Case Ranges' in menu `Mixed Declarations' and in sectioning `Cast to Union' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1681: warning: node prev `Case Ranges' in menu `Cast to Union' and in sectioning `Designated Inits' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1718: warning: node next `Cast to Union' in menu `Case Ranges' and in sectioning `Mixed Declarations' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1718: warning: node prev `Cast to Union' in menu `Designated Inits' and in sectioning `Case Ranges' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:1759: warning: node prev `Mixed Declarations' in menu `Case Ranges' and in sectioning `Cast to Union' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:3360: warning: node next `Character Escapes' in menu `Variable Attributes' and in sectioning `Alignment' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:3366: warning: node next `Alignment' in menu `Inline' and in sectioning `Variable Attributes' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:3366: warning: node prev `Alignment' in menu `Type Attributes' and in sectioning `Character Escapes' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:3402: warning: node prev `Variable Attributes' in menu `Character  Escapes' and in sectioning `Alignment' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:3938: warning: node next `Type Attributes' in menu `Alignment' and in sectioning `Inline' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4316: warning: node prev `Inline' in menu `Alignment' and in sectioning `Type Attributes' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/trouble.texi:7: warning: node next `Trouble' in menu `Service' and in sectioning `Bugs' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/trouble.texi:7: warning: node prev `Trouble' in menu `Bug Reporting' and in sectioning `Gcov' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/trouble.texi:7: warning: node up `Trouble' in menu `Bugs' and in sectioning  `Top' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc- 4.3.5/gcc/doc/service.texi:6: warning: node prev `Service' in menu `Trouble' and in  sectioning `Bugs' differ
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/service.texi:6: warning: node up `Service' in menu `Bugs' and in sectioning  `Top' differ
make[2]: *** [doc/gcc.info] Error 1
make[2]: Leaving directory `/home/gangadhar/Embedded/Embedded/buildroot- 2011.02/output/toolchain/gcc-4.3.5-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial'
make: *** [/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5-initial/.compiled] Error 2

では、どうすればこれらのエラーを克服し、クロス ツール コンパイラを正常にビルドできますか。

4

2 に答える 2

6

ビルドログを下からではなく上から読む必要があります - 投稿したフラグメントは完全な診断を提供しません.

あなたが参照しているエラー 2の前にエラー 1があり、どちらもおそらく、以前に示されたエラーのためにmakeが終了していることを示しているにすぎません。次のフラグメントのようになります。

in sectioning `Top' differ

ビルドを中止させた実際のエラー メッセージの終わりです。


[コメントと編集された質問に応じて2013年10月10日を編集]

make が中止される原因となった実際のエラーは次のとおりです。

/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/cppopts.texi:757: @itemx must follow @item

つまり、最初のmake エラーの直前のメッセージです。私が言ったように - 下からではなく、上から読んでください。

このファイルは、TeX マークアップ ドキュメント ファイルです。TeXについては何も知りませんが、ファイルを編集して修正するか、少なくともエラーを抑制することができると思います。または、ファイルの更新バージョンを取得するか、ビルドから完全に削除してください。GCC のドキュメントはオンラインで入手できるので、おそらくそれがなくても大丈夫です。

のTeX ドキュメント@itemxは次のとおりです。で始まるリストの 2 番目以降の項目をマークし@itemます。簡単に修正できると思います。

同様の問題が次のように表示されます。

/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:961: @itemx must follow @item
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/cppopts.texi:757: @itemx must follow @item
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/invoke.texi:8574: @itemx must follow @item
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4234: @subsection seen before @end table
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4263: @item outside of table or list
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4264: @itemx outside of table or list`
/home/gangadhar/Embedded/Embedded/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/doc/extend.texi:4277: unmatched `@end table

おそらく警告を修正することもできますが、これらのエラーがあるという事実は、これらのファイルがおそらく GNU GCC プロジェクトの外部で変更され、有効または正確ではない可能性があることを示唆しています。

于 2013-10-04T08:42:41.220 に答える