降低texinfo --编译GCC4.7.2遇到的问题

Building the toolchain recently started failing with an error:

	makeinfo --split-size=5000000 --no-split -I . -I /home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc \
		-I /home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc/include -o doc/cpp.info /home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc/cpp.texi; \
fi
/home/public/source/openwrt/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/gcc/doc/cppopts.texi:777: @itemx must follow @item

(fixing it in this one occasion is not enough, it keeps failing in many other places)
This is probably because texinfo was recently updated to version 5.0 on my system:

[daniel@earthship openwrt]$ which makeinfo
/usr/bin/makeinfo
[daniel@earthship openwrt]$ ls -l /usr/bin/makeinfo
lrwxrwxrwx 1 root root 8 Feb 17 08:32 /usr/bin/makeinfo -> texi2any
[daniel@earthship openwrt]$ ls -l /usr/bin/texi2any
-rwxr-xr-x 1 root root 51835 Feb 17 08:32 /usr/bin/texi2any
[daniel@earthship openwrt]$ texi2any --version
texi2any (GNU texinfo) 5.0

Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I guess the easiest way to solve this is to ship texinfo as part of the OpenWrt toolchain or just don't build the documentation for gcc.




  • 在ubuntu13里看起来它被升级到5了(很爱升级的ub)
  • 通过编译见识[1]可以装到老版本
wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz
tar -zxvf texinfo-4.13a.tar.gz
cd texinfo-4.13
./configure
make
sudo make install

见识

PropGCC build fails on Ubuntu 13.10 沿途见识[1]

Ok, as it turns out the easiest solution seems to be to manually downgrade texinfo to 4.13. Make sure that you've removed the current (5.0+) version before continuing.

wget  http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz
tar -zxvf texinfo-4.13a.tar.gz
cd texinfo-4.13
./configure
make
sudo make install

makeinfo --help
The last command should mention the version. Make sure it's 4.13. Next install PropGCC normally.


  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值