|
|
在一台小机器上装gentoo ,CPU是VIA C3 的,用机器自己编译,龟速实在无法忍受,i686的光盘都不能引导,只能用install-x86-minimal-2008.0_beta2,然后用stage3+portage装,因为stage3-x86里面默认的gcc是i486的,看了下wiki,这个U可以用i586,所以想把gcc重新编译一下,但总是遇到这个错误:
-o insn-attrtab.o
{standard input}: Assembler messages:
{standard input}:36407: Warning: end of file not at end of a line; newline inserted
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [insn-attrtab.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make: *** [profiledbootstrap] Error 2
*
* ERROR: sys-devel/gcc-4.1.2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4530: Called toolchain_src_compile
* environment, line 5001: Called gcc_src_compile
* environment, line 2883: Called gcc_do_make
* environment, line 2713: 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 profiledbootstrap
*
* 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.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.1.2/temp/environment'.
*
* Messages for package sys-devel/gcc-4.1.2:
* This profile has not been tested thoroughly and is not considered to be
* a supported server profile at this time. For a supported server
* profile, please check the Hardened project (http://hardened.gentoo.org).
* This profile is merely a convenience for people who require a more
* minimal profile, yet are unable to use hardened due to restrictions in
* the software being used on the server. This profile should also be used
* if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
* applies to you, then it doesn't and you should probably be using
* Hardened, instead.
*
* ERROR: sys-devel/gcc-4.1.2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4530: Called toolchain_src_compile
* environment, line 5001: Called gcc_src_compile
* environment, line 2883: Called gcc_do_make
* environment, line 2713: 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 profiledbootstrap
*
再贴一下我的make.conf:
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=c3 -m3dnow -mmmx -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="sis vesa"
#ALSA_CARDS=""
LINGUAS="zh_CN zh en_US"
FEATURES="sandbox ccache parallel-fetch "
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache/"
#DISTCC_DIR="${PORTAGE_TMPDIR}/portage/.distcc"
DISTCC_DIR="/var/tmp/portage/.distcc"
USE="-X acpi -alsa -arts avi apache2 bzip2 cjk -cups cvs dbus esd ffmpeg flash ftp gif hal immqt-bc jpeg lirc mad midi mmx mp3 mpeg mplayer msn mysql nls nptl nptlonly ogg opengl oss png posix pcre -qt quicktime readline real samba spell session svg svga truetype truetype-fonts udev unicode usb userlocales utf8 vcd win32codecs xine xv -doc -gtk -gtk2 -gnome -ipv6 -kde
-gnome vhosts zh_CN
ssl
php libwww xml"
ACCEPT_KEYWORDS="x86"
FETCHCOMMAND="/usr/bin/wget -t inf -T 60 --passive-ftp \${URI} -P \${DISTDIR}"
RESUMECOMMAND="/usr/bin/wget -c -t inf -T 60 --passive-ftp \${URI} -P \${DISTDIR}"
SYNC="rsync://mirror.averse.net/gentoo-portage"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://linux.ntcu.net/ftp/dists/gentoo \
http://ftp.ncnu.edu.tw/Linux/Gentoo http://mirror.gentoo.gr.jp"
实在是很无奈了,我现在是在虚拟机里面直接用整个IDE硬盘,装好系统后再把硬盘装回去,没办法,出此下策,用其他方法我还没那实力, |
|