LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2489|回复: 13

起步就被binutils拌倒

[复制链接]
发表于 2007-12-17 16:56:55 | 显示全部楼层 |阅读模式
我的系统是lenny,编译binutils 2.17 2.18都出现:

WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly 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.
make[3]: *** [bfd.info] Error 1
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd/doc'
Making info in po
make[3]: Entering directory `/mnt/clfs/sources/binutils-build/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd/po'
make[3]: Entering directory `/mnt/clfs/sources/binutils-build/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/mnt/clfs/sources/binutils-build'
make: *** [all] Error 2
 楼主| 发表于 2007-12-17 18:15:25 | 显示全部楼层
http://www.linuxquestions.org/qu ... ng-binutils-575412/

这个问题和我的基本一致,那帮老外讨论了半天,也没有真正解决问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-17 18:19:38 | 显示全部楼层
我安装了Texinfo flex bison,make是3.81版本的。

如何查找错误所在呢?
回复 支持 反对

使用道具 举报

发表于 2007-12-18 07:10:26 | 显示全部楼层
binutils-2.18 吾正使用中,没啥问题

是否有 patch 未打?主系统是啥?
回复 支持 反对

使用道具 举报

发表于 2007-12-18 11:39:51 | 显示全部楼层
"po" , 楼主的主系统装gettext了吗?
debian下    apt-get install  g++  autoconf automake libtool pkg-config gawk bison byacc flex gettext  ncurses-base  ncurses-bin  libncurses5  libncurses5-dev
这些默认没安装,装了之后做LFS/CLFS系列没什么问题了。
etch,lenny,sid都没什么问题的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-18 21:24:23 | 显示全部楼层
谢谢楼上两位.

Doom3d:补丁我都打了

不开花:你建议安装的包我都安装了.

可是问题依然老样子.

迷惑ing........
回复 支持 反对

使用道具 举报

发表于 2007-12-18 21:59:42 | 显示全部楼层
难道是用了新版本的texinfo?新版的texinfo在binutils-2.18和gcc-4.2.1 configure的时候检测不出来,它们只考虑了4.X这样的情况,4.11这样的点后面两位数的东西...它们检测不出来
回复 支持 反对

使用道具 举报

发表于 2007-12-19 07:36:40 | 显示全部楼层
lenny 跟 unstable 裡的 texinfo 都是 4.11,但應該不會 unstable 可以,testing 卻不行吧,奇怪!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-19 09:41:46 | 显示全部楼层
Post by LanEast;1797300
难道是用了新版本的texinfo?新版的texinfo在binutils-2.18和gcc-4.2.1 configure的时候检测不出来,它们只考虑了4.X这样的情况,4.11这样的点后面两位数的东西...它们检测不出来


这位兄弟正解!

我现在采用一种投机的解决办法:将texinfo4.11卸载,换用texinfo 4.8,问题解决.

这不是一种好的解决办法,我应该先停下来,尝试为binutils的configure的配置脚本写个补丁,问题出在这句:
    # For an installed makeinfo, we require it to be from texinfo 4.4 or
       # higher, else we use the "missing" dummy.
       if ${MAKEINFO} --version \
          | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])'
>/dev/null 2>&1; then
         :
       else
         MAKEINFO="$MISSING makeinfo"
       fi


  刚才试着改了改,都不成功,惭愧,现在觉得基础(如正则表达......)的重要性!

有哪位能改改然后给binutils提交这个patch?
回复 支持 反对

使用道具 举报

发表于 2007-12-19 15:58:50 | 显示全部楼层

egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])'
改成
egrep 'texinfo[^0-9]*([1-3][0-9]|4\.([4-9]|[1-9][0-9])|[5-9])'
试试看
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表