Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499360 - =sys-libs/glibc-2.18-r1 - In file included from ../nptl/sysdeps/unix/sysv/linux/i386/fork.c:21: ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:231:5: error: inconsistent operand constraints in an 'asm'
Summary: =sys-libs/glibc-2.18-r1 - In file included from ../nptl/sysdeps/unix/sysv/lin...
Status: RESOLVED DUPLICATE of bug 498522
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-26 15:13 UTC by Dan Goodliffe
Modified: 2014-01-26 22:04 UTC (History)
0 users

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


Attachments
build.log.bz2 (build.log.bz2,45.33 KB, application/x-bzip)
2014-01-26 15:14 UTC, Dan Goodliffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2014-01-26 15:13:19 UTC
Compilation fails with the following error:
In file included from ../nptl/descr.h:30:0,
                 from ../nptl/sysdeps/i386/i686/../tls.h:108,
                 from ../nptl/sysdeps/i386/i686/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:26,
                 from ../nptl/sysdeps/unix/sysv/linux/i386/fork.c:21:
../nptl/sysdeps/unix/sysv/linux/i386/../fork.c: In function '__libc_fork':
../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:231:5: error: inconsistent operand constraints in an 'asm'
     __asm __volatile (LLL_EBX_LOAD           \
     ^
../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:227:6: note: in expansion of macro 'lll_futex_wake'
      lll_futex_wake (allp->handler->refcntr, 1, LLL_PRIVATE);
      ^
x86_64-pc-linux-gnu-gcc -m32 execlp.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline -Wwrite-strings -fPIC -fmerge-all-constants -fno-stack-protector -fno-strict-aliasing -frounding-math -march=native -pipe -Wstrict-prototypes   -Wa,-mtune=i686    -U_FORTIFY_SOURCE   -I../include -I/var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/posix  -I/var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl  -I../nptl/sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/unix/sysv/linux/i386/i686  -I../nptl/sysdeps/unix/sysv/linux/i386  -I../nptl/sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/i386/nptl  -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/inet  -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/multiarch  -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../sysdeps/x86/fpu  -I../nptl/sysdeps/i386  -I../sysdeps/i386  -I../sysdeps/x86  -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  -I../nptl  -I../ports  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include-fixed -isystem /usr/include  -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o /var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/execlp.o -MD -MP -MF /var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/execlp.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/execlp.o
/var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/sysd-rules:225: recipe for target '/var/tmp/portage/sys-libs/glibc-2.18-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/fork.o' failed

Full logs etc to follow shortly.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 glibc




Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.8-tuxonice x86_64)
=================================================================
System uname: Linux-3.12.8-tuxonice-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.2
KiB Mem:     8161100 total,    703044 free
KiB Swap:    6291452 total,   6291428 free
Timestamp of tree: Sun, 26 Jan 2014 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.1-r4
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo RandomLAN
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -fPIC -march=native -pipe -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -fPIC -march=native -pipe -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://defiant.random.lan/portage http://firebrand.random.lan/portage http://sys.randomdan.homeip.net/"
LANG="en_GB.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O3 -march=native -pipe"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-e 'ssh -x'"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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/RandomLAN"
SYNC="rsync://portage@portage/gentoo-portage"
USE="64bit X a52 aac accessibility acl acpi additions aim alsa amd64 apm apng audiofile automount autoshutdown autoupdate bash-completion berkdb bluetooth branding browserplugin bzip2 c++0x cairo caps cdb cdda cddb cdparanoia cdr clang cli consolekit cracklib cscope css ctype curl curlwrappers custom-cflags custom-march custom-optimization cxx dbus declarative device-mapper dhcpcd dio disable-sound disable-torrent disk-partition divx dlloader docbook dpms dri drm dts dv dvb dvd dvdr dvdread dynagraph ebook effects emerald encode exif extensions extrafilters extras fam fame fastcgi ffmpeg firefox firmware flac fontconfig frei0r frontendonly ftp fts3 fuse g3dvl gallium gbm gdbm gif gimp git glamor gles gles1 gles2 glib glitz glut glx gmail gmailtimestamps gmedia gnutls gtk gtk3 h323 hardenedphp hpn iconv icq icu id3 id3tag imagemagick imap imlib imlib2 innodb inotify ipv6 ithreads javascript jpeg jpeg2k kde kdeenablefinal kipi kqemu lame lcms ldap libkms libnotify lightning lm_sensors logrotate lto lvm lvmboot lvmroot lzma lzo mad maildir melt messenger minizip mmx mmxext modules mozcalendar mp3 mp4 mp4live mpeg mpeg2 mpeg4 mpm-prefork msn multilib multithreaded mysql mysqli mythtv ncurses network network-cron networkmanager nls no-old-linux nocardbus nocd nohardenedkernel nptl nptlonly nscd nsplugin ntp nuv nvidia offensive ogg openexr opengl openmp openvg optimize opus oscar osmesa pam pango pch pcre pdf plasma png policykit portage postgres ppds pvr python python3 qt3support qt4 r600-llvm-compiler rdesktop rdp readline real realmedia redland remote resolvconf rtmp sblive screen secure-delete semantic-desktop session shared-dricore sharedext shorten silc smp sndfile soap sockets spell sql sqlite sse sse-filters sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification stats stencil-buffer stream subversion svg sw-suspend symlink sysfs syslog system-cairo system-jpeg system-sqlite system-v8 tcpd themes theora threads thumbnail tidy tiff transcode truetype udev udisks underscores unicode unity-lobby unlock-notify upnp upower usb uuid v4l v4l2 vaapi vdpau vhosts vim vim-pager vim-syntax vim-with-x vlc vorbis vpnc win32codecs wmf wmp wxwidgets x264 xa xattr xcb xcomposite xinerama xml xmms xmp xrandr xscreensaver xsl xslt xv xvfb xvid xvmc yahoo yvl2 zip zlib" ABI_X86="64" 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" APACHE2_MODULES="filter authz_host cgid mime_magic mime autoindex vhost_alias dav dir deflate log_config env rewrite cache mem_cache unixd socache authz_core authn_core socache_shmcb" CALLIGRA_FEATURES="braindump flow karbon stage tables words" CAMERAS="sony_dscf1 sony_dscf55" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="syslog lvm plymouth" DVB_CARDS="none" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="none" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Dan Goodliffe 2014-01-26 15:14:53 UTC
Created attachment 368798 [details]
build.log.bz2
Comment 2 Dan Goodliffe 2014-01-26 15:17:24 UTC
Bit out of my C/C++ comfort zone, but given it appears to be an issue with some assembler, and I'm using -march=native... the CPU details might also be useful. Quad core i7 as follows:

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
stepping        : 7
microcode       : 0x704
cpu MHz         : 1200.000
cache size      : 10240 KB
physical id     : 0
siblings        : 8
core id         : 3
cpu cores       : 4
apicid          : 7
initial apicid  : 7
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips        : 7203.76
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:
Comment 3 Agostino Sarubbo gentoo-dev 2014-01-26 15:53:30 UTC
works for me, and to be honest, I don't understand you cflags/ldflags mix.

Try:
CFLAGS="-march=native -O2" LDFLAGS="-Wl,-O1 -Wl,--as-needed" emerge glibc
Comment 4 Rafał Mużyło 2014-01-26 19:22:51 UTC
(In reply to Agostino Sarubbo from comment #3)
> works for me, and to be honest, I don't understand you cflags/ldflags mix.
> 
> Try:
> CFLAGS="-march=native -O2" LDFLAGS="-Wl,-O1 -Wl,--as-needed" emerge glibc

On the other as I understand one thing well enough:

CFLAGS="...-fPIC..."

so just like bug 498522...
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-26 20:01:59 UTC
(In reply to Rafał Mużyło from comment #4)
> (In reply to Agostino Sarubbo from comment #3)
> > works for me, and to be honest, I don't understand you cflags/ldflags mix.

The LDFLAGS don't hurt there.

> > Try:
> > CFLAGS="-march=native -O2" LDFLAGS="-Wl,-O1 -Wl,--as-needed" emerge glibc
> 
> On the other as I understand one thing well enough:
> 
> CFLAGS="...-fPIC..."
> 
> so just like bug 498522...

If it's just like that bug then it's a duplicate of that bug.
Comment 6 Rafał Mużyło 2014-01-26 21:26:10 UTC
@comment 5:

Yes and no.
No more than all of duplicates of bug 41124 are duplicates. In fact, even less, as this is an user error.

glibc fails loudly with this, but having -fPIC in global C{X}FLAGS is plain wrong.
Comment 7 Dan Goodliffe 2014-01-26 21:38:20 UTC
OK, removing -fPIC worked a treat. I won't pretend to remember why I put it there many years ago.. but it's fixed now. Sorry for wasting everyone's time.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-26 21:47:44 UTC

*** This bug has been marked as a duplicate of bug 498522 ***
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-26 21:49:35 UTC
(In reply to Rafał Mużyło from comment #6)
> @comment 5:
> 
> Yes and no.

No, it's a duplicate. Setting the same CFLAGS=-fPIC leads to the same error, which is INVALID, which is what was already established.

> No more than all of duplicates of bug 41124 are duplicates. In fact, even
> less, as this is an user error.

So exactly like duplicates of bug #41124 are duplicates. Same local problem, same local solution.
Comment 10 Rafał Mużyło 2014-01-26 22:04:27 UTC
My point was it's hard to call this a simple duplicate (even though it happens in the same file) if '-fPIC in global C{XX}FLAGS' is a mistake not simply from <insert random package here> POV, but in general.

But OK, your call (confusion here comes probably from INVALID status of the bug).