>>> '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'
* 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 4870: Called toolchain_src_compile
* environment, line 5396: Called gcc_src_compile
* environment, line 3094: Called gcc_do_make
* environment, line 2884: 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'.
__________
What does it mean, and how can I fix it???
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
that means that you forgot to copy the important part. You just copied the
pretty useless vanilla portage error. Not the real error some lines above that
one.
And based on a little searching, you may want to post emerge --info as
well. There appears to be a version of kernel that doesn't like this
gcc version. Note the word "appears".
Dale
:-) :-)
I do not know how much to include, but above this, everything seemed
to be ok to me:
_____________________________
-Wno-overlength-strings -DHAVE_CONFIG_H -I. -I.
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/.
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/
../include
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libcp
p/include
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libde
cnumber
-I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnu
mber/bid -I../libdecnumber insn-recog.c -o insn-recog.o
{standard input}: Assembler messages:
{standard input}:36051: Warning: end of file not at end of a line;
newline inserted
{standard input}:37071: Error: bad register name `%e'
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.3.2-r3/work/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory
`/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory
`/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build'
make: *** [bootstrap-lean] Error 2
...
____________________________________________
emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.2,
glibc-2.9_p20081201-r2, 2.6.22-vs2.2.0.7-gentoo x86_64)
=================================================================
System uname:
Linux-2.6.22-vs2.2.0.7-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-glibc2.2.5
Timestamp of tree: Mon, 06 Jul 2009 17:00:01 +0000
app-shells/bash: 3.2_p39
dev-lang/python: 2.5.4-r3
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.3-r2
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63
sys-devel/automake: 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs
protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran
gdbm iconv idn ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl
nptlonly openmp pam pcre perl pppd python readline reflection session
spl sse sse2 ssl sysfs tcpd unicode urandom xorg zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw
multi null plug rate route share shm softvol" APACHE2_MODULES="actions
alias auth_basic authn_alias authn_anon authn_dbm authn_default
authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic
nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
before you continue, could you try a kernel that is more recent - like from
2009?
No, I could not. BTW, the same gcc-update worked for 3 machines
with this very same kernel a few minutes ago. It just failed with
the fourth. It does not look like kernel problem to me...
Jarry
> -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnu
> mber/bid -I../libdecnumber insn-recog.c -o insn-recog.o
> {standard input}: Assembler messages:
> {standard input}:36051: Warning: end of file not at end of a line;
> newline inserted
> {standard input}:37071: Error: bad register name `%e'
> 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
> MAKEOPTS="-j2"
Can you try this again without -j2 in the make opts? The gcc build
process is enough of a pain to debug when you can see output
sequentially, running parallel makes makes it worse.
In your case, it failed trying to assemble insn-attrtab.o but the last
output on screen was from insn-recog.c on a different make branch. It
appears that the build process generated an incomplete insn-attrtab.c
file which cut off in the middle of an opcode, most likely in the middle
of a register name like %eax. Its possible that there was another error
buried up further in the output that got lost in the parallelizing.
--Mike
Now this is strange: I commented out that MAKEOPTS="-j2" in make.conf
and gcc compilled without any complaint. I did not change anything
else! Can't believe this. I will check it tomorrow again, with -j2
and without...
Jarry
>>> MAKEOPTS="-j2"
>> Can you try this again without -j2 in the make opts? The gcc build
>> process is enough of a pain to debug when you can see output
>> sequentially, running parallel makes makes it worse.
> Now this is strange: I commented out that MAKEOPTS="-j2" in make.conf
> and gcc compilled without any complaint. I did not change anything
> else! Can't believe this. I will check it tomorrow again, with -j2
> and without...
I can't explain why this happens but I do know that I've seen a number
of complex builds (especially gcc/glibc) that just randomly fail when
using a parallel make. I see this effect on FreeBSD moreso than Gentoo,
but I suspect that's only a question of scale.
--Mike
Try MAKEOPTS="-j1" - the default is still j2 if you just delete the
variable.
Ive also seen this a lot recently. Serialising the make process into
one thread helps.
BillK
> Try MAKEOPTS="-j1" - the default is still j2 if you just delete the
> variable.
>
> Ive also seen this a lot recently. Serialising the make process into
> one thread helps.
I do not know if "-j2" is default, but I just tested it once again:
with "-j2" gcc compilation failed. When I commented it in make.conf
out (did not explicitelly define "-j1"), compilation works. That is
very strange...
I compilled gcc many times, even this version (4.3.2-r3).
The only difference is, gcc wants to be re-compilled with
"nptl" flag now (that's why portage wants to "update" gcc).
Could nptl cause this problem?