LFS
第一遍编译binutils,一下是错误信息。
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other fileindirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
安装 apt-get install texinfo, 版本信息texinfo (4.11.dfsg.1-4) ...,估计和网上帖子遇到的问题一样,版本太高了。
configure.ac里2405行:
| if ${MAKEINFO} --version " | egrep 'texinfo[^0-9]*([1-3][0-9]|4".[4-9]|[5-9])' >/dev/null 2>&1; then |
估 计原作者的意思是texinfo的版本,要么是10-39,要么是4.4+,要么是5+。但是哈,这个正则表达式的却将4.4+的意思表达成了 4.4-4.9,无语阿,一看我的texinfo的版本正好是4.11。郁闷。改之,将正则表达式改为'texinfo[^0-9]*([1-3] [0-9]|4\.[4-9]|4\.[1-9][0-9]*|[5-9])' 。 突然发现configure的6131行竟然也有上面两行代码,这明显违反了程序员的思想,一份代码只应该有一份实例嘛。将上面两处代码改掉。终于编译通过。
正则表达式,请勿随便复制粘贴,否则可能产生错误。我遇到的问题是把 \ 复制过来居然变成 ",仔细对比才发现。

浙公网安备 33010602011771号