Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602968 - sys-libs/glibc-2.24: sysdeps/x86_64/multiarch/memcpy-ssse3.S:65: Error: operand type mismatch for `jb'
Summary: sys-libs/glibc-2.24: sysdeps/x86_64/multiarch/memcpy-ssse3.S:65: Error: opera...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/bugzilla/show_...
Whiteboard:
Keywords:
: 604060 605660 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-17 22:13 UTC by Toralf Förster
Modified: 2017-02-09 16:25 UTC (History)
1 user (show)

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


Attachments
sys-libs:glibc-2.24:20161217-222724.log.bz2 (sys-libs:glibc-2.24:20161217-222724.log.bz2,176.23 KB, application/x-bzip2)
2016-12-17 22:53 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,6.57 KB, text/plain)
2016-12-18 21:58 UTC, Toralf Förster
Details
config.log (config.log,35.55 KB, text/plain)
2016-12-18 21:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,4.69 KB, text/plain)
2016-12-18 21:58 UTC, Toralf Förster
Details
environment (environment,145.70 KB, text/plain)
2016-12-18 21:58 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.53 KB, application/x-bzip2)
2016-12-18 21:58 UTC, Toralf Förster
Details
sys-libs:glibc-2.24:20161218-202638.log.bz2 (sys-libs:glibc-2.24:20161218-202638.log.bz2,31.12 KB, application/x-bzip2)
2016-12-18 21:58 UTC, Toralf Förster
Details
Dont use PLT or GOT in static archives (0001-X86_64-Don-t-use-PLT-nor-GOT-in-static-archives-BZ-2.patch,1.15 KB, patch)
2017-02-05 17:52 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-12-17 22:13:16 UTC
../sysdeps/x86_64/multiarch/memcpy-ssse3.S: Assembler messages:
../sysdeps/x86_64/multiarch/memcpy-ssse3.S:65: Error: operand type mismatch for `jb'
/var/tmp/portage/sys-libs/glibc-2.24/work/build-amd64-x86_64-pc-linux-gnu-nptl/sysd-rules:1855: recipe for target '/var/tmp/portage/sys-libs/glibc-2.24/work/build-amd64-x86_64-pc-linux-gnu-nptl/string/memmove-ssse3.o' failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.24/work/build-amd64-x86_64-pc-linux-gnu-nptl/string/memmove-ssse3.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.24/work/glibc-2.24/string'
Makefile:215: recipe for target 'string/subdir_lib' failed
make[1]: *** [string/subdir_lib] Error 2




mr-fox / # emerge --info --verbose=n glibc
Portage 2.3.0 (python 3.4.5-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.23-r3, 4.8.15-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.15-hardened-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:    65285560 total,  27752020 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository gentoo: Sat, 17 Dec 2016 20:02:21 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 1

tinderbox
    location: /tmp/tb/data/portage
    masters: gentoo
    priority: 2

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Werror=implicit-function-declaration -march=native -Werror=implicit-function-declaration -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Werror=implicit-function-declaration -march=native -Werror=implicit-function-declaration -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cdda cli cracklib crypt csc cxx dri drmkms freetds gdbm hardened iconv ipv6 javaxml justify mmx mmxext modules mp4 mpi multilib mysqli nls nptl openmp pam pax_kernel pcre pie qemu readline sasl seccomp session sse sse2 ssl ssp system-jpeg tcpd threads traceroute unicode urandom xattr xmp xslt xtpax xvfb zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="an ca-valencia doi ne tr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

sys-libs/glibc-2.23-r3::gentoo was built with the following:
USE="hardened (multilib) (pie) rpc (ssp) -audit -caps -debug -gd -nscd (-profile) (-selinux) -suid -systemtap -vanilla" ABI_X86="64"
CFLAGS="-Werror=implicit-function-declaration -march=native -Werror=implicit-function-declaration -pipe -O2 -fno-strict-aliasing -fno-stack-protector"
CXXFLAGS="-Werror=implicit-function-declaration -march=native -Werror=implicit-function-declaration -pipe -O2 -fno-strict-aliasing -fno-stack-protector"
Comment 1 Toralf Förster gentoo-dev 2016-12-17 22:16:02 UTC
for the record : hardened-libressl-unstable_20161217-214605
Comment 2 Toralf Förster gentoo-dev 2016-12-17 22:53:42 UTC
Created attachment 456532 [details]
sys-libs:glibc-2.24:20161217-222724.log.bz2

build w/o any -Werror specific things
Comment 3 Toralf Förster gentoo-dev 2016-12-17 22:56:12 UTC
same image as in bug 602960 - but here again:

USE="
  pax_kernel xtpax -cdinstall -oci8 -bindist
  ssp

  cdda csc drmkms freetds -gd -gnuplot javaxml mp4 mpi mysqli -ncurses
  qemu -rendering sasl system-jpeg threads traceroute -vorbis xmp xslt
  xvfb
"

ACCEPT_KEYWORDS=~amd64
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
PAX_MARKINGS="XT"
Comment 4 Toralf Förster gentoo-dev 2016-12-18 21:58:25 UTC
Created attachment 456632 [details]
emerge-info.txt

happened iat this tinderox image too
Comment 5 Toralf Förster gentoo-dev 2016-12-18 21:58:30 UTC
Created attachment 456634 [details]
config.log
Comment 6 Toralf Förster gentoo-dev 2016-12-18 21:58:33 UTC
Created attachment 456636 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2016-12-18 21:58:36 UTC
Created attachment 456638 [details]
environment
Comment 8 Toralf Förster gentoo-dev 2016-12-18 21:58:38 UTC
Created attachment 456640 [details]
etc.portage.tbz2
Comment 9 Toralf Förster gentoo-dev 2016-12-18 21:58:41 UTC
Created attachment 456642 [details]
sys-libs:glibc-2.24:20161218-202638.log.bz2
Comment 10 SpanKY gentoo-dev 2016-12-22 18:22:29 UTC
can you try building with binutils-2.26 ?

i'd note again that you seem to be building an unkeyworded version of glibc using a stable system.
Comment 11 Toralf Förster gentoo-dev 2016-12-22 20:57:16 UTC
(In reply to SpanKY from comment #10)
you mean downgrading binutils ?

Because this is an unstable system from the attached emerge.info :
hardened-no-multilib-libressl-unstable_20161218-164649
Comment 12 SpanKY gentoo-dev 2016-12-22 21:33:34 UTC
(In reply to Toralf Förster from comment #11)

mmm, what now ?  your summary in comment #0 says binutils-2.25.1+gcc-4.9.4.  your attached "emerge-info.txt" says binutils-2.25.1 too, although now it says gcc-5.4.0.
Comment 13 Toralf Förster gentoo-dev 2016-12-22 21:58:32 UTC
I'm wondering too: The origin bug report was made at 17th, but lacks all data, and 1 day later I attached onto this bug report data from another image - what a BS - made by me.

I'll close this bug report - too confusing for devs - and will create a better bug report next time when I repdroduced the issue.
Comment 14 SpanKY gentoo-dev 2016-12-29 20:19:31 UTC
*** Bug 604060 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2017-01-18 06:05:40 UTC
*** Bug 605660 has been marked as a duplicate of this bug. ***
Comment 16 Jory A. Pratt gentoo-dev 2017-02-05 17:52:23 UTC
Created attachment 462558 [details, diff]
Dont use PLT or GOT in static archives

I was able to successfully merge after applying patch. I am looking down the barrel of a segfault on hardened tho in libc which is most likely caused from -DPIC being passed during compile
Comment 17 SpanKY gentoo-dev 2017-02-09 15:05:37 UTC
this fix is in glibc-2.25.  Toralf: if you can verify this fixes things for you w/glibc-2.24, i can backport it to the glibc-2.24 branch.
Comment 18 Toralf Förster gentoo-dev 2017-02-09 16:03:35 UTC
(In reply to SpanKY from comment #17)
confirmed - patch helps, tested at the affected image.
Comment 19 SpanKY gentoo-dev 2017-02-09 16:25:43 UTC
(In reply to Toralf Förster from comment #18)

thanks.  this is fixed in glibc-2.24-r1 then.