Ricevo errori (errore 2) durante la creazione di cross-compiler toolchain per ARM

SGG 10/03/2013. 2 answers, 5.833 views
compiler-construction embedded arm cross-compiling embedded-linux

Voglio costruire una toolchain di compilatori incrociati usando le utilità . Così ho scaricato tutti i file tar . poi ho cambiato la directory root di build padre.

quindi mi sono configurato per ARM & ARM 920T. Ho deselezionato tutte le opzioni che sono nelle build options ---> e nella tool chain---> (usando make menuconfig )

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

Building Options

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 

TOOL CHAIN

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)  ---> 

Corro a make .

Sta dando un errore qui sotto.

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 

Quindi, come posso superare questi errori e costruire con successo il compilatore di strumenti cross.

2 Answers


Clifford 10/10/2013.

È necessario leggere i registri di generazione dall'alto, non dal basso: il frammento che hai pubblicato non fornisce la diagnostica completa.

L' Error 2 fai riferimento è preceduto da un Error 1 ed entrambi sono probabilmente solo indicazioni che make sta terminando a causa di un errore previously indicato. Sembra il seguente frammento:

in sectioning `Top' differ 

è la fine di un messaggio di errore che ha causato l'interruzione della build.


[Modifica 10Oct2013 in risposta alla domanda di commento e modificata]

L'errore effettivo che ha causato il make to abort è qui:

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

cioè l'immediatezza del messaggio che precede il first errore di fabbricazione. Come ho detto - leggi dall'alto, non dal basso.

Il file è un file di documentazione mark-up TeX. Non so nulla di TeX, ma immagino che potresti modificare il file per correggere o almeno sopprimere l'errore. In alternativa, ottieni una versione aggiornata del file o rimuovila del tutto dalla build. Dal momento che la documentazione di GCC è disponibile on-line, in ogni caso è possibile fare a meno di ciò.

Ecco la documentazione di TeX per @itemx . Segna il secondo e i successivi elementi in una lista iniziata da @item . Immagino che sarà facile da risolvere.

problemi simili appaiono nel modo seguente:

/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 

Potresti anche correggere gli avvertimenti, ma il fatto che tu abbia questi errori suggerisce che questi file sono stati forse modificati al di fuori del progetto GNU GCC e potrebbero non essere più validi o accurati.


Rob Latham 07/18/2014.

Hai ancora bisogno di una risposta 9 mesi dopo il fatto?

Il tuo texinfo è troppo nuovo. Se riesci a eseguire il downgrade a 4.13a, non incontrerai più questo problema.

Related questions

Hot questions

Language

Popular Tags