开发者社区> 问答> 正文

lfs7.6,第一次编译gcc-4.9.1源码,出错:? 400 报错

lfs7.6,第一次编译gcc-4.9.1源码,出错:? 400 报错

lfs7.6,第一次编译gcc-4.9.1源码,出现问题:

make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnubgcc'
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnubgcc'
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[2]: Entering directory `/mnt/lfs/sources/gcc-build'
make[3]: Entering directory `/mnt/lfs/sources/gcc-build'
rm -f stage_current
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[2]: Entering directory `/mnt/lfs/sources/gcc-build'
Configuring stage 2 in ./intl
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /bin/install -c
checking whether NLS is requested... no
checking for msgfmt... /bin/msgfmt
checking for gmsgfmt... /bin/msgfmt
checking for xgettext... /bin/xgettext
checking for msgmerge... /bin/msgmerge
checking for x86_64-unknown-linux-gnu-gcc...  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnub/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include   
checking for C compiler default output file name... 
configure: error: in `/mnt/lfs/sources/gcc-build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
root:/mnt/lfs/sources/gcc-build# make install
make[1]: Entering directory `/mnt/lfs/sources/gcc-build'
/bin/sh ../gcc-4.9.1/mkinstalldirs /tools /tools
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/fixincludes'
make[2]: *** No rule to make target `install'.  Stop.
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/fixincludes'
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [install] Error 2

展开
收起
优选2 2020-06-05 16:44:01 857 0
1 条回答
写回答
取消 提交回答
  • 使用Fedora-server-21,成功编译了gcc-4.9.1,原因是LFS-BOOK的host system 的glibc版本是2.20,所使用的参数也是对应的;经过搜索资料和实验,发现fedora21的glibc版本是2.20;今天晚上试了一下,在虚拟机里安装,Fedora21后,经过设定,满足了host system requirements后,编译gcc-4.9.1成功######LFS7.6,可以继续下去了哈哈######C compiler cannot create executables 是不是找不到链接器, 是不是交叉编译,把环境检查一下,然后看看configure参数是否有问题。######使用Fedora-server-21,成功编译了gcc-4.9.1,原因是LFS-BOOK的host system 的glibc版本是2.20,所使用的参数也是对应的;经过搜索资料和实验,发现fedora21的glibc版本是2.20;今天晚上试了一下,在虚拟机里安装,Fedora21后,经过设定,满足了host system requirements后,编译gcc-4.9.1成功,哈哈!######我再看下环境吧,configure参数应该不会有错,谢谢你,我再试一试

    2020-06-05 16:44:20
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载