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

Bug 412397

Summary: sys-libs/glibc-2.15[glibc-omitfp] with gcc-4.7.0 - ../locale/programs/charmap.c: In function ‘charmap_read’: ../sysdeps/i386/i486/bits/string.h:760:3: error: can’t find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
Product: Gentoo Linux Reporter: iGentoo <AlphatPC>
Component: [OLD] UnspecifiedAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: build.log.bz2
build.log.bz2

Description iGentoo 2012-04-17 18:51:24 UTC
Created attachment 309307 [details]
build.log.bz2

Compile glibc-2.15 x86 ABI with -D__USE_STRING_INLINES:

x86_64-pc-linux-gnu-gcc -m32 ../locale/programs/charmap.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -fno-stack-protector -fno-strict-aliasing -pipe -Wstrict-prototypes   -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES -Wa,-mtune=i686 -DCHARMAP_PATH='"/usr/share/i18n/charmaps"' -DDEFAULT_CHARMAP=null_pointer -DNEED_NULL_POINTER   -U_FORTIFY_SOURCE -DPIC -U_FORTIFY_SOURCE -DPIC -U_FORTIFY_SOURCE -DPIC  -I../include -I/var/tmp/portage/sys-libs/glibc-2.15/work/build-x86-x86_64-pc-linux-gnu-nptl/iconv -I/var/tmp/portage/sys-libs/glibc-2.15/work/build-x86-x86_64-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h      -DNOT_IN_libc -o /var/tmp/portage/sys-libs/glibc-2.15/work/build-x86-x86_64-pc-linux-gnu-nptl/iconv/charmap.o -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.15/work/build-x86-x86_64-pc-linux-gnu-nptl/iconv/charmap.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.15/work/build-x86-x86_64-pc-linux-gnu-nptl/iconv/charmap.o
In file included from ../string/string.h:634:0,
                 from ../include/string.h:49,
                 from ../sysdeps/i386/i686/hp-timing.h:24,
                 from ../nptl/descr.h:28,
                 from ../nptl/sysdeps/i386/i686/../tls.h:106,
                 from ../nptl/sysdeps/i386/i686/tls.h:34,
                 from ../include/errno.h:22,
                 from ../locale/programs/charmap.c:24:
../locale/programs/charmap.c: In function ‘charmap_read’:
../sysdeps/i386/i486/bits/string.h:760:3: error: can’t find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
../sysdeps/i386/i486/bits/string.h:125:3: error: ‘asm’ operand has impossible constraints
../sysdeps/i386/i486/bits/string.h:815:3: error: ‘asm’ operand has impossible constraints
../sysdeps/i386/i486/bits/string.h:760:3: error: ‘asm’ operand has impossible constraints
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15/work/build-x86-x86_64-pc-linux-gnu-nptl/iconv/charmap.o] Error 1




Portage 2.2.0_alpha100 (hardened/linux/amd64/selinux, gcc-4.7.0, glibc-2.15, 3.4.0-rc3-custom x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.0-rc3-custom-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.1
Timestamp of tree: Tue, 17 Apr 2012 18:15:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3::hardened-dev, 4.7.0::hardened-dev
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15::custom
Repositories: gentoo systemd hardened-dev custom
Installed sets: @custom-initramfs-rebuild, @custom-protected, @custom-selibs-rebuild
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--sort-section=alignment"
LINGUAS="en en_US zh zh_CN"
MAKEOPTS="V=1 -j10"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9ef"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/hardened-development /usr/local/portage"
SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage"
USE="X acl alsa amd64 audit bash-completion berkdb bzip2 c++0x cairo caps cli cracklib crypt cxx dbus dri gdbm gmp gnome gpm gtk gtk3 hardened iconv ipv6 jit jpeg jpeg2k justify mmx modules mudflap multilib ncurses nls nptl nptlonly open_perms opengl openmp pam pcre png pppd pulseaudio qt4 readline selinux session sse sse2 ssl svg sysfs systemd tcpd threads tiff unicode urandom vim-syntax xattr xinetd xorg zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs caps dmsquash-live gensplash livenet lvm nbd nfs plymouth ssh-client 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================


sys-devel/gcc-4.7.0 was built with the following:
USE="cxx fortran graphite gtk hardened mudflap (multilib) multislot nls nptl openmp (selinux) (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -go (-libssp) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
CFLAGS="-Wall -Wextra -march=native -pipe -O2"
CXXFLAGS="-Wall -Wextra -march=native -pipe -O2"


sys-libs/glibc-2.15 was built with the following:
USE="gd glibc-omitfp hardened (multilib) (selinux) -debug -profile -vanilla"
CFLAGS="-Wall -march=native -pipe -O2 -fno-strict-aliasing -fno-stack-protector"
CXXFLAGS="-Wall -march=native -pipe -O2 -fno-strict-aliasing"
Comment 1 iGentoo 2012-04-17 18:52:42 UTC
Created attachment 309309 [details]
build.log.bz2
Comment 2 SpanKY gentoo-dev 2012-04-17 20:05:48 UTC
i plan on dropping USE=glibc-omitfp.  so you might as well stop using it now.