Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636856 - dev-libs/libressl-2.6.3 fails to build: ${WORKDIR}/libressl-2.6.3/crypto/aes/aes-elf-x86_64.S:7: Error: bad register name `%r15)' (and many others)
Summary: dev-libs/libressl-2.6.3 fails to build: ${WORKDIR}/libressl-2.6.3/crypto/aes/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://github.com/libressl-portable/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 10:01 UTC by Michelangelo Scopelliti
Modified: 2017-11-11 17:33 UTC (History)
2 users (show)

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


Attachments
build log (libressl-2.6.3:20171108-095022.log.gz,9.78 KB, application/gzip)
2017-11-08 10:01 UTC, Michelangelo Scopelliti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2017-11-08 10:01:23 UTC
Created attachment 503088 [details]
build log

dev-libs/libressl-2.6.3 fails on (at least) 2 of my systems. Th reported error is a lot of "Error: bad register name" in crypto/aes/aes-elf-x86_64.S (build log attached, MAKEOPTS="-j1".

$ emerge --info

Portage 2.3.13 (python 2.7.14-final-0, default/linux/amd64/13.0, gcc-6.4.0, glibc-2.25-r9, 4.13.11 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.11-x86_64-AMD_A8-3870_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.4.1
KiB Mem:    15889696 total,  11849208 free
KiB Swap:   18874352 total,  18874352 free
Timestamp of repository gentoo: Wed, 08 Nov 2017 08:06:04 +0000
Head commit of repository gentoo: 20f724a44d717e34350fd2800dcb8007a4e59c91

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.5::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.6::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

kernelpanic
    location: /usr/local/portage/kernelpanic
    masters: gentoo
    priority: 0

libressl
    location: /var/lib/layman/libressl
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/libressl.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe"
DISTDIR="/var/cache/portage/distfiles"
FCFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup clean-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="X a52 aac acl alsa amd64 ao berkdb blas bluetooth branding bzip2 cairo cli cracklib crypt cups curl cxx dbus djvu dri dts dv dvb dvd encode exif ffmpeg fftw flac fontconfig fortran gdbm gif gimp gmp gpm gsm gstreamer iconv icu inotify ipv6 jbig jit jpeg jpeg2k lame lapack latex lcms libass libnotify libressl lzma lzo mad matroska mikmod mmap mms mng modplug modules mp3 mpeg mpi mtp multilib musepack ncurses nls nptl offensive ogg openal openexr opengl openmp pam pcre pdf png postscript qt5 raw readline scanner seccomp session smp sndfile sound sox speex sqlite ssl startup-notification svg theora threads tiff truetype udev unicode usb v4l vaapi vdpau vim-syntax vorbis wavpack webp wmf wxwidgets x264 xattr xcb xft xml xmp xpm xscreensaver xv xvid zlib" ABI_X86="32 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="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 3dnow 3dnowext popcnt sse3 sse4a" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" SANE_BACKENDS="xerox_mfp" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$ emerge -vp libressl

[ebuild     U  ] dev-libs/libressl-2.6.3:0/44::gentoo [2.6.2:0/44::gentoo] USE="asm -nc% -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
Comment 1 Anthony Basile gentoo-dev 2017-11-10 17:19:40 UTC
I don't know why I'm not hitting this.  Can you give me any more info?
Comment 2 Michelangelo Scopelliti 2017-11-10 18:48:11 UTC
(In reply to Anthony Basile from comment #1)
> I don't know why I'm not hitting this.  Can you give me any more info?

It is possible that is a multilib issue?

$ USE="-abi_x86_32" ebuild `equery w libressl` clean compile

builds fine, and I'm able to compile outside the portage.

I've tried also to rebuild cmake, but no success; besides emerge --info, what information can i share?
Comment 3 Pablo Cholaky 2017-11-10 18:51:35 UTC
I can reproduce this bug even with dev-libs/libressl-2.6.3-r1

Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/13.0/systemd, gcc-6.4.0, glibc-2.25-r9, 4.14.0-rc7-waltercool x86_64)
=================================================================
System uname: Linux-4.14.0-rc7-waltercool-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-gentoo-2.4.1
KiB Mem:    24712452 total,  15104768 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Fri, 10 Nov 2017 18:04:01 +0000
Head commit of repository gentoo: 79691726de736e71d1162c6b2ddbd5298276284e

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.6::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

mozilla
    location: /var/lib/layman/mozilla
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

waltercool
    location: /var/lib/layman/waltercool
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE NVIDIA-r2 ipw3945 google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=broadwell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="3d X aac acl acpi activities alsa amd64 amr apng berkdb bindist bluetooth brightness-control btrfs bzip2 c++11 cairo chm cjk clang cli colord colorio connection-sharing conntrack cracklib crypt cryptsetup cups cxx cycles dbus designer dri egl eglfs elfutils epub equalizer exif ffmpeg fftw flac fontconfig fortran frei0r gccgo gdbm gegl geolocation gif glamor go gold gpm gstreamer haptic hwaccel iconv icu imagemagick ipv6 jpeg json kdenlive kdrive kipi ldap legacy-systray lensfun libinput libkms libproxy libressl libsamplerate libv4l llvm lm_sensors localstorage lzma mad mdnsresponder-compat midi minizip mmx mng modemmanager modules mp3 mtp multilib multimedia native-headset ncurses networkmanager nls nptl ntfsdecrypt nvenc office ogg okteta okular openal opencl openexr opengl openh264 openimageio openmax openmp pam pcap pcre pcre16 pdf pgo phonon pkcs11 player plotutils png policykit postproc postscript pptx pulseaudio qml qtmedia readline resolvconf samba scripttools sdl sdl2 seccomp secure-delete semantic-desktop session share smp sqlite sse sse2 ssl startup-notification svc svg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-sqlite systemd taglib tcpd theora thumbnail tiff timidity tinfo touchpad truetype udev udisks unicode upnp urandom user-session uvm v4l vaapi valgrind vdpau vector-icons vim-syntax vnc vorbis vpx vulkan wayland wayland-compositor webp winbind x264 x265 xattr xcb xcomposite xinerama xkb xmp xscreensaver xvfb xvmc xwayland yaml zeroconf zip zlib" ABI_X86="32 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="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="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc efi-32" INPUT_DEVICES="keyboard libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="ARM NVPTX X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64 arm" RUBY_TARGETS="ruby23 ruby24" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Using gcc 6.4.0, glibc 2.25-r9. I have no problems with dev-libs/libressl-2.6.2

I tried to sent my build.log from 2.6.3-r1 and gentoo bugzilla is giving me a 408 request timeout. Might be some problem there.
Comment 4 Anthony Basile gentoo-dev 2017-11-10 19:05:27 UTC
(In reply to Michelangelo Scopelliti from comment #2)
> (In reply to Anthony Basile from comment #1)
> > I don't know why I'm not hitting this.  Can you give me any more info?
> 
> It is possible that is a multilib issue?
> 
> $ USE="-abi_x86_32" ebuild `equery w libressl` clean compile
> 
> builds fine, and I'm able to compile outside the portage.
> 
> I've tried also to rebuild cmake, but no success; besides emerge --info,
> what information can i share?

I got it.  Its ABI_X86="32 (64) (-x32)".  So you get 

cd /var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3-abi_x86_32.x86/crypto && /usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DHAVE_ASPRINTF -DHAVE_ERR_H -DHAVE_EXPLICIT_BZERO -DHAVE_GETAUXVAL -DHAVE_GETENTROPY -DHAVE_GETPAGESIZE -DHAVE_INET_PTON -DHAVE_MEMMEM -DHAVE_STRCASECMP -DHAVE_STRNDUP -DHAVE_STRNLEN -DHAVE_STRSEP -DHAVE_TIMEGM -DLIBRESSL_INTERNAL -DMD5_ASM -DOPENSSLDIR=\"/etc/ssl\" -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_NO_HW_PADLOCK -DRSA_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DSIZEOF_TIME_T=4 -DSMALL_TIME_T -DVPAES_ASM -DWHIRLPOOL_ASM -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_POSIX_SOURCE -D__BEGIN_HIDDEN_DECLS="" -D__END_HIDDEN_DECLS="" -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/. -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/../include -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/../include/compat -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/asn1 -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/bn -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/dsa -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/evp -I/var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/modes   -DNDEBUG -march=barcelona -msahf -mpopcnt -mlzcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=barcelona -O2 -pipe -fPIC   -Wno-pointer-sign -o CMakeFiles/crypto-objects.dir/aes/aes-elf-x86_64.S.o -c /var/tmp/portage/dev-libs/libressl-2.6.3/work/libressl-2.6.3/crypto/aes/aes-elf-x86_64.S

which if you distill down is

    gcc -m32 aes-elf-x86_64.S

which means you're trying to do 32-build of 64-bit asm.  Can you test 

    USE=-asm emerge =dev-libs/libressl-2.6.3-r1

I bet that'll work.
Comment 5 Pablo Cholaky 2017-11-10 19:23:48 UTC
Without asm works fine.
Comment 6 Michelangelo Scopelliti 2017-11-10 21:40:24 UTC
I can confirm too.
Still, it was +asm in 2.6.2 and it is +asm in 2.6.3 (r1). Is that issue a consequence of switching to cmake?
Comment 7 Anthony Basile gentoo-dev 2017-11-10 22:38:30 UTC
(In reply to Michelangelo Scopelliti from comment #6)
> I can confirm too.
> Still, it was +asm in 2.6.2 and it is +asm in 2.6.3 (r1). Is that issue a
> consequence of switching to cmake?

Probably.  The ebuild's multilib code was made for gnu autotools, not cmake.  So I'm going to have to jump into that.
Comment 8 Anthony Basile gentoo-dev 2017-11-10 23:02:01 UTC
(In reply to Anthony Basile from comment #7)
> (In reply to Michelangelo Scopelliti from comment #6)
> > I can confirm too.
> > Still, it was +asm in 2.6.2 and it is +asm in 2.6.3 (r1). Is that issue a
> > consequence of switching to cmake?
> 
> Probably.  The ebuild's multilib code was made for gnu autotools, not cmake.
> So I'm going to have to jump into that.

Okay with help with some cmake gurus, the problem seems to be that CMakeLists.txt uses CMAKE_SYSTEM_PROCESSOR which looks at the processor to decide whether to build 32-bit or 64-bit code.  So in our 32-bit directory where we do gcc -m32 we try to build 64-bit asm and boom.

See: https://github.com/libressl-portable/portable/issues/361
Comment 9 Anthony Basile gentoo-dev 2017-11-10 23:16:13 UTC
Okay I've dropped back to gnu autotools build system with 2.6.3-r3.  that fixes this problem for gentoo.  upstream still needs to think about its cmake build.
Comment 10 Michelangelo Scopelliti 2017-11-11 10:33:33 UTC
(In reply to Anthony Basile from comment #9)
> Okay I've dropped back to gnu autotools build system with 2.6.3-r3.  that
> fixes this problem for gentoo.  upstream still needs to think about its
> cmake build.

Thank you.

One last thing: going back to autotools left out nc; is that intentional?
Comment 11 Anthony Basile gentoo-dev 2017-11-11 13:25:11 UTC
(In reply to Michelangelo Scopelliti from comment #10)
> (In reply to Anthony Basile from comment #9)
> > Okay I've dropped back to gnu autotools build system with 2.6.3-r3.  that
> > fixes this problem for gentoo.  upstream still needs to think about its
> > cmake build.
> 
> Thank you.
> 
> One last thing: going back to autotools left out nc; is that intentional?

yes for now.  i want to get back on track since we have a possible security issue with < 2.6.2 so i'd rather just make sure it works.
Comment 12 Mike Gilbert gentoo-dev 2017-11-11 17:33:26 UTC
I think the autotools build system works for our multilib build because we pass a different "host" value to configure.

64-bit build: `./configure --host=x86_64-pc-linux-gnu`
32-bit build: `./configure --host=i686-pc-linux-gnu`

The AC_CANONICAL_HOST macro parses the host value and splits it into several shell variables, including a variable called "host_cpu".

https://github.com/libressl-portable/portable/blob/v2.6.3/configure.ac#L109