Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376245 - sys-apps/cpuid-20110305 compilation error: can't find a register in class ‘BREG’ while reloading ‘asm’
Summary: sys-apps/cpuid-20110305 compilation error: can't find a register in class ‘BR...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-24 17:44 UTC by Marcin Mirosław
Modified: 2011-07-31 16:12 UTC (History)
1 user (show)

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


Attachments
patch to fix problem (patch,746 bytes, patch)
2011-07-31 05:56 UTC, Matt Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2011-07-24 17:44:52 UTC
Another package with problem on hardened x86.

i686-pc-linux-gnu-gcc -O2 -march=native -mfpmath=sse -pipe -fpeel-loops -fomit-frame-pointer -floop-block -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-strip-mine -fipa-sra  -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -D_FILE_OFFSET_BITS=64 -DVERSION=20110305 -Wl,-O1 -Wl,--as-needed -o cpuid cpuid.c
gzip < cpuid.man > cpuid.man.gz
cpuid.c: In function ‘print_synth_intel’:
cpuid.c:1692:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_amd’:
cpuid.c:2166:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_cyrix’:
cpuid.c:2708:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_via’:
cpuid.c:2729:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_umc’:
cpuid.c:2764:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_nexgen’:
cpuid.c:2777:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_rise’:
cpuid.c:2789:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_transmeta’:
cpuid.c:2806:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_sis’:
cpuid.c:2828:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘print_synth_nsc’:
cpuid.c:2839:4: warning: format not a string literal and no format arguments
cpuid.c: In function ‘real_get’:
cpuid.c:5322:7: error: can't find a register in class ‘BREG’ while reloading ‘asm’
cpuid.c:5322:7: error: ‘asm’ operand has impossible constraints



Reproducible: Always




# emerge --info
FEATURES variable contains unknown value(s): Xkeepwork, Xsplitdebug
Portage 2.1.10.7 (hardened/linux/x86, gcc-4.5.2, glibc-2.13-r4, 3.0.0-gentoo i686)
=================================================================
System uname: Linux-3.0.0-gentoo-i686-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 24 Jul 2011 17:30:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2, 3.2
dev-util/ccache:          3.1.5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo steev portage-backup mgorny sping sunrise science bitcoin miro-testowe horhe
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mfpmath=sse -pipe -fpeel-loops -fomit-frame-pointer -floop-block -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-strip-mine -fipa-sra"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mfpmath=sse -pipe -fpeel-loops -fomit-frame-pointer -floop-block -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-strip-mine -fipa-sra"
DISTDIR="/usr/portage/distfiles"
FEATURES="Xkeepwork Xsplitdebug assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="pl_PL.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/steev /usr/portage/local/layman/portage-backup /usr/portage/local/layman/mgorny /usr/portage/local/layman/sping /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/portage/local/layman/bitcoin /usr/local/portage/miro-overlay/staging /usr/local/portage/miro-overlay/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi adns aio async bash-completion bzip2 caps chroot clamav clamdtop cli crypt cxx daemon dhcp dri exiscan-acl extras fam flac ftp glibc-omitfp gmp gnutls gpm graphite hardened iconv idn iproute2 ipv6 javascript jpeg justify logrotate logwatch lto lzo maildir mmap mmx mmxext modules mouse mudflap nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network-cron nls nntp nptl nptlonly ogg openmp openssl optimization pam pcre pic pop3d pppd quotas readline session slang smp spell spf sse sse2 sse3 ssl ssse3 stats subtitles svg sysfs syslog threads threadsafe tools tordns tos unicode unzip urandom vhosts vim vim-pager vim-syntax x86 xattr xfs zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 cgi 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 rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="account tarpit"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Pacho Ramos gentoo-dev 2011-07-25 16:11:43 UTC
Attach full build.log please. Also try using safer CFLAGS
Comment 2 Marcin Mirosław 2011-07-25 18:39:08 UTC
This isn't problem with CFLAGS, please see https://bugs.gentoo.org/buglist.cgi?quicksearch=can%27t%20find%20a%20register%20in%20class%20%E2%80%98BREG%E2%80%99%20while%20reloading%20%E2%80%98asm%E2%80%99;list_id=314377 or paste error in web searcher. If you still need build.log i'll paste it tomorrow.
Comment 3 Pacho Ramos gentoo-dev 2011-07-26 10:46:57 UTC
Thanks for the info
Comment 4 Matt Turner gentoo-dev 2011-07-31 05:56:01 UTC
Created attachment 281641 [details, diff]
patch to fix problem

Same problem as in bug 375967. Same fix too.
Comment 5 Marcin Mirosław 2011-07-31 10:23:24 UTC
Same fix, same answer - it works for me:)
Thanks!
Comment 6 Matt Turner gentoo-dev 2011-07-31 16:12:44 UTC
Committed. Thanks :)