小编Max*_*gan的帖子

如何处理使用 GCC 6.2.1 编译 GCC 4.7.0 的错误

我正在使用 Arch linux,我需要 GCC 4.7.0 来上课。

目前我的系统上只安装了 GCC 6.2.1。

我正确地遵循了所有安装说明,但在运行初始make.

$ make
.
.
In file included from /home/flounder/src/gcc-4.7.0/gcc-4.7.0/gcc/cp/except.c:987:0:
cfns.gperf: At top level:
cfns.gperf:101:1: error: ‘gnu_inline’ attribute present on ‘libc_name_p’
cfns.gperf:26:14: error: but not here
.
.
make[3]: *** [Makefile:1055: cp/except.o] Error 1
make[3]: Leaving directory '/home/flounder/src/gcc_compile/gcc'
make[2]: *** [Makefile:4101: all-stage1-gcc] Error 2
make[2]: Leaving directory '/home/flounder/src/gcc_compile'
make[1]: *** [Makefile:19342: stage1-bubble] Error 2
make[1]: Leaving directory '/home/flounder/src/gcc_compile'
make: *** [Makefile:898: all] Error 2
Run Code Online (Sandbox Code Playgroud)

我已经读过,当尝试使用现代版本构建旧版本的 GCC 时,可能会发生这种情况,因为:

GCC 会随着版本的发展增加新的错误,因此旧版本的 …

compiling gcc cross-compilation

4
推荐指数
2
解决办法
5987
查看次数

标签 统计

compiling ×1

cross-compilation ×1

gcc ×1