gcc: c-parse.c: No such file or directory 的解决方法

本文解决在安装SESC时遇到的gcc编译错误问题,通过更新bison版本并重新编译,成功解决了c-parse.c文件不存在及无输入文件导致的错误。

安装SESC时的

编译  build-2-gcc-core 出现了这样的提示:

gcc: c-parse.c: No such file or directory

gcc: no input files
make[1]: *** [c-parse.o] Error 1
make[1]: Leaving directory `/home/horicul/sescutils/build-mipseb-linux/obj/gcc-core-build/gcc’

make: *** [all-gcc] Error 2


解决方法:

这个问题是bison版本不对引起的,删掉你现在的版本

sudo apt-get remove bison

然后在http://ftp.gnu.org/gnu/bison/下载2.0版

解压后

./configure

make

sudo make install

安装完后重新编译build-2-gcc-core 顺利完成

 



/opt/arm-ca7-linux-uclibcgnueabihf-10.4.0/usr/bin/arm-linux-ar cru libm4.a gl_avltree_oset.o binary-io.o c-ctype.o c-stack.o c-strcasecmp.o c-strncasecmp.o clean-temp.o cloexec.o close-stream.o closein.o closeout.o dirname.o basename.o dirname-lgpl.o basename-lgpl.o stripslash.o execute.o exitfail.o fatal-signal.o fd-hook.o fd-safer-flag.o dup-safer-flag.o filenamecat.o filenamecat-lgpl.o fopen-safer.o freading.o gl_linkedhash_list.o gl_list.o localcharset.o glthread/lock.o malloca.o math.o memchr2.o gl_oset.o pipe2.o pipe2-safer.o printf-frexp.o printf-frexpl.o progname.o quotearg.o sig-handler.o spawn-pipe.o mkstemp-safer.o tempname.o glthread/threadlib.o glthread/tls.o tmpdir.o unistd.o dup-safer.o fd-safer.o pipe-safer.o verror.o version-etc.o version-etc-fsf.o wait-process.o wctype-h.o xmalloc.o xalloc-die.o gl_xlist.o xmalloca.o gl_xoset.o xprintf.o xsize.o xstrndup.o xvasprintf.o xasprintf.o asnprintf.o asprintf.o fclose.o fcntl.o fflush.o fpurge.o freadahead.o fseek.o fseeko.o isnanl.o printf-args.o printf-parse.o strstr.o vasnprintf.o vasprintf.o /bin/bash: /opt/arm-ca7-linux-uclibcgnueabihf-10.4.0/usr/bin/arm-linux-ar: No such file or directory Makefile:1669: recipe for target 'libm4.a' failed make[7]: *** [libm4.a] Error 127 make[7]: Leaving directory '/home/zhang/NVMP/nvmp/build_dir/host/m4-1.4.17/lib' Makefile:1602: recipe for target 'all' failed make[6]: *** [all] Error 2 make[6]: Leaving directory '/home/zhang/NVMP/nvmp/build_dir/host/m4-1.4.17/lib' Makefile:1506: recipe for target 'all-recursive' failed make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory '/home/zhang/NVMP/nvmp/build_dir/host/m4-1.4.17' Makefile:1461: recipe for target 'all' failed make[4]: *** [all] Error 2 make[4]: Leaving directory '/home/zhang/NVMP/nvmp/build_dir/host/m4-1.4.17' Makefile:28: recipe for target '/home/zhang/NVMP/nvmp/build_dir/host/m4-1.4.17/.built' failed make[3]: *** [/home/zhang/NVMP/nvmp/build_dir/host/m4-1.4.17/.built] Error 2 make[3]: Leaving directory '/home/zhang/NVMP/nvmp/tools/m4' tools/Makefile:232: recipe for target 'tools/m4/compile' failed make[2]: *** [tools/m4/compile] Error 2 make[2]: Leaving directory '/home/zhang/NVMP/nvmp' tools/Makefile:195: recipe for target '/home/zhang/NVMP/nvmp/staging_dir/target-arm-openwrt-linux-gnueabi-c225v1/stamp/.tools_install_nnnnn' failed make[1]: *** [/home/zhang/NVMP/nvmp/staging_dir/target-arm-openwrt-linux-gnueabi-c225v1/stamp/.tools_install_nnnnn] Error 2 make[1]: Leaving directory '/home/zhang/NVMP/nvmp' /home/zhang/NVMP/nvmp/include/toplevel.mk:277: recipe for target 'world' failed 怎么解决呢?
最新发布
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值