Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259545 - x11-libs/qt-core-4.4.2 - {standard input}:794: Error: Incorrect register `%rbp' used with `l' suffix
Summary: x11-libs/qt-core-4.4.2 - {standard input}:794: Error: Incorrect register `%rb...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2009-02-19 02:10 UTC by gary artim
Modified: 2009-02-25 04:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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:
 *     , 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"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
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"
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 (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-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
CFLAGS="-march=athlon64 -O2 -pipe"
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"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
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"
Comment 4 Arttu Valo 2009-02-19 21:26:34 UTC

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

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:

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