Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215049 - dev-lisp/sbcl-1.0.9 fails if linux overcommitment of memory is off
Summary: dev-lisp/sbcl-1.0.9 fails if linux overcommitment of memory is off
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 13:25 UTC by Arvid Norlander
Modified: 2008-03-27 21:43 UTC (History)
0 users

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


Attachments
dev-lisp:sbcl-1.0.9:20080327-132249.log (dev-lisp:sbcl-1.0.9:20080327-132249.log,31.58 KB, text/plain)
2008-03-27 13:26 UTC, Arvid Norlander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Norlander 2008-03-27 13:25:39 UTC
If linux overcommitment of memory is turned off by setting /proc/sys/vm/overcommit_memory to 2, sbcl fails to compile (or if it is already installed: to run). It tries to allocate 8 GB RAM on intial running it seems, which is insane.

Reproducible: Always

Steps to Reproduce:
1. echo 2 > /proc/sys/vm/overcommit_memory
2. emerge -av sbcl


Actual Results:  
Full build log attached below, the interesting bit is however:
-64-bsd-os.h ./src/runtime/darwin-langinfo.h ./src/runtime/gc-internal.h ./src/runtime/validate.h ./src/runtime/parse.h ./src/runtime/x86-darwin-os.h ./src/runtime/monitor.h ./src/runtime/thread.h ./src/runtime/pthread-lutex.h ./src/runtime/alpha-arch.h ./src/runtime/ppc-linux-os.h ./src/runtime/x86-64-arch.h ./src/runtime/util.h ./src/runtime/fixnump.h ./src/runtime/pseudo-atomic.h ./src/runtime/os.h ./src/runtime/vars.h ./src/runtime/gencgc.h ./src/runtime/ppc-arch.h ./src/runtime/save.h ./src/runtime/interr.h ./src/runtime/core.h ./src/runtime/ppc-darwin-os.h ./src/runtime/x86-lispregs.h ./src/runtime/alpha-osf1-os.h ./src/runtime/target-arch-os.h ./src/runtime/alpha-linux-os.h ./src/runtime/target-os.h ./src/runtime/x86-win32-os.h ./src/runtime/osf1-os.h ./src/runtime/breakpoint.h ./src/runtime/linux-os.h ./src/runtime/bsd-os.h ./src/runtime/gc.h ./src/runtime/hppa-lispregs.h ./src/runtime/dynbind.h ./src/runtime/lispregs.h ./src/runtime/win32-os.h ./src/runtime/darwin-os.h ./src/runtime/x86-sunos-os.h ./src/runtime/mips-arch.h ./src/runtime/x86-arch.h ./src/runtime/mips-lispregs.h ./src/runtime/sparc-lispregs.h ./src/runtime/runtime.h ./src/runtime/mips-linux-os.h ./src/runtime/sparc-linux-os.h ./src/runtime/target-arch.h ./src/runtime/x86-64-darwin-os.h ./src/runtime/target-lispregs.h ./src/runtime/undefineds.h ./src/runtime/sparc-sunos-os.h ./src/runtime/search.h ./src/runtime/x86-64-lispregs.h ./src/runtime/ppc-bsd-os.h ./src/runtime/x86-bsd-os.h ./src/runtime/interrupt.h ./src/runtime/ppc-lispregs.h ./src/runtime/globals.h ./src/runtime/alloc.h
/$scratchfilename=/tmp/canonicalize-whitespace-1.25805.tmp
/$f=./customize-target-features.lisp
//entering make-host-1.sh
//building cross-compiler, and doing first genesis
mmap: Cannot allocate memory
ensure_space: failed to validate 8589869056 bytes at 0x1000000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)
 *
 * ERROR: dev-lisp/sbcl-1.0.9 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2481:  Called die
 * The specific snippet of code:
 *       env - HOME="${T}" PATH="${bindir}/src/runtime:${PATH}" SBCL_HOME="${bindir}/output" GNUMAKE=make ./make.sh "sbcl --sysinit /dev/null --userinit /dev/null        --disable-debugger --core ${bindir}/output/sbcl.core" || die "make failed";
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-lisp:sbcl-1.0.9:20080327-132249.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lisp/sbcl-1.0.9/temp/environment'.
 *


Expected Results:  
It should not require to be able to mmap 8 GB RAM. It should not depend on overcommitment of memory in linux

[ebuild  N    ] dev-lisp/sbcl-1.0.9  USE="unicode -cobalt -doc -ldb -source -threads" 0 kB

emerge --info:
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 AMD Sempron(tm) Processor 3300+
Timestamp of tree: Wed, 26 Mar 2008 07:16:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/gopher/gophermap"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -pipe -O2 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.gentoo.no/"
LINGUAS="en en_GB sv sv_SE"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/crossdev-overlay /usr/local/portage/cpan-overlay /usr/local/portage/nethack-overlay /usr/local/portage/generic-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 arts audiofile bash-completion berkdb bzip2 cairo caps ccache cdb cdr cli cracklib crypt cups curl dbus dri dvd dvdr dvdread emacs emboss encode evo exif expat fam fastcgi fbcon firefox flac fontconfig foomaticdb fortran gd gdbm gif glep gmp gnutls gpm gstreamer gtk iconv idea idn ieee1394 imlib iproute2 ipv6 isdnlog javascript joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kqemu lcms lm_sensors logrotate mad mbox midi mikmod mmx mmxext mng mono mozdevelop mp3 mpeg mudflap mysql mysqli ncurses nls nodrm nptl nptlonly nsplugin objc ogg openexr opengl openmp pam pcre pdf perl php physfs pic png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rle scanner sdl session sndfile spell spl sqlite sse sse2 ssl svg tcl tcpd tetex tiff tk truetype unicode usb utempter vorbis xcomposite xorg xpm xv zlib zsh-completion" ALSA_CARDS="emu10k1 loopback seq-dummy dummy" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB sv sv_SE" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa fbdev r128 nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arvid Norlander 2008-03-27 13:26:50 UTC
Created attachment 147443 [details]
dev-lisp:sbcl-1.0.9:20080327-132249.log

The build log