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

Bug 259545

Summary: x11-libs/qt-core-4.4.2 - {standard input}:794: Error: Incorrect register `%rbp' used with `l' suffix
Product: Gentoo Linux Reporter: gary artim <gartim>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: normal CC: arttuv69, gartim
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gary artim 2009-02-19 02:10:19 UTC
In the last month or so I converted mb and cpu from i386 to x86_64. Now when I try install in KDE stuff I get assembler errors, see below. Looks like something is telling portage to assemble as i386 arch, but unsure, any help accepted! thanks, --gary


Reproducible: Always

Steps to Reproduce:
1. sudo emerge konqueror


Actual Results:  
{standard input}: Assembler messages:
{standard input}:794: Error: Incorrect register `%rbp' used with `l' suffix
make: *** [.obj/release-shared/qthreadpool.o] Error 1
make: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:223: Error: Incorrect register `%rbp' used with `l' suffix
{standard input}:389: Error: Incorrect register `%rbp' used with `l' suffix
make: *** [.obj/release-shared/qglobal.o] Error 1
 * 
 * ERROR: x11-libs/qt-core-4.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3063:  Called qt4-build_src_compile
 *             environment, line 2782:  Called build_directories '
 * src/tools/moc/
 * src/tools/rcc/
 * src/tools/uic/
 * src/corelib/
 * src/xml/
 * src/network/
 * src/plugins/codecs/'
 *             environment, line  453:  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/x11-libs/qt-core-4.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-core-4.4.2/temp/environment'.
 * 



Expected Results:  
install konqueror
Comment 1 gary artim 2009-02-19 02:12:58 UTC
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=athlon64 -O2 -pipe"
#CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="x86_64-pc-linux-gnu"
/etc/make.conf:
MAKEOPTS="-j2"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/ "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bindist mp3 mmx 3dnow a52 dts dvd X gtk -gnome arts hal qt3 qt4 kde dvd alsa cdr zlib jpeg jpeg2k gif cups nsplugin"
ALSA_CARDS="via82xx"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-19 17:10:03 UTC
Please post your `emerge --info.'
Comment 3 gary artim 2009-02-19 17:30:53 UTC
gartim@lb ~ $ emerge --info 
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Xeon-R-_CPU_E3110_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Tue, 17 Feb 2009 00:30:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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 X a52 acl acpi alsa arts berkdb bindist bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg jpeg2k kde ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="via82xx" 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
Comment 4 Arttu Valo 2009-02-19 21:26:34 UTC
> ACCEPT_KEYWORDS="x86"

This configuration setting should probably have read "amd64" instead of "x86" from the very beginning of your compilations.
Comment 5 gary artim 2009-02-19 22:08:01 UTC
where is this option set, I can't find it in /etc/make.conf. Is it in the kde config or how do trace where its from? thanks, g.
Comment 6 Arttu Valo 2009-02-19 22:28:59 UTC
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3

In, e.g., /etc/make.conf if you want to change it from the default, but I'm worried that you might not have read this:

http://www.gentoo.ro/doc/en/gentoo-amd64-faq.xml#upgradex86

Are you trying to turn an x86 box into amd64 by just changing some config files and doing some minor recompiles? That is not supported and very likely won't work, you need to perform a fresh install.
Comment 7 gary artim 2009-02-20 01:45:14 UTC
I guess you're right. I'm a little unsure at to whether it was a (i386 or amd64) 
--> x86_64 Intel. I remember reading an arch gentoo doc and following the steps to do the switch. It's just a desktop, so its not a biggie, but i wish I could tell where to finding ACCEPT_KEYWORDS="x86" line. I have nothing in the /etc/make.conf of that sort. Thanks, g.
Comment 8 Arttu Valo 2009-02-20 03:22:38 UTC
> It's just a desktop, so its not a biggie, but i wish I could
> tell where to finding ACCEPT_KEYWORDS="x86" line.

Your profile is probably wrong as well:

ls -ld /etc/make.profile

Follow the profile symlink and keep following pointers forward and you should stumble upon make.defaults file(s) under /usr/portage/profiles. I *think* that's where the default value gets set (I'm just a fellow user, not a dev, especially not a portage dev, so I cannot state that as a fact).

But regardless of what you find by following those, you really want your make.profile to point to the right profile either by manually setting the /etc/make.profile symlink correctly or with "eselect profile". Latter may not work if you have a thoroughly wrong arch profile right now (as it probably is).

Still, you probably cannot configure and compile yourself out of this without going for the stage3 tarball.
Comment 9 Krzysztof Pawlik (RETIRED) gentoo-dev 2009-02-25 00:28:38 UTC
This is not a problem with Qt but with your system.
Comment 10 gary artim 2009-02-25 04:02:13 UTC
yep, I verified and the profile is enfact point to x86 profile. will reinstall. thanks much! -- Gary