FOREWORD :我的构建系统基于Ubuntu 14.04 LTS服务器版
我在为 arm-none-eabi 工具链交叉编译binutils时遇到了一个常见问题。
从以下网站下载资源后
我解压缩了tarball并修补了zlib:
$ cd ./gcc-arm-none-eabi-4_8-2014q3-20140805/src
$ find -name '*.tar.*' | xargs -I% tar -xf %
$ cd zlib-1.2.5
$ patch -p1 <../zlib-1.2.5.patch
$ cd ../../
根据捆绑的PDF指南的说明。然后我应用了这个sed
补丁:
sed -i -e 's/@colophon/@@colophon/' -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
并启动了./build-prerequisites.sh --skip_mingw32
和./build-toolchain.sh --skip_mingw32
脚本。
尽管./build-prerequisites.sh --skip_mingw32
工作正常,但工具链脚本以binutils安装过程中的错误结束:
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4416: warning: @itemx should not begin @table
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4424: @itemx must follow @item
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4428: @itemx must follow @item
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4434: @itemx must follow @item
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4438: @itemx must follow @item
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4448: @itemx must follow @item
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:2404: warning: node next `ranlib' in menu `readelf' and in sectioning `size' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:2482: warning: node prev `size' in menu `readelf' and in sectioning `ranlib' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:2706: warning: node next `strip' in menu `elfedit' and in sectioning `c++filt' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3259: warning: node next `nlmconv' in menu `windres' and in sectioning `windmc' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3364: warning: node next `windmc' in menu `dlltool' and in sectioning `windres' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3364: warning: node prev `windmc' in menu `windres' and in sectioning `nlmconv' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3525: warning: node next `windres' in menu `windmc' and in sectioning `dlltool' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3525: warning: node prev `windres' in menu `nlmconv' and in sectioning `windmc' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3719: warning: node next `dlltool' in menu `Common Options' and in sectioning `readelf' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:3719: warning: node prev `dlltool' in menu `windmc' and in sectioning `windres' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4122: warning: node next `readelf' in menu `size' and in sectioning `elfedit' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4122: warning: node prev `readelf' in menu `ranlib' and in sectioning `dlltool' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4376: warning: node next `elfedit' in menu `c++filt' and in sectioning `Common Options' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4376: warning: node prev `elfedit' in menu `strip' and in sectioning `readelf' differ
/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/src/binutils/binutils/doc/binutils.texi:4470: warning: node prev `Common Options' in menu `dlltool' and in sectioning `elfedit' differ
make[3]: *** [binutils.html] Error 1
make[3]: Leaving directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils/binutils/doc'
Making html in po
make[3]: Entering directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils/binutils/po'
make[3]: Nothing to be done for `html'.
make[3]: Leaving directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils/binutils/po'
make[3]: Entering directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils/binutils'
make[3]: Nothing to be done for `html-am'.
make[3]: Leaving directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils/binutils'
make[2]: *** [html-recursive] Error 1
make[2]: Leaving directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils/binutils'
make[1]: *** [html-binutils] Error 1
make[1]: Leaving directory `/home/arturo/ARM_CROSS/gcc-arm-none-eabi-4_8-2014q3-20140805/build-native/binutils'
make: *** [do-install-html] Error 2
我还使用make
替换make MAKEFINFO=true
次来编辑了第二个脚本,但我收到了此错误...
....有关它的任何建议吗?到目前为止,我一直在谷歌搜索,发现这些是在使用Ubuntu发行版时遇到的常见问题,但我仍然无法找到解决方案。
提前致谢,Arturo