现在的位置: 首页 > 综合 > 正文

手工制作arm-linux-gcc交叉编译工具链Binutils时可能会出现的makeinfo编译错误

2013年07月28日 ⁄ 综合 ⁄ 共 867字 ⁄ 字号 评论关闭

在手工制作arm-linux-gcc交叉编译工具链过程中,编译Binutils时可能会出现makeinfo的错误。本人使用的是Fedora-2,在makeconfigure-host过程没有错误,但在make时编译出错,错误信息如下:

WARNING: `makeinfo' is missing on your system.  You shouldonly need it if you modified a `.texi' or `.texinfo' file, orany other file indirectly affecting the aspect of themanual.  The spurious call might also be the consequenceof
using a buggy `make' (AIX, DU, IRIX).  You might wantto install the `Texinfo' package or the `GNU make'package.  Grab either from any GNU archive site.

       本机使用的Texinfo是4.11版本(系统自带),后查得是configure和configure.ac中的版本定义出了问题。在configure的6130行和configure.ac的2405行均存在着如下的texinfor版本定义代码。(加粗的部分为定义的版本)

if ${MAKEINFO} --version "
       | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then

        其中4\.[4-9]表示的是支持4.4-4.9之间的几个版本,所以需要自己添加4\.[1-9][0-9]*,以支持4.11版本。即把'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])'编辑成'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|4\.[1-9][0-9]*|[5-9])'后保存,编译通过。

抱歉!评论已关闭.