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

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

帅德惠
2023-12-01

 在编译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




 类似资料: