|
|
目前系统升级时更新GCC
还需要按照官方文档http://www.gentoo.org/doc/zh_cn/gcc-upgrading.xml里写的这样做吗?
现在的GCC是否会自动切换到更高的版本?
GCC编译错误
下面是日志文件
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:35.5:
do i = 1, c
1
Error: Syntax error in array constructor at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:36.27:
if (r <= int_infos (i) % range) then
1
Error: Syntax error in IF-expression at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:37.6:
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:37.6:
_gfortran_selected_int_kind = int_infos (i) % kind
1
Error: Unclassifiable statement at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:39.7:
end if
1
Error: Expecting END FUNCTION statement at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:40.5:
end do
1
Error: Expecting END FUNCTION statement at (1)
make[3]: *** [selected_int_kind.lo] 错误 1
make[3]: *** 正在等待未完成的任务....
libtool: compile: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i$
libtool: compile: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i$
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/i686-pc-linux-gnu/libgfortran'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/i686-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] 错误 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build'
make: *** [bootstrap-lean] 错误 2
^[[31;01m*^[[0m
^[[31;01m*^[[0m ERROR: sys-devel/gcc-4.3.2-r3 failed.
^[[31;01m*^[[0m Call stack:
^[[31;01m*^[[0m ebuild.sh, line 48: Called src_compile
^[[31;01m*^[[0m environment, line 4767: Called toolchain_src_compile
^[[31;01m*^[[0m environment, line 5288: Called gcc_src_compile
^[[31;01m*^[[0m environment, line 3061: Called gcc_do_make
^[[31;01m*^[[0m environment, line 2852: Called die
^[[31;01m*^[[0m The specific snippet of code:
^[[31;01m*^[[0m emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with $$
^[[31;01m*^[[0m The die message:
^[[31;01m*^[[0m emake failed with bootstrap-lean
^[[31;01m*^[[0m
^[[31;01m*^[[0m emake failed with bootstrap-lean
^[[31;01m*^[[0m
^[[31;01m*^[[0m If you need support, post the topmost build error, and the call stack if relevant.
^[[31;01m*^[[0m A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'.
^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'.
^[[31;01m*^[[0m
想问下大虾们,升级GCC需要些什么做些什么步骤,以及上述问题如何解决。 |
|