Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 283307

Summary: emerge dev-libs/gmp-4.3.1 fails with internal compiler error
Product: Gentoo Linux Reporter: Pedro Ferreira <ilzogoiby>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pedro Ferreira 2009-08-31 09:47:02 UTC
emerge gmp fails with an internal compiler error.

Reproducible: Always

Steps to Reproduce:
1. emerge gmp
2. FAILS

Actual Results:  
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_pow_1 -march=amdfam10 -O2 -pipe -c pow_1.c  -fPIC -DPIC -o .libs/pow_1.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_pow_1 -march=amdfam10 -O2 -pipe -c pow_1.c -o pow_1.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo rootrem | sed 's/_$//'`    -march=amdfam10 -O2 -pipe -c -o rootrem.lo rootrem.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_rootrem -march=amdfam10 -O2 -pipe -c rootrem.c  -fPIC -DPIC -o .libs/rootrem.o
rootrem.c: In function 'mpn_rootrem_internal':
rootrem.c:407: internal compiler error: in print_operand_address, at config/i386/i386.c:9291
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:205: Warning: partial line at end of file ignored
make[2]: *** [rootrem.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1/mpn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/gmp-4.3.1/work/gmp-4.3.1'
make: *** [all] Error 2
 * 
 * ERROR: dev-libs/gmp-4.3.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2834:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * 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/dev-libs/gmp-4.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gmp-4.3.1/temp/environment'.
 * 



pferreir@pcituds01 ~ $ cat /etc/make.conf
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}"

USE="X xvid hal dbus gnome gtk qt kde dvd alsa cdr svg sse sse2 sse3 mmx aac aalib avi jpeg png mp3 ogg udev java usb a52 afs mmx ipod theora jabber aac v4l dts dv java xcomposite speex aalib samba apache2 3dnow emacs dvb vorbis avahi flac jack mailwrapper xinerama -nls vim-syntax consolekit"

APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"

ACCEPT_KEYWORDS="~x86"
Comment 1 Patrick Lauer gentoo-dev 2009-09-05 09:35:38 UTC
Please attach emerge --info output.
Comment 2 Alessandro Pezzato 2009-09-08 10:34:01 UTC
Same error compiling gmp-4.2.4 with -march=amdfam10. No problems with -march=k8

----
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sqrtrem -O2 -march=amdfam10 -pipe -fomit-frame-pointer -msse3 -c sqrtrem.c  -fPIC -DPIC -o .libs/sqrtre
m.o
rootrem.c: In function '__gmpn_rootrem':
rootrem.c:175: internal compiler error: in print_operand_address, at config/i386/i386.c:9291
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
{standard input}: Assembler messages:
{standard input}:44: Warning: partial line at end of file ignored
make[2]: *** [rootrem.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sqrtrem -O2 -march=amdfam10 -pipe -fomit-frame-pointer -msse3 -c sqrtrem.c -o sqrtrem.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/gmp-4.2.4/work/gmp-4.2.4/mpn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/gmp-4.2.4/work/gmp-4.2.4'
make: *** [all] Error 2
----
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-09-10 19:56:21 UTC
A truckload of bugfixes were added in gcc-4.3.3 for amdfam10 march. That's why we're asking for emerge --info. Someone?
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-09-10 19:57:57 UTC
Looks like the same error, anyway.

*** This bug has been marked as a duplicate of bug 265464 ***