Osmocombb项目编译GnuArmToolchain中的GCC4.5.2时遇到recipe for target 'doc/cpp.info' failed(texinfo)错误的解决方法

 在编译Osmocom-bb的时候遇到这么一个问题,浏览了一些网站转载来两个解决方法  第一个没试过  第二个可行


关键内容大概是下面这样的(我的忘记存了 借用下别人的 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60961 ) 唯一不同的是 我用来编译的GCC是4.5.2的版本

make[1]: Entering directory '/home/ADMIN/cortex_m4/gcc-4.6.2/objdir/gcc'
if [ xinfo = xinfo ]; then \
        makeinfo --split-size=5000000 --no-split -I . -I ../../gcc/doc \
                -I ../../gcc/doc/include -o doc/cpp.info ../../gcc/doc/cpp.texi; \
fi
../../gcc/doc/cppopts.texi:772: @itemx must follow @item
Makefile:4270: recipe for target 'doc/cpp.info' failed
make[1]: *** [doc/cpp.info] Error 1
make[1]: Leaving directory '/home/ADMIN/cort ex_m4/gcc-4.6.2/objdir/gcc'
Makefile:5256: recipe for target 'all-gcc' failed
make: *** [all-gcc] Error 2


这个网站给出的解决方法是:

Jonathan Wakely     2014-04-25 11:59:24 UTC  
Older versions of GCC have .texi files that are incompatible with the current version of texinfo.

GCC 4.6 is no longer maintained or supported, so this is not going to be fixed now.

You can workaround the problem by adding MISSING=texinfo to the GCC configure command.

小弟水平有限不知道这行命令加在哪 谁知道能提示一下  不胜感激


然后在这个网站寻到另一个方法 http://92ez.com/?action=show&id=1(GSM Sniffer 初探之小试牛刀[kali linux])

在这个网站下也有人遇到了同样的问题  给出了另一种解决办法的思路:

1.认为是texinfo这个软件与GCC兼容性不好  需要卸载以后GCC才能正确编译

2.但是其后编译newlib又需要这个

3.解决办法是 先卸载texinfo  然后执行gun-arm-tool.2.sh

4.遇到依赖错误了 停下来把texinfo装回去  再次执行gun-arm-tool.2.sh


#Another resloving way

#First,uninstall texinfo
sudo apt remove texinfo

#Then,excute *.sh shell script
sudo ./gnu-arm-build.2.sh

#When you meet a error about lacking texinfo at compiling newlib, reinstall texinfo
sudo apt install texinfo 

#Finally, excute script again
sudo ./gnu-arm-build.2.sh




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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值