|
|
发现本地化后编译有印象,就我碰到两个问题都是和本地化有关的。
对于第1个问题,通过google找到解决方法
(参考:lophyxp.blogspot.com/2009/07/localegcc.html),由于这个网页我这里被屏蔽了,只能看到快照,所以我就转一下:
在emerge gcc的时候,前面加LC_ALL="C"。- LC_ALL="C" emerge --oneshot gcc
复制代码
该网页参考的网址
http://bugs.gentoo.org/show_bug.cgi?id=236762
对于第2个问题,仿照第1个问题的解决思路,我切换一下locale。就能编译成功了
碰到的问题情况:
(1)gcc编译不过(在执行emerge --update --deep --newuse world)
* Messages for package sys-devel/gcc-4.3.2-r3:
*
* ERROR: sys-devel/gcc-4.3.2-r3 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4879: Called toolchain_src_compile
* environment, line 5405: Called gcc_src_compile
* environment, line 3103: Called gcc_do_make
* environment, line 2893: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
* The die message:
* emake failed with bootstrap-lean
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'.
*
(2)octave编译不通过(当然是emerge -av octave后)
I try to install Octave in my laptop.
I use the command: emerge -v octave
And those are information reported that the install fail:
x86_64-pc-linux-gnu-gfortran -c -fPIC -O lennob.f -o pic/lennob.o
f951: 编译器内部错误:在 error_print 中,于 fortran/error.c:492
请提交一份完整的错误报告,
如有可能请附上经预处理后的源文件。
具体步骤请参见 <http://bugs.gentoo.org/>。
make[3]: *** [pic/lennob.o] 错误 1
make[3]: *** 正在等待未完成的任务....
make[3]: Leaving directory
`/var/tmp/portage/sci-mathematics/octave-3.0.3/work/octave-3.0.3/libcruft/ranlib'
make[2]: *** [ranlib] 错误 2
make[2]: Leaving directory
`/var/tmp/portage/sci-mathematics/octave-3.0.3/work/octave-3.0.3/libcruft'
make[1]: *** [libcruft] 错误 2
make[1]: Leaving directory
`/var/tmp/portage/sci-mathematics/octave-3.0.3/work/octave-3.0.3'
make: *** [all] 错误 2
^[[31;01m*^[[0m
^[[31;01m*^[[0m ERROR: sci-mathematics/octave-3.0.3 failed.
^[[31;01m*^[[0m Call stack:
^[[31;01m*^[[0m ebuild.sh, line 49: Called src_compile
^[[31;01m*^[[0m environment, line 3234: Called die
^[[31;01m*^[[0m The specific snippet of code:
^[[31;01m*^[[0m emake || die "emake failed";
^[[31;01m*^[[0m The die message:
^[[31;01m*^[[0m emake failed
^[[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/sci-mathematics/octave-3.0.3/temp/build.log'.
^[[31;01m*^[[0m The ebuild environment file is located at
'/var/tmp/portage/sci-mathematics/octave-3.0.3/temp/environment'.
^[[31;01m*^[[0m |
|