+ -
当前位置:首页 → 问答吧 → 起步就被binutils拌倒

起步就被binutils拌倒

时间:2007-12-17

来源:互联网

我的系统是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

作者: yhyzh   发布时间: 2007-12-17

http://www.linuxquestions.org/questi...nutils-575412/

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

作者: yhyzh   发布时间: 2007-12-17

我安装了Texinfo flex bison,make是3.81版本的。

如何查找错误所在呢?

作者: yhyzh   发布时间: 2007-12-17

binutils-2.18 吾正使用中,没啥问题

是否有 patch 未打?主系统是啥?

作者: d00m3d   发布时间: 2007-12-18

"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

谢谢楼上两位.

Doom3d:补丁我都打了

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

可是问题依然老样子.

迷惑ing........

作者: yhyzh   发布时间: 2007-12-19

难道是用了新版本的texinfo?新版的texinfo在binutils-2.18和gcc-4.2.1 configure的时候检测不出来,它们只考虑了4.X这样的情况,4.11这样的点后面两位数的东西...它们检测不出来

作者: LanEast   发布时间: 2007-12-19

lenny 跟 unstable 裡的 texinfo 都是 4.11,但應該不會 unstable 可以,testing 卻不行吧,奇怪!

作者: d00m3d   发布时间: 2007-12-19

引用:
作者: LanEast
难道是用了新版本的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?

作者: yhyzh   发布时间: 2007-12-19


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])'
试试看

作者: LanEast   发布时间: 2007-12-19

这个问题其实binutils早就提供了相应的补丁,那句应该改为:

egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])'

作者: wen   发布时间: 2008-01-11

引用:
作者: wen
这个问题其实binutils早就提供了相应的补丁,那句应该改为:

egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])'
也不行!
郁闷,官方的patch都不行?

作者: wen   发布时间: 2008-01-11

改用 binutils-2.18 并打 binutils-2.18-configure-1.patch 应该可以了吧

http://www.linuxfromscratch.org/lfs/...ils-pass1.html

作者: d00m3d   发布时间: 2008-01-11

LFS 越来越详细了,赞。

兄弟换版本,记得要看book啊。呵呵。

作者: 晨想   发布时间: 2008-01-13