Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268248 - dev-haskell/mtl-1.1.0.2 fails to emerge due to Stack space overflow
Summary: dev-haskell/mtl-1.1.0.2 fails to emerge due to Stack space overflow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 08:20 UTC by Juergen Rose
Modified: 2010-07-12 14:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2009-05-02 08:20:34 UTC
'emerge dev-haskell/mtl' fails with:
...
[21 of 21] Compiling Control.Monad.Cont ( Control/Monad/Cont.hs, dist/build/Control/Monad/Cont.o )
/usr/bin/ar: creating dist/build/libHSmtl-1.1.0.2.a
Preprocessing library mtl-1.1.0.2...
Running Haddock for mtl-1.1.0.2...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: rts-1.0
Stack space overflow: current size 8388608 bytes.
Use `+RTS -Ksize' to increase it.
 * 
 * ERROR: dev-haskell/mtl-1.1.0.2 failed.


Reproducible: Always




root@condor:/root(66)# emerge --info
Portage 2.1.6.12 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Sat, 02 May 2009 06:00:13 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-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.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/sh
are/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/p
hp/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.d
at.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exc
lude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/zugaina /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /
usr/local/portage/layman/jokey /usr/local/portage/layman/lordvan /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle b
erkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt cups cu
rl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvdread dvi dxr3 dynagraph eds effects elf emacs emboss encode ep
iphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac 
glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp h
df hdf5 hlapi http hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc isdnlog ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde kd
e4 kdeprefix kerberos kexi keyring kvm ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo lzw mad maildir mailwr
apper math matroska midi mikmod mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib mus
icbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric nvidia obex ocaml o
ctave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj
 projectx pstricks python qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slan
g slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theo
ra threads thunderbird tidy tiff tk truetype unicode usb userlocales utempter v4l2 vorbis webkit wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc
 xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 io
plug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon
 authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock db
d deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation p
roxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="cx8800 cx88xx td
a1004x saa713" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxo
rb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa
"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lennart Kolmodin (RETIRED) gentoo-dev 2009-05-04 18:08:51 UTC
Which dev-lang/ghc version did you use, and which dev-haskell/haddock version?
Comment 2 Juergen Rose 2009-05-05 07:57:40 UTC
I have:

root@condor:/usr/share/pixmaps(27)# emerge -pvD dev-lang/ghc dev-haskell/haddock

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/ghc-6.10.2  USE="bash-completion doc -binary -ghcbootstrap -ghcmakebinary" 0 kB
[ebuild  N    ] dev-haskell/ghc-paths-0.1.0.5  USE="doc -profile" 0 kB
[ebuild     U ] dev-haskell/haddock-2.4.2 [0.9] USE="doc" 0 kB

And I can't update haddock, because it depends on ghc-paths and 'emerge ghc-paths' fails also with:
Stack space overflow: current size 8388608 bytes.
Use `+RTS -Ksize' to increase it.
 * 
 * ERROR: dev-haskell/ghc-paths-0.1.0.5 failed.

Comment 3 Ivan 2009-05-05 11:21:33 UTC
Install ghc-paths with USE=-doc to prevent a recursive dep (I don't see how this stack space problem could have occurred, as haddock-2.4.2 depends on ghc-paths...).
Comment 4 Lennart Kolmodin (RETIRED) gentoo-dev 2009-05-05 17:36:56 UTC
So your installed versions are:
ghc-6.10.2
haddock-0.9

Running
$ emerge -pvD dev-lang/ghc
wants to update to haddock-2.4.2 by first installing ghc-paths-1.0.5.0 and then haddock-2.4.2.

Building any packages seems to trigger bugs in haddock-0.9, possibly due to the changed ghc version (missing interface files or something...).

I think we should use a similar solution we've used before, namely to bundle all deps into the haddock package. Previously this was only filepath, now it would also include the ghc-paths package.

This would allow to install haddock without having any deps on packages that might have the USE=doc flag, thus should not trigger any faults in haddock.
You would probably like to build your packages with the most recent haddock anyway, to get your docs up to date as well.

A quick workaround, if you're in a hurry, would be to emerge filepath and ghc-paths with USE=-doc to avoid the dependency on haddock, then update your haddock and recompile the packages with USE=doc.

Thanks for using the masked packages and reporting issues, it helps us find errors more quickly and to unmask ghc sooner.
Comment 5 Juergen Rose 2009-05-06 06:15:30 UTC
Removing the doc USE flag from dev-haskell/ghc-paths was the solution. After that I could emerge ghc-paths, haddock and mtl.

Thanks, Juergen
Comment 6 Lennart Kolmodin (RETIRED) gentoo-dev 2009-05-06 20:59:32 UTC
ghc-updater should make sure that haddock-2.4.2 is installed before attempting to upgrade any other packages.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-12 14:38:10 UTC
Closing the bug as FIXED

as haddock does not depend on anything, which can lead to circular depends.