Cannot build gcc-4.4.3: fenv_t has not been declared

在尝试使用crosstool-ng 1.21.0构建gcc 4.4.3时遇到错误,阶段cc_for_host失败,原因在于gcc源代码中的BUG,fenv_t没有被声明。解决方案是修改Gcc-4.4.3/libstdc++-v3/include/Makefile.in和Makefile.am文件的相关行。参考链接指向gcc官方bug报告和源代码修订历史。
摘要由CSDN通过智能技术生成

Version info:

crosstoll-ng : 1.21.0
build tool versioin: gcc 4.4.3
want to build native gcc 4.4.3

Error:

Fail in stage: cc_for_host .
Error info: fenv_t has not been declared.

Cause:

BUG of gcc-4.4.3 source code .

Solution:

Modify file:
1. Gcc-4.4.3/libstdc++-v3/include/Makefile.in (Mojor File.)
2. Gcc-4.4.3/libstdc++-v3/include/Makefile.am (Automake Configure File.)
Edit the line below:

PCHFLAGS=-x c++-header $(CXXFLAGS)

to:

PCHFLAGS=-x c
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值