Created attachment 532206 [details] dev-libs:libressl-2.6.4:20180518-162547.log.xz libtool: compile: hppa2.0-unknown-linux-gnu-gcc -DPACKAGE_NAME=\"libressl\" -DPACKAGE_TARNAME=\"libressl\" -DPACKAGE_VERSION=\"2.6.4\" "-DPACKAGE_STRING=\"lib ressl 2.6.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libressl\" -DVERSION=\"2.6.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR= \".libs/\" -DHAVE_SYMLINK=1 -DHAVE_ERR_H=1 -DHAVE_ASPRINTF=1 -DHAVE_INET_NTOP=1 -DHAVE_INET_PTON=1 -DHAVE_MEMMEM=1 -DHAVE_REALLOCARRAY=1 -DHAVE_STRNDUP=1 -DHAV E_STRNLEN=1 -DHAVE_STRSEP=1 -DHAVE_TIMEGM=1 -DHAVE_ACCEPT4=1 -DHAVE_PIPE2=1 -DHAVE_POLL=1 -DHAVE_SOCKETPAIR=1 -DHAVE_EXPLICIT_BZERO=1 -DHAVE_GETAUXVAL=1 -DHAVE _VA_COPY=1 -DHAVE___VA_COPY=1 -DHAS_GNU_WARNING_LONG=1 -DSIZEOF_TIME_T=4 -DSMALL_TIME_T=1 -I. -I/var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6.4/cr ypto -I/var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6.4/include -I/var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6.4/include/compat -DLIB RESSL_INTERNAL -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS= -I/var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6.4/crypto/asn1 -I/var/tmp/portage/dev- libs/libressl-2.6.4/work/libressl-2.6.4/crypto/bn -I/var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6.4/crypto/evp -I/var/tmp/portage/dev-libs/libress l-2.6.4/work/libressl-2.6.4/crypto/modes -I/var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6.4/crypto -DLIBRESSL_INTERNAL -DOPENSSL_NO_HW_PADLOCK -DOP ENSSL_NO_ASM -DOPENSSLDIR=\"/etc/ssl\" -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE -mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comm ent -Wall -std=gnu99 -fno-strict-aliasing -fno-strict-overflow -DHAVE_GNU_STACK -Wno-pointer-sign -c /var/tmp/portage/dev-libs/libressl-2.6.4/work/libressl-2.6 .4/crypto/evp/evp_enc.c -fPIC -DPIC -o evp/.libs/libcrypto_la-evp_enc.o {standard input}: Assembler messages: {standard input}:9663: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9664: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9667: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9668: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9677: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9678: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9686: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9687: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9694: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9695: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9698: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9699: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9927: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9928: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9929: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} {standard input}:9930: Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} make[2]: *** [Makefile:6145: evp/libcrypto_la-evp_enc.lo] Error 1 [ebuild N ] dev-libs/libressl-2.6.4:0/44::gentoo USE="static-libs {test} -asm" 0 KiB Sat 19 May 10:44:02 CEST 2018 emerge --info =dev-libs/libressl-2.6.4 Portage 2.3.38 (python 3.5.5-final-0, default/linux/hppa/17.0, gcc-7.3.0, glibc-2.26-r7, 4.17.0-rc1-JeR-00028-g87ef12027b9b-dirty parisc64) ================================================================= System Settings ================================================================= System uname: Linux-4.17.0-rc1-JeR-00028-g87ef12027b9b-dirty-parisc64-PA8800_-Mako-with-gentoo-2.4.1 KiB Mem: 8233668 total, 43492 free KiB Swap: 2101676 total, 2063292 free Timestamp of repository gentoo: Sat, 19 May 2018 02:45:01 +0000 Head commit of repository gentoo: 861d31197c4cb91f2e29c8992febc371cd55e602 sh bash 4.4_p19 ld GNU ld (Gentoo 2.30 p2) 2.30.0 distcc[4434] (dcc_mkdir) ERROR: mkdir '/dev/shm/distcc/root/state' failed: No such file or directory [disabled] ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p19::gentoo dev-lang/perl: 5.26.2::gentoo dev-lang/python: 2.7.14-r2::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.11.1::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.35.5::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.9.6-r3::gentoo, 1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4-r2::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.25.1-r1::gentoo, 2.26.1::gentoo, 2.29::gentoo, 2.29.1-r1::gentoo, 2.30-r2::gentoo sys-devel/gcc: 4.6.4::gentoo, 4.7.2-r1::gentoo, 4.7.3-r1::gentoo, 4.8.1-r1::gentoo, 4.8.3::gentoo, 4.8.4::gentoo, 4.8.5::gentoo, 4.9.2::gentoo, 4.9.3::gentoo, 4.9.4::gentoo, 5.2.0::gentoo, 5.3.0::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo, 7.2.0-r1::gentoo, 7.3.0-r1::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r3::gentoo sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r7::gentoo Repositories: gentoo location: /aches/gentoo/portage sync-type: rsync sync-uri: rsync://rsync.nl.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes JeR location: /aches/gentoo/local masters: gentoo priority: -100 ACCEPT_KEYWORDS="hppa ~hppa" ACCEPT_LICENSE="*" CBUILD="hppa2.0-unknown-linux-gnu" CFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment" CHOST="hppa2.0-unknown-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib/distcc/bin /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/www/localhost/htdocs/wordpress/wp-config.php" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /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="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe" DISTDIR="/aches/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n --keep-going --ignore-built-slot-operator-deps=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="" FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe" GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-memory" LINGUAS="en nl he" MAKEOPTS="-j2" PKGDIR="/aches/gentoo/packages/karsten" 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="256-color X acl alsa amr anacron apng argyllcms audit bash-completion beautifulsoup3 berkdb bfio big-endian bittorrent botan bzip2 cairo canberra cli consolekit coverage crossdev crypt cups custom-cflags cxx dane dbus declarative dirac directfb distinct-l dlz dot dri emacs exceptions exif expat fbcon ffmpeg filecaps firefox firmware foomaticdb fortran frontend-optional g-sorcery gbm gdbm geoip geoloc glep gles1 gles2 gost gpg gpm gsm gstreamer gtk gudev guile hddtemp hppa hwdb iconv idn imlib inotify ipv6 jadetex javascript jingle jit jpeg jpeg2k json kdrive kmod ladspa lasi launch-frontend lensfun libcaca libcanberra libevent libidn2 libopts libsoxr libusb libwww lua lzma lzo mad mng mod modplug modules mp3 mtp multislot multitarget munge nagios nas natspec ncurses netlink nfs nls nptl objc objc++ objc-gc offensive ofono-headset openexr opengl openmp openrc openvg opus oqgraph osmesa oss pam pcre pcre16 php pic pkcs11 png pnm policykit python qt qt3support qt4 raw readline realtime regression-test rtmp rubytests samba sbc schroedinger sctp smi snappy socks5 speex spell spidermonkey sqlite ssl svg tcl tcpd tga theora threads tiff tk tokyocabinet truetype unicode unwind v4l vim-syntax vorbis vpx wayland wcwidth x264 x265 xa xattr xcb xft xhtml xkb xvfb xvid zlib" ALSA_CARDS="ad1889 usb-audio" 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 stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" 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" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa tek4957 tslib ur98 virtualbox libinput void" KERNEL="linux" L10N="en nl he" 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 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="stifb dummy" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
commit a81ab0ddbba50e62b413235195b8d5eb4659acb0 Author: Aaron Bauman <bman@gentoo.org> Date: Sun May 6 12:36:49 2018 -0400 dev-libs/libressl: hppa stable Package-Manager: Portage-2.3.36, Repoman-2.3.9
Created attachment 532210 [details] dev-libs:libressl-2.6.0:20180519-090718.log.xz
commit 8edcfb54755d06432b9ce36507623da339a11848 Author: Sergei Trofimovich <slyfox@gentoo.org> Date: Tue Sep 19 22:03:57 2017 +0100 dev-libs/libressl: stable 2.6.0 for hppa, bug #627696 Package-Manager: Portage-2.3.8, Repoman-2.3.3 RepoMan-Options: --include-arches="hppa"
Created attachment 532212 [details] dev-libs:libressl-2.2.4:20151031-065500.log.xz As some point of reference, this is the only PARISC build of libressl that I have, and that led to: commit 40eb55ddae8b531a0a90498efe8c2ffea6bf6df2 Author: Jeroen Roovers <jer@gentoo.org> Date: Sat Oct 31 08:18:20 2015 +0100 dev-libs/libressl: Mark ~hppa too. Package-Manager: portage-2.2.23 RepoMan-Options: --ignore-arches
It doesn't matter, Jer. HPPA is an exp profile now.
(In reply to Aaron Bauman from comment #5) > It doesn't matter, Jer. HPPA is an exp profile now. Does it mean you rill automatically reject all the fixes for hppa?
Created attachment 532228 [details] dev-libs:libressl-2.6.4:20180519-103547.log.xz CFLAGS="-Os -Wall" gives a different problem while linking: libtool: link: hppa2.0-unknown-linux-gnu-gcc -shared -fPIC -DPIC [many object files] -Wl,--no-whole-archive -lresolv -Os -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-keep-memory -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libcrypto.so.42 -Wl,-version-script -Wl,.libs/libcrypto.ver -o .libs/libcrypto.so.42.0.0 collect2: fatal error: ld terminated with signal 11 [Segmentation fault] compilation terminated. make[2]: *** [Makefile:2907: libcrypto.la] Error 1
What?
slyfox thinks this might be related
(In reply to Jeroen Roovers from comment #9) > slyfox thinks this might be related Related to the *second* problem, that is.
With CFLAGS="-ggdb -ffunction-sections" it gets past the point where it failed to build libcrypto in earlier attempts.
Yes, -ffunction-sections definitely fixes this, including the secondary problem (so regardless of which binutils version is used). Should we `use hppa && append-cflags -ffunction-sections`?
(In reply to Aaron Bauman from comment #5) > HPPA is an exp profile now. What kind of PARISC system did you build this on for stable testing? Can you share your configuration and perhaps a build log?
I don't own ancient irrelevant hardware. The latest stable point release was marked due to inactivity from the arch team. As I stated, it doesn't matter anyway as the arch is now exp. Hack away trying to fix it on your own or work with upstream.
The main issue seems to stem from the fact that ';' is used in asm code as a newline character. Many assemblers treat ';' as a comment. Proposed the fix upstream as: https://github.com/libressl-portable/portable/pull/426
Filed ld SIGSEGV on invalid code (from #comment7) as: https://sourceware.org/PR23207
Created attachment 534328 [details, diff] libressl-2.6.4-gnu-warning.patch
libressl bug was merge upstream as-is in https://github.com/libressl-portable/portable/pull/426 Attaching the patch and reassigning to libressl@ to decide if gentoo wants the fix backported.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d70bed7f53c5f0524c77f6e630ae7f4b9f9ce7c7 commit d70bed7f53c5f0524c77f6e630ae7f4b9f9ce7c7 Author: Aaron Bauman <bman@gentoo.org> AuthorDate: 2018-06-03 01:07:41 +0000 Commit: Aaron Bauman <bman@gentoo.org> CommitDate: 2018-06-03 01:07:57 +0000 dev-libs/libressl: add build fix patch for hppa This patch addresses an issue found by the HPPA team and addressed by Sergei Trofimovich (slyfox). Closes: https://bugs.gentoo.org/656104 Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../libressl/files/libressl-2.6.4-hppa-asm.patch | 62 ++++++++++++++++++++++ dev-libs/libressl/libressl-2.6.4.ebuild | 2 + 2 files changed, 64 insertions(+)
Created attachment 534876 [details] dev-libs:libressl-2.6.4:20180605-063023.log.xz The patch isn't actually applied because the custom src_prepare() does not call eapply.
commit a998a0c563b2d8117f2e8669b33be0b5458311dc Author: Jeroen Roovers <jer@gentoo.org> Date: Tue Jun 5 09:12:06 2018 +0200 dev-libs/libressl: Fix src_prepare() (bug #656104). Package-Manager: Portage-2.3.40, Repoman-2.3.9 diff --git a/dev-libs/libressl/libressl-2.6.4.ebuild b/dev-libs/libressl/libressl-2.6.4.ebuild index 0bcae6becd6..5f32a09d419 100644 --- a/dev-libs/libressl/libressl-2.6.4.ebuild +++ b/dev-libs/libressl/libressl-2.6.4.ebuild @@ -36,7 +36,7 @@ src_prepare() { -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \ configure || die "fixing CFLAGS failed" - eapply_user + default } multilib_src_configure() {