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

Bug 275835

Summary: cross-i686-pc-linux-gnu/glibc-2.9_p20081201-r2 - ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:209: error: can't find a register in class ‘BREG’ while reloading ‘asm’
Product: Gentoo Linux Reporter: Robin Hill <gentoo>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: normal CC: bertrand, mattst88
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild log (zipped)
Ebuild info

Description Robin Hill 2009-06-29 15:09:21 UTC
I was attempting to update my cross-compile environment to the latest stable glibc version (2.9_p20081201-r2) using crossdev.  This failed to build, reporting "can't find a register in class ‘BREG’ while reloading ‘asm’"

Reproducible: Always

Steps to Reproduce:
1. Run "crossdev -S --target i686-pc-linux-gnu"

Actual Results:  
Fails during the compile of glibc.

Expected Results:  
Successful compilation of the entire toolchain.

Portage 2.1.6.13 (default/linux/amd64/2008.0/server, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Mon, 29 Jun 2009 01:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.6-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.1
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -Os -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirrors.blueyonder.co.uk/mirrors/gentoo ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j5"
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="/mnt/temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/jmd-gentoo /opt/pkg/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext a52 aac aalib acpi amd64 aotuv async bash-completion berkdb bzip2 caps chroot cli cracklib crypt css cups curl dbus dbx dri dvd dvdr ecc encode erandom exif extensions fam flac foomaticdb ftp gd gdbm geoip gmp gnutls gpgme gsl hardened howl hpn iconv idn imap iproute2 isdnlog ithreads jikes jpeg libcaca libedit linuxthreads-tls lm_sensors logrotate lzo maildir mailwrapper matroska memlimit midi mjpeg mmx mmxext mp3 mpeg mudflap multilib mysql ncurses nis nls nptl nptlonly ogg openmp pam pam_chroot pam_timestamp pcre perl php pic png postgres ppds pppd prelude python qdbm readline reflection relp rtc samba session sharedmem slang snmp speex spl sqlite sse sse2 sse3 ssl ssse3 sysfs tcpd threads tiff truetype unicode usb userlocales uudeview vhosts vorbis x264 xfs xml xorg xvid zeroconf 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" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robin Hill 2009-06-29 15:13:29 UTC
Created attachment 196088 [details]
Ebuild log (zipped)
Comment 2 Robin Hill 2009-06-29 15:14:08 UTC
Created attachment 196089 [details]
Ebuild info
Comment 3 Matt Turner gentoo-dev 2011-07-31 05:58:28 UTC
This is because of hardened Gentoo, specifically the -fPIC CFLAG.

With PIC, the ebx register is used, and isn't available to inline assembly, thus causing this error. See bug 376245 and bug 375967.

Is this still a problem for you with a more recent crossdev and glibc versions?
Comment 4 Matt Turner gentoo-dev 2011-09-15 16:31:59 UTC
Closing as NEEDINFO until someone can reproduce it. I don't think it's a problem anymore.