1. 程式人生 > >交叉編譯 gdb-8.1.1

交叉編譯 gdb-8.1.1

工具鏈:arm-linux-gnueabihf-***

下載路徑:http://software-dl.ti.com/processor-sdk-linux/esd/AM437X/latest/index_FDS.html

 

gdb原始碼

下載路徑:ftp://sourceware.org/pub/gdb/releases/

                  ftp://sourceware.org/pub/gdb/releases/gdb-8.1.1.tar.xz

 

解壓縮

xz -d 

gdb-8.1.1.tar.xz

tar -xf gdb-8.1.1.tar

 

編譯

./configure --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --program-prefix=arm-linux --prefix=/opt/gdb

make

make install

 

 

 

 

make install過程遇到如下錯誤:

make[4]: Entering directory '/home/hudson/download/gdb-8.1.1/gdb'
make[5]: Entering directory '/home/hudson/download/gdb-8.1.1/gdb/doc'
/home/hudson/download/gdb-8.1.1/missing makeinfo --split-size=5000000 --split-size=5000000   -I ./../../readline/doc -I ./../mi -I . \
    -o gdb.info ./gdb.texinfo
/home/hudson/download/gdb-8.1.1/missing: 81: /home/hudson/download/gdb-8.1.1/missing: makeinfo: not found
WARNING: 'makeinfo' is missing on your system.
         You should only need it if you modified a '.texi' file, or
         any other file indirectly affecting the aspect of the manual.
         You might want to install the Texinfo package:
         <http://www.gnu.org/software/texinfo/>
         The spurious makeinfo call might also be the consequence of
         using a buggy 'make' (AIX, DU, IRIX), in which case you might
         want to install GNU make:
         <http://www.gnu.org/software/make/>
Makefile:486: recipe for target 'gdb.info' failed
 

解決方案為:apt-get install texinfo

參見錯誤提示:You might want to install the Texinfo package:
                         <http://www.gnu.org/software/texinfo/>