Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581706 - dev-lisp/sbcl-1.3.4 - mmap: Operation not permitted // ensure_space: failed to validate 1040384 bytes at 0x20000000
Summary: dev-lisp/sbcl-1.3.4 - mmap: Operation not permitted // ensure_space: failed t...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Stelian Ionescu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-01 09:39 UTC by Toralf Förster
Modified: 2018-05-05 14:31 UTC (History)
6 users (show)

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


Attachments
dev-lisp:sbcl-1.3.4:20160430-232358.log (dev-lisp:sbcl-1.3.4:20160430-232358.log,10.00 KB, text/plain)
2016-05-01 09:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,241.53 KB, text/plain)
2016-05-01 09:39 UTC, Toralf Förster
Details
environment (environment,97.83 KB, text/plain)
2016-05-01 09:39 UTC, Toralf Förster
Details
SBCL-1.3.13 memory patch (sbcl-memory.patch,372 bytes, patch)
2017-01-24 12:46 UTC, Anton Kochkov
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-05-01 09:39:18 UTC
ensure_space: failed to validate 1040384 bytes at 0x20000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)
 * ERROR: dev-lisp/sbcl-1.3.4::gentoo failed (compile phase):
 *   make failed
 * 
 * Call stack:


$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-desktop-unstable_20160426-215941) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  make.conf: USE="mmx sse sse2 pax_kernel xtpax -cdinstall -oci8 -bindist sdl sdl2 -X -gtk -opengl -sound -video"

  -----------------------------------------------------------------
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.3.0, glibc-2.23-r2, 4.5.2-hardened-r1 x86_64)
=================================================================
System uname: Linux-4.5.2-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16157888 total,   1170836 free
KiB Swap:   16777212 total,  16742796 free
Timestamp of repository gentoo: Sat, 30 Apr 2016 20:43:22 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/lib/i2pd/certificates"
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=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose-conflicts --color=n --nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox 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://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="a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg openmp pam pango pax_kernel pcre pdf png policykit ppds qt3support qt4 readline sdl sdl2 seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xtpax xv xvid 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="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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" 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_4" RUBY_TARGETS="ruby20 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
Comment 1 Toralf Förster gentoo-dev 2016-05-01 09:39:29 UTC
Created attachment 432748 [details]
dev-lisp:sbcl-1.3.4:20160430-232358.log
Comment 2 Toralf Förster gentoo-dev 2016-05-01 09:39:39 UTC
Created attachment 432750 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2016-05-01 09:39:50 UTC
Created attachment 432752 [details]
environment
Comment 4 nvinson234 2016-05-15 23:56:23 UTC
Did you verify that ulimit settings were not the cause?
Comment 5 Stelian Ionescu 2016-05-16 00:32:10 UTC
My guess is that PaX is mucking with the memory mappings and something else is mapped at 0x20000000. 1040384 is 1MB and it cannot be a ulimit problem.
Comment 6 Anton Kochkov 2016-10-05 14:07:24 UTC
Can confirm with dev-lisp/sbcl-1.3.9

//Starting build: Wed Oct  5 16:02:57 CEST 2016
//Options: --prefix='/usr' --xc-host='sh /var/tmp/portage/dev-lisp/sbcl-1.3.9/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger'
(running SBCL from: /var/tmp/portage/dev-lisp/sbcl-1.3.9/work/sbcl-binary)
mmap: Operation not permitted
ensure_space: failed to validate 1040384 bytes at 0x20000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)

Here is my corresponding 'emerge --info' output: https://bugs.gentoo.org/show_bug.cgi?id=596238#c0
Comment 7 Anton Kochkov 2016-10-05 14:08:52 UTC
Ah, here is my 'ulimit -a' output:

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 63787
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 256000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63787
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
Comment 8 Anton Kochkov 2017-01-24 11:28:39 UTC
Same with sbcl-1.3.13
Comment 9 Anton Kochkov 2017-01-24 11:49:07 UTC
Found this patch https://sourceforge.net/p/sbcl/sbcl/ci/55abdffb4b920e5e1bf370062eb695e2c17aacd1/ in the article http://jany.st/tag/sbcl.html

--- a/src/runtime/linux-os.c
+++ b/src/runtime/linux-os.c
@@ -337,6 +337,10 @@
         addr=under_2gb_free_pointer;
     }
 #endif
+
+    if (addr)
+        flags |= MAP_FIXED;
+
     actual = mmap(addr, len, OS_VM_PROT_ALL, flags, -1, 0);
     if (actual == MAP_FAILED) {
         perror("mmap");
Comment 10 Anton Kochkov 2017-01-24 12:46:54 UTC
Created attachment 461238 [details, diff]
SBCL-1.3.13 memory patch

Attached this patch is a suitable form. But the problem that it happens on the stage of running binary:

[32;01m * [39;49;00mPackage:    dev-lisp/sbcl-1.3.13
[32;01m * [39;49;00mRepository: x-portage
[32;01m * [39;49;00mMaintainer: pchrist@gentoo.org sionescu+gentoo@cddr.org,nvinson234@gmail.com,common-lisp@gentoo.org,proxy-maint@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux pax_kernel threads unicode userland_GNU zlib
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking sbcl-1.3.13-source.tar.bz2 to /var/tmp/portage/dev-lisp/sbcl-1.3.13/work
>>> Unpacking sbcl-1.3.13-x86-64-linux-binary.tar.bz2 to /var/tmp/portage/dev-lisp/sbcl-1.3.13/work
>>> Source unpacked in /var/tmp/portage/dev-lisp/sbcl-1.3.13/work
>>> Preparing source in /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13 ...
 [32;01m*[0m Applying gentoo-fix_install_man.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying concurrency-test-1.2.6.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying bsd-sockets-test-1.3.12.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying sb-posix-test-1.2.15.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying sbcl-1.3.11-config.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying sbcl-1.2.11-solaris.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying sbcl-1.2.13-verbose-build.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Disabling PIE...
 [32;01m*[0m Applying sbcl-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying pax.patch ...
[A[121C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13 ...
(lambda (list)
  (flet ((enable  (x) (pushnew x list))
         (disable (x) (setf list (remove x list))))
(enable :sb-thread)
(enable :sb-ldb)
(disable :sb-test)
(enable :sb-unicode)
(enable :sb-core-compression)
(disable :sb-xref-for-internals)
    )
  list)
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13 ...
 [32;01m*[0m PT_PAX marking -mr /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/src/runtime/sbcl with paxctl
 [32;01m*[0m PT_PAX marking -mr /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/src/runtime/sbcl with paxctl-ng
 [32;01m*[0m XATTR_PAX marking -mr /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/src/runtime/sbcl with paxctl-ng
+ set -e
+ print_help=no
+ '[' linux-gnu = cygwin -o linux-gnu = msys ']'
+ SBCL_PREFIX=/usr
+ SBCL_XC_HOST='sbcl --no-userinit --no-sysinit'
+ export SBCL_XC_HOST
+ WITH_FEATURES=
+ WITHOUT_FEATURES=
+ FANCY_FEATURES=':sb-core-compression :sb-xref-for-internals :sb-after-xc-core'
+ fancy=false
+ some_options=false
+ for option in "$@"
+ optarg_ok=true
+ case $option in
+ optarg=
+ case $option in
+ false
+ legacy_xc_spec='sh /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger'
+ some_options=true
+ test -f customize-target-features.lisp
+ test -n ''
+ test -n ''
+ test -n 'sh /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger'
+ SBCL_XC_HOST='sh /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger'
+ test no = yes
+ sh clean.sh
find: '../../obj/asdf-cache/sb-md5': No such file or directory
find: '../../obj/asdf-cache/sb-queue': No such file or directory
find: '../../obj/asdf-cache/sb-concurrency': No such file or directory
find: '../../obj/asdf-cache/sb-rotate-byte': No such file or directory
find: '../../obj/asdf-cache/sb-grovel': No such file or directory
find: '../../obj/asdf-cache/sb-sprof': No such file or directory
find: '../../obj/asdf-cache/sb-bsd-sockets': No such file or directory
find: '../../obj/asdf-cache/sb-cover': No such file or directory
find: '../../obj/asdf-cache/sb-posix': No such file or directory
rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
rm -rf sbcl asdf version "docstrings/"
rm -f  sbcl.html asdf.html
rm -f contrib-docs.texi-temp
rm -f package-locks.texi-temp
rm -f variables.texinfo
rm -f sbcl.ps asdf.ps sbcl.pdf asdf.pdf html-stamp tempfiles-stamp
rm -f asdf.aux asdf.cp asdf.cps asdf.fn asdf.fns asdf.ky asdf.log asdf.pg asdf.toc asdf.tp asdf.tps asdf.vr asdf.vrs sbcl.aux sbcl.cp sbcl.cps sbcl.fn sbcl.fns sbcl.ky sbcl.log sbcl.pg sbcl.toc sbcl.tp sbcl.tps sbcl.vr sbcl.vrs 
rm -f sbcl.info sbcl.info-* asdf.info
rm -rf *.include *.info *.pdf *~ *.cp *.fn *.ky *.log *.pg *.toc \
	*.tp *.vr *.aux *.eps *.png *.dvi *.ps *.txt *.fns \
	html-stamp sbcl-internals/
+ mkdir -p output
+ echo 'SBCL_PREFIX='\''/usr'\'''
+ echo ''
+ '[' linux-gnu = cygwin -o linux-gnu = msys ']'
+ DEVNULL=/dev/null
+ export DEVNULL
+ . ./find-gnumake.sh
+ find_gnumake
+ '[' make '!=' '' ']'
+ GNUMAKE=make
+ export GNUMAKE
+ ./generate-version.sh
+ echo 'DEVNULL="/dev/null"; export DEVNULL'
+ echo 'GNUMAKE="make"; export GNUMAKE'
+ echo 'SBCL_XC_HOST="sh /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"; export SBCL_XC_HOST'
+ echo 'legacy_xc_spec="sh /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"; export legacy_xc_spec'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ case `uname` in
++ uname
+ sbcl_os=linux
+ echo //entering make-config.sh
//entering make-config.sh
+ echo //ensuring the existence of output/ directory
//ensuring the existence of output/ directory
+ '[' '!' -d output ']'
+ echo //guessing default target CPU architecture from host architecture
//guessing default target CPU architecture from host architecture
+ case `uname -m` in
++ uname -m
+ guessed_sbcl_arch=x86-64
+ '[' linux = sunos ']'
+ '[' linux = darwin ']'
+ echo //setting up CPU-architecture-dependent information
//setting up CPU-architecture-dependent information
+ test -n ''
+ sbcl_arch=x86-64
+ echo 'sbcl_arch="x86-64"'
sbcl_arch="x86-64"
+ '[' x86-64 = '' ']'
+ false
+ case $sbcl_arch in
+ case $sbcl_os in
+ WITH_FEATURES=' :sb-thread'
++ pwd
+ ltf=/var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/local-target-features.lisp-expr
+ echo //initializing /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/local-target-features.lisp-expr
//initializing /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/local-target-features.lisp-expr
+ echo ';;;; This is a machine-generated file.'
+ echo ';;;; Please do not edit it by hand.'
+ echo ';;;; See make-config.sh.'
+ echo '(lambda (features) (set-difference (union features (list :sb-thread '
+ printf :%s x86-64
+ echo //setting up OS-dependent information
//setting up OS-dependent information
+ '[' linux = darwin ']'
++ pwd
+ original_dir=/var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13
+ cd ./src/runtime/
+ rm -f Config target-arch-os.h target-arch.h target-os.h target-lispregs.h
+ link_or_copy x86-64-arch.h target-arch.h
+ '[' linux = win32 ']'
+ ln -s x86-64-arch.h target-arch.h
+ link_or_copy x86-64-lispregs.h target-lispregs.h
+ '[' linux = win32 ']'
+ ln -s x86-64-lispregs.h target-lispregs.h
+ case "$sbcl_os" in
+ printf ' :unix'
+ printf ' :elf'
+ printf ' :linux'
+ case "$sbcl_arch" in
+ printf ' :sb-futex :largefile'
+ link_or_copy Config.x86-64-linux Config
+ '[' linux = win32 ']'
+ ln -s Config.x86-64-linux Config
+ link_or_copy x86-64-linux-os.h target-arch-os.h
+ '[' linux = win32 ']'
+ ln -s x86-64-linux-os.h target-arch-os.h
+ link_or_copy linux-os.h target-os.h
+ '[' linux = win32 ']'
+ ln -s linux-os.h target-os.h
+ cd /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13
+ '[' x86-64 = x86 ']'
+ '[' x86-64 = x86-64 ']'
+ printf ' :64-bit :64-bit-registers :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack :linkage-table'
+ printf ' :compare-and-swap-vops :unwind-to-frame-and-call-vop :raw-instance-init-vops'
+ printf ' :precise-arg-count-error :fp-and-pc-standard-save :unbind-n-vop'
+ printf ' :stack-allocatable-closures :stack-allocatable-vectors'
+ printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects'
+ printf ' :alien-callbacks :cycle-counter :complex-float-vops :raw-signed-word'
+ printf ' :float-eql-vops :integer-eql-vop :inline-constants :memory-barrier-vops'
+ printf ' :multiply-high-vops :sb-simd-pack :ash-right-vops :symbol-info-vops'
+ case "$sbcl_os" in
+ printf ' :immobile-space :immobile-code :compact-instance-header'
+ make -C tools-for-build determine-endianness -I ../src/runtime
make: Entering directory '/var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/tools-for-build'
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -O2 -pipe -fno-omit-frame-pointer -fno-pie -I../src/runtime -Wl,-O1 -Wl,--as-needed -nopie  determine-endianness.c  -ldl -o determine-endianness
make: Leaving directory '/var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/tools-for-build'
+ tools-for-build/determine-endianness
+ export sbcl_os sbcl_arch
+ sh tools-for-build/grovel-features.sh
+ echo //finishing /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/local-target-features.lisp-expr
//finishing /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13/local-target-features.lisp-expr
+ echo ')) (list)))'
++ uname
+ '[' Linux = SunOS ']'
++ hostname
++ id -un
++ date +%Y-%m-%d-%H-%M-%S
+ echo '"xserver-portage-2017-01-24-13-40-51"'
+ '[' -n '' ']'
//Starting build: Tue Jan 24 13:40:51 CET 2017
//Options: --prefix='/usr' --xc-host='sh /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger'
(running SBCL from: /var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-binary)
mmap: Operation not permitted
ensure_space: failed to validate 1040384 bytes at 0x20000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)
 [31;01m*[0m ERROR: dev-lisp/sbcl-1.3.13::x-portage failed (compile phase):
 [31;01m*[0m   make failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line 115:  Called src_compile
 [31;01m*[0m   environment, line 2492:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       env - HOME="${T}" PATH="${PATH}" CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" GNUMAKE=make ./make.sh "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" || die "make failed";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-lisp/sbcl-1.3.13::x-portage'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-lisp/sbcl-1.3.13::x-portage'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-lisp/sbcl-1.3.13/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-lisp/sbcl-1.3.13/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13'
 [31;01m*[0m S: '/var/tmp/portage/dev-lisp/sbcl-1.3.13/work/sbcl-1.3.13'


This means that provided binary should be recompiled using this patch
Comment 11 Andrey Grozin gentoo-dev 2017-01-24 13:31:47 UTC
The sbcl ebuild uses the official sbcl binary (from their site, the version number depends on the arch) to compile the sbcl source, and installs the resulting (locally produced) sbcl. If the official binary does not work on your system, the only way out is to ask the upstream to include this patch (https://sourceforge.net/p/sbcl/sbcl/ci/55abdffb4b920e5e1bf370062eb695e2c17aacd1/) to the next release, and to release the resulting binary which can work on your system. We can do nothing ourselves: in order to compile sbcl sources, we rely on the (official) upstream sbcl binaries.
Comment 12 Chema Alonso Josa (RETIRED) gentoo-dev 2018-05-05 14:31:47 UTC
Let's try to stabilize >=dev-lisp/sbcl-1.4.6 due to bug #640320