QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4976|回复: 4

编译各种版本 gcc 出现找不到 C 编译器的毛病

[复制链接]
发表于 2014-6-24 11:59:13 | 显示全部楼层 |阅读模式
这个该怎么设置呢,编译 firefox 需要升级 icu 于是出现错误,为了编译 icu 刚升级 glibc 2.16 到 2.18
然后想重编译 gcc 一直出现错误:
checking for C compiler default output file name...
configure: error: in `/root/rpmbuild/BUILD/gcc-4.8.2/obj-x86_64-magic-linux/x86_64-magic-linux/32/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgomp] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/gcc-4.8.2/obj-x86_64-magic-linux'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/gcc-4.8.2/obj-x86_64-magic-linux'
make: *** [profiledbootstrap] Error 2
这个要怎么设置才能跳过错误
发表于 2014-6-24 13:59:41 | 显示全部楼层
See `config.log' for more details.
回复

使用道具 举报

 楼主| 发表于 2014-6-24 23:33:04 | 显示全部楼层
原帖由 jiangtao9999 于 2014-6-24 13:59 发表
See `config.log' for more details.

32 and 64 位交叉编译的 GCC 需要 32 位的 go 的 lib,麻烦,现在 se 的仓库又乱了。
回复

使用道具 举报

发表于 2014-6-25 08:39:33 | 显示全部楼层
原帖由 haulm 于 2014-6-24 23:33 发表

32 and 64 位交叉编译的 GCC 需要 32 位的 go 的 lib,麻烦,现在 se 的仓库又乱了。

如果是在64位上编译multilib的gcc,本来就需要32位的库的。
如果是在64位上编译32位的gcc,最好不要这么做,上i686编译机上编译比较稳妥。
回复

使用道具 举报

发表于 2014-6-25 08:49:22 | 显示全部楼层
原帖由 haulm 于 2014-6-24 11:33 PM 发表

32 and 64 位交叉编译的 GCC 需要 32 位的 go 的 lib,麻烦,现在 se 的仓库又乱了。

交叉编译出来的东西,当然需要全套32位的库了。
64 位上面编译出来的可以编译 32 位的 gcc ,它本身是 64 位的程序,运行不需要 32 ,但他编译 32 位的程序,需要 32 位的库。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-26 09:38 , Processed in 0.112854 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表