交叉编译 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:
         
         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:
         
Makefile:486: recipe for target 'gdb.info' failed
 

解决方案为:apt-get install texinfo

参见错误提示:You might want to install the Texinfo package:
                         

你可能感兴趣的:(随笔)