Created attachment 415192 [details] emerge --info On my hardened ~amd64 machine I see the following issue. After upgrading asdf to version 3.1.6 sbcl fails to compile as below. Downgrading asdf to version 3.1.5 makes the problem vanish. I now masked asdf-3.1.6. /var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/src/runtime/sbcl --noinform --core /var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/output/sbcl.core --lose-on-corruption --disable-debugger --no-sysinit --no-userinit --load ../asdf-stub.lisp \ --eval '(asdf::build-asdf-contrib "sb-simple-streams")' WARNING: redefining ASDF/SOURCE-REGISTRY:WRAPPING-SOURCE-REGISTRY in DEFUN Unhandled SIMPLE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING {1002C6D6F3}>: The assertion (UIOP/UTILITY:LENGTH=N-P ASDF/ACTION::FILES 1) failed with ASDF/ACTION::FILES = NIL. Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1002C6D6F3}> 0: ((LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX)) 1: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {100330FB6B}>) 2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {100330FB3B}>) 3: (PRINT-BACKTRACE :STREAM #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {1000152823}> :START 0 :FROM :INTERRUPTED-FRAME :COUNT NIL :PRINT-THREAD T :PRINT-FRAME-SOURCE NIL :METHOD-FRAME-STYLE NIL) 4: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {100330B113}> #<unavailable argument>) 5: (SB-DEBUG::RUN-HOOK *INVOKE-DEBUGGER-HOOK* #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {100330B113}>) 6: (INVOKE-DEBUGGER #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {100330B113}>) 7: (ERROR #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {100330B113}>) 8: (SB-KERNEL:ASSERT-ERROR (UIOP/UTILITY:LENGTH=N-P ASDF/ACTION::FILES 1) ((ASDF/ACTION::FILES NIL)) NIL NIL) 9: (ASDF/ACTION:OUTPUT-FILE ASDF/BUNDLE:COMPILE-BUNDLE-OP #<ASDF/SYSTEM:SYSTEM "sb-simple-streams">) 10: (ASDF/INTERFACE::BUILD-ASDF-CONTRIB "sb-simple-streams") 11: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF/INTERFACE::BUILD-ASDF-CONTRIB "sb-simple-streams") #<NULL-LEXENV>) 12: (EVAL (ASDF/INTERFACE::BUILD-ASDF-CONTRIB "sb-simple-streams")) 13: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:LOAD . "../asdf-stub.lisp") (:EVAL . "(asdf::build-asdf-contrib \"sb-simple-streams\")"))) 14: (SB-IMPL::TOPLEVEL-INIT) 15: ((FLET #:WITHOUT-INTERRUPTS-BODY-86 :IN SAVE-LISP-AND-DIE)) 16: ((LABELS SB-IMPL::RESTART-LISP :IN SAVE-LISP-AND-DIE)) unhandled condition in --disable-debugger mode, quitting ../asdf-module.mk:32: recipe for target '/var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/obj/sbcl-home/contrib//sb-simple-streams.fasl' failed make: *** [/var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/obj/sbcl-home/contrib//sb-simple-streams.fasl] Error 1 make: Leaving directory '/var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/contrib/sb-simple-streams'
Created attachment 415194 [details] build log (bzipped)
Created attachment 415198 [details] emerge --info On my non-hardened mixed amd64 machine I saw the same error on different target: /var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/src/runtime/sbcl --noinform --core /var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/output/sbcl.core --lose-on-corruption --disable-debugger --no-sysinit --no -userinit --load ../asdf-stub.lisp \ --eval '(asdf::build-asdf-contrib "sb-aclrepl")' WARNING: redefining ASDF/SOURCE-REGISTRY:WRAPPING-SOURCE-REGISTRY in DEFUN Unhandled SIMPLE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING {1002C6D673}>: The assertion (UIOP/UTILITY:LENGTH=N-P ASDF/ACTION::FILES 1) failed with ASDF/ACTION::FILES = NIL. Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1002C6D673}> 0: ((LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX)) 1: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {1003347E4B}>) 2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {1003347E1B}>) 3: (PRINT-BACKTRACE :STREAM #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {1000152823}> :START 0 :FROM :INTERRUPTED-FRAME :COUNT NIL :PRINT-THREAD T :PRINT-FRAME-SOURCE NIL :METHOD-FRAME-STYLE NIL) 4: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {10033435D3}> #<unavailable argument>) 5: (SB-DEBUG::RUN-HOOK *INVOKE-DEBUGGER-HOOK* #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {10033435D3}>) 6: (INVOKE-DEBUGGER #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {10033435D3}>) 7: (ERROR #<SIMPLE-ERROR "~@<The assertion ~S failed~:[.~:; ~ with ~:*~{~{~S = ~S~}~^, ~}.~]~:@>" {10033435D3}>) 8: (SB-KERNEL:ASSERT-ERROR (UIOP/UTILITY:LENGTH=N-P ASDF/ACTION::FILES 1) ((ASDF/ACTION::FILES NIL)) NIL NIL) 9: (ASDF/ACTION:OUTPUT-FILE ASDF/BUNDLE:COMPILE-BUNDLE-OP #<ASDF/SYSTEM:SYSTEM "sb-aclrepl">) 10: (ASDF/INTERFACE::BUILD-ASDF-CONTRIB "sb-aclrepl") 11: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF/INTERFACE::BUILD-ASDF-CONTRIB "sb-aclrepl") #<NULL-LEXENV>) 12: (EVAL (ASDF/INTERFACE::BUILD-ASDF-CONTRIB "sb-aclrepl")) 13: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:LOAD . "../asdf-stub.lisp") (:EVAL . "(asdf::build-asdf-contrib \"sb-aclrepl\")"))) 14: (SB-IMPL::TOPLEVEL-INIT) 15: ((FLET #:WITHOUT-INTERRUPTS-BODY-86 :IN SAVE-LISP-AND-DIE)) 16: ((LABELS SB-IMPL::RESTART-LISP :IN SAVE-LISP-AND-DIE)) unhandled condition in --disable-debugger mode, quitting ../asdf-module.mk:32: recipe for target '/var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/obj/sbcl-home/contrib//sb-aclrepl.fasl' failed make: *** [/var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/obj/sbcl-home/contrib//sb-aclrepl.fasl] Error 1 make: Leaving directory '/var/tmp/portage/dev-lisp/sbcl-1.2.16/work/sbcl-1.2.16/contrib/sb-aclrepl' Furthermore, re-emerging sbcl-1.2.14 failed in the same place in the same way. Either version works after rolling back to dev-lisb/asdf-3.1.4 , not tried with 3.1.5. Build logs to follow.
Created attachment 415200 [details] Build log of sbcl-1.2.16
Created attachment 415202 [details] Build log of sbcl-1.2.14
For me 'MAKEOPTS=-j1 emerge -v1 sbcl' fails with: ... WARNING! Some of the contrib modules did not build successfully or pass their self-tests. Failed contribs:" + HEADER_HAS_BEEN_PRINTED=true + echo ' sb-aclrepl' sb-aclrepl + for dir in '`cd contrib ; echo *`' + '[' -d contrib/sb-bsd-sockets -a -f contrib/sb-bsd-sockets/Makefile -a '!' -f obj/asdf-cache/sb-bsd-sockets/test-passed.test-report ']' + true + echo + echo ' sb-bsd-sockets' sb-bsd-sockets + for dir in '`cd contrib ; echo *`' + '[' -d contrib/sb-cltl2 -a -f contrib/sb-cltl2/Makefile -a '!' -f obj/asdf-cache/sb-cltl2/test-passed.test-report ']' + true + echo + echo ' sb-cltl2' sb-cltl2 + for dir in '`cd contrib ; echo *`' + '[' -d contrib/sb-concurrency -a -f contrib/sb-concurrency/Makefile -a '!' -f obj/asdf-cache/sb-concurrency/test-passed.test-report ']' + true + echo ... + echo + echo ' sb-rt' sb-rt + for dir in '`cd contrib ; echo *`' + '[' -d contrib/sb-simple-streams -a -f contrib/sb-simple-streams/Makefile -a '!' -f obj/asdf-cache/sb-simple-streams/test-passed.test-report ']' + true + echo + echo ' sb-simple-streams' sb-simple-streams + for dir in '`cd contrib ; echo *`' + '[' -d contrib/sb-sprof -a -f contrib/sb-sprof/Makefile -a '!' -f obj/asdf-cache/sb-sprof/test-passed.test-report ']' + for dir in '`cd contrib ; echo *`' + '[' -d contrib/stale-symbols.lisp -a -f contrib/stale-symbols.lisp/Makefile -a '!' -f obj/asdf-cache/stale-symbols.lisp/test-passed.test-report ']' + for dir in '`cd contrib ; echo *`' + '[' -d contrib/vanilla-module.mk -a -f contrib/vanilla-module.mk/Makefile -a '!' -f obj/asdf-cache/vanilla-module.mk/test-passed.test-report ']' + '[' true = true ']' + exit 1 * ERROR: dev-lisp/sbcl-1.2.16::gentoo failed (compile phase): * make failed Portage 2.2.22 (python 2.7.10-final-0, default/linux/x86/13.0, gcc-4.9.3, glibc-2.22-r1, 4.2.3-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-4.2.3-gentoo-i686-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.2 KiB Mem: 1922552 total, 693576 free KiB Swap: 4194300 total, 4146828 free Timestamp of repository gentoo: Fri, 23 Oct 2015 18:30:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.2::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.3::gentoo sys-apps/sandbox: 2.9::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 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.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r1::gentoo Repositories: gentoo location: /usr/portage_lynxvirt sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -march=i686 -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" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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" PORTAGE_TMPDIR="/var/tmp" USE="X acl admin alsa apng automount bash-completion berkdb boost bzip2 cairo cdda cli cmake cracklib crypt cups curl cxx dbus djvu doc dot dri eds egl emacs evdev exif extra fftw fontconfig fortran fpx fuse gd gdbm gif gimp git gmp gnome gnome-keyring gnuplot gnutls gpm graphics graphtft graphviz gstreamer gtk gudev hdf hdf5 hdri hwdb iconv imagemagick introspection ipv6 ithreads jadetex jbig jpeg jpeg2k kerberos latex lcms ldap lensfun libkms lzma lzo mercurial mmx modules motif mp3 mp4 ncurses netpbm nls nptl ntp ogg opencv openexr opengl openmp pam pango pcre pdf pdl perl plotutils plplot png policykit postscript preview-latex pulseaudio python q32 qemu qt5 raw readline samba seccomp session sockets sound sqlite sse sse2 ssl subversion svg systemd tcl tcpd tex theora threads tiff tk truetype udev udisks unicode usb vala valgrind webkit wmf x86 xa xattr xemacs xml xpm yaml zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" CAMERAS="ptp2" 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 itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="virtualbox" 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, USE_PYTHON [ebuild r U ] dev-lisp/sbcl-1.2.16 [1.2.15] USE="doc threads unicode zlib -debug -pax_kernel -source" [ebuild rR ] sci-mathematics/maxima-5.37.2 USE="X emacs latex nls tk unicode xemacs -clisp -clozurecl -cmucl -ecls -gcl -sbcl" LINGUAS="-es -pt -pt_BR" The following packages are causing rebuilds: (dev-lisp/sbcl-1.2.16:0/1.2.16::gentoo, ebuild scheduled for merge) causes rebuilds for: (sci-mathematics/maxima-5.37.2:0/0::gentoo, ebuild scheduled for merge)
Created attachment 415316 [details] build.log.bz2
Yes, after bumping dev-lisp/asdf to 3.1.6 I did some research, I posted it here: https://bugs.gentoo.org/show_bug.cgi?id=559718#c5 I think the best workaround now is to mask dev-lisp/asdf-3.1.6. Thanks.
commit cdd8a3b690b12af2a4fc0b78a3787b969d0b7f47 Author: Ian Delaney <idella4@gentoo.org> Date: Tue Oct 27 10:51:40 2015 +0800 profiles/package.mask pmask asdf-3.1.6
which obligated =dev-lisp/uiop-3.1.6 to also be pamsed
(In reply to Chema Alonso from comment #7) > Yes, after bumping dev-lisp/asdf to 3.1.6 I did some research, I posted it > here: > > https://bugs.gentoo.org/show_bug.cgi?id=559718#c5 > > I think the best workaround now is to mask dev-lisp/asdf-3.1.6. > > Thanks. With sbcl-1.3.0 the problem is the same.
(In reply to Markus Oehme from comment #10) > > With sbcl-1.3.0 the problem is the same. Yeah, the problem persists since sbcl-1.3.0 still ships with asdf-3.1.5: According to this thread: https://mailman.common-lisp.net/pipermail/asdf-devel/2015-October/004957.html we have to wait a long time until sbcl includes asdf-3.1.6 or higher as a contrib module which tends to be true when lookig at the commit history of asdf.lisp in the sbcl tree: http://sourceforge.net/p/sbcl/sbcl/ci/12d2ccabe40cd0992fb89122c7f224ee7d733ef8/log/?path=/contrib/asdf/asdf.lisp Another workaround is to avoid copying the asdf.lisp in the sbcl-1.3.0 ebuild (line 122). It builds fine here.
Problem persists with last version of asdf and uiop (3.1.7). Masked both in profiles/packages.mask +# José María Alonso <nimiux@gentoo.org> (24 Mar 2016) +# Fails to build dev-lisp/sbcl-1.3.3 #563812 +=dev-lisp/asdf-3.1.7 +=dev-lisp/uiop-3.1.7