当前位置: 首页 > 工具软件 > GNU texinfo > 使用案例 >

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

姬欣怡
2023-12-01

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.


 类似资料: