Can't build xdm, kdm, guile, probably something else. All of them fail with the same kind of errors: {standard input}: Assembler messages: {standard input}:150: Error: Incorrect register `%rbx' used with `l' suffix {standard input}:162: Error: Incorrect register `%rbx' used with `l' suffix {standard input}:986: Error: Incorrect register `%rax' used with `l' suffix confcache, ccache, distcc are disabled, -j set to 1. Reproducible: Always Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.19-beyond2 x86_64) ================================================================= System uname: 2.6.19-beyond2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Gentoo Base System version 1.12.9 Timestamp of tree: Mon, 26 Mar 2007 22:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -mtune=k8 -O2 -fweb -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -mtune=k8 -O2 -fweb -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://longobard.local/gentoo ftp://ignatich.local/gentoo ftp://rikz.local/gentoo ftp://fu.local/gentoo ftp://swdevel.local/gentoo ftp://80.70.228.204/gentoo http://trumpetti.atm.tut.fi/gentoo/" LANG="ru_RU.KOI8-R" LINGUAS="en ru" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/scsi/r4/portage-tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/layman/xeffects" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X Xaw3d a52 aac aalib addbookmarks alias alsa amd64 artswrappersuid asf async audiofile automount autoreplace bitmap-fonts bittorrent bluetooth browserplugin bzip2 c++ cairo canvas cap cdda cddb cdparanoia cdr cli clock-screen connectionstatus cracklib crypt cscope css cups curl dbus dga divx dmx dnd dri dts dvb dvd dvdr dvdread dynagraph edl emboss encode erandom esd expat extensions extras fam fbcon ffmpeg finger firefox flac fortran ftp fuse gdbm gif gimp gimpprint gkrellm glitz gnutls gopher gpgme gpm graphviz gs gsf gstreamer gtk gtk2 guile hal highlight history iconv icq idn imagemagick imap innodb irc isdnlog ithreads jabber java javascript jingle jpeg jpeg2k kde key-screen kipi latex lcd ldap libg++ libsamplerate live lm_sensors logitech-mouse logrotate lua lzo mad maildir matroska mbox midi mikmod mime mmap mng mod modplug mouse mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mp3 mp4 mp4live mpd-mad mpeg mpeg2 mpeg4 mplayer musepack nas ncurses nethack netmeeting network nls nntp no-old-linux nogg nowlistening nptl nptlonly nvidia oav ogg oggvorbis openexr opengl oss pam pam_console pango parse-clocks pcre pda pdf perl png pnp ppds pppd python qt3 qt4 quicktime rdesktop readline reflection rss rtc rtsp ruby samba sametime screen sdl search-screen sensord session silc skins slp smime smp sms socks5 speex spell spl ssl statistics stroke svg tcpd texteffect theora threads thumbnailing tiff timidity translator truetype truetype-fonts type1 type1-fonts utf8 uudeview v4l v4l2 vcd vim-pager vim-with-x visualization vorbis webpresence winpopup wmf wmp wv wxwindows x11vnc x264 xanim xcomposite xface xfs xgetdefault xine xinetd xml xorg xosd xprint xrandr xscreensaver xv xvid xvmc yahoo zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Are CFLAGS correct? See: http://gentoo-wiki.com/Safe_Cflags#Athlon_64_X2_.28AMD.29 And/Or add the contents of /proc/cpuinfo here.
Try again without -fweb. To the comment above: You can see the CFLAGS in emerge --info ;>
(In reply to comment #2) > Try again without -fweb. > To the comment above: You can see the CFLAGS in emerge --info ;> > I know I can see them. I suspect --march=k8 is wrong. I think it should be "-march=athlon64", but I can't be sure until I see the family, model, and stepping info from /proc/cpuinfo. I'd also test without the -mtune amd -fweb options.
(In reply to comment #1) > Are CFLAGS correct? I've used this CFLAGS for many months now, without any problems. However I've tried to re-emerge stuff with CFLAGS set to "" without any positive outcome. I believe that k8 and athlon64 mean the same thing, man GCC says: AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.)
Seems to be gas bug: http://sourceware.org/bugzilla/show_bug.cgi?id=3830 However, I've ended up with broken binutils after manually applying the patches to binutils-2.17: root@kos ~ $ cat > test.c main(){return(0);} root@kos ~ $ gcc test.c /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:/lib64/ld-linux-x86-64.so.2: bfd_stat failed: Invalid argument collect2: ld returned 1 exit status
Please ignore my previous comment. It turned out to be a crossdev bug. I had crossdev configured for i686 cross-compiling, somehow it has interfered with my binutils. Problems resolved after doing "crossdev -C" all and rebuilding binutils, glibc and gcc.