Решил в KVM'е на работе компильнуть генту, чтобы с неё брать бинарные пакеты на ноутбук. Не на ноутбуке же канпелять, в самом деле. Запустил виртуальную машину (памяти 1024 Мб), загрузился с iso'шника Sysrescuecd, создал раздел, файловую систему, примонтировал proc и dev, распаковал stage3-x86_64 и portage, выбрал profile, написал make.conf, короче, сделал всё что нужно по handbook'у. Запустил emerge --sync && emerge -e system, но до конца сборка не дошла, sys-devel/gcc-4.4.5 не собирается. Пробовал более поздние версии gcc, тоже не собираются. Пробовал взять stage3 от другой даты, тоже не помогает. Последние ошибки:
/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -march=k8 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/gcc/../libdecnumber/bid -I../libdecnumber insn-recog.c -o insn-recog.o
{standard input}: Assembler messages:
{standard input}:132613: Warning: end of file not at end of a line; newline inserted
{standard input}:134520: Error: open CFI at the end of file; missing .cfi_endproc directive
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[3]: *** [insn-attrtab.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod gfortran.pod
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
* ERROR: sys-devel/gcc-4.4.5 failed (compile phase):
* emake failed with bootstrap-lean
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 4831: Called toolchain_src_compile
* environment, line 5426: Called gcc_src_compile
* environment, line 3017: Called gcc_do_make
* environment, line 2824: 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}";
*
* If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.5',
* the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.5'.
* The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.4.5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.4.5/temp/environment'.
* S: '/var/tmp/portage/sys-devel/gcc-4.4.5/work/build'
>>> Failed to emerge sys-devel/gcc-4.4.5, Log file:
>>> '/var/tmp/portage/sys-devel/gcc-4.4.5/temp/build.log'