Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282023 - dev-lang/scala-2.7.5: compile failure due to ant
Summary: dev-lang/scala-2.7.5: compile failure due to ant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-19 13:40 UTC by Mark Haney
Modified: 2010-01-09 14:29 UTC (History)
2 users (show)

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


Attachments
scala-2.7.5 build log (build.log,12.33 KB, text/plain)
2009-08-19 18:08 UTC, Mark Haney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Haney 2009-08-19 13:40:55 UTC
I'm trying to compile scala on my amd64 system.  I've not run into the memory allocation errors, but scala bombs on a section where ant is called.

Reproducible: Always

Steps to Reproduce:
1. emerge -av scala
2. wait 20min or so.
3. fail.

Actual Results:  
* ERROR: dev-lang/scala-2.7.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4359:  Called eant 'all.clean' 'dist.done'
 *             environment, line 1023:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/scala-2.7.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/scala-2.7.5/temp/environment'.



Expected Results:  
should compile cleanly.

                  
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.15"                                 
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"                                                 
and of course, the output of emerge --info (below)

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================                                 
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 18 Aug 2009 13:45:03 +0000                                                 
app-shells/bash:     3.2_p39                                                                       
dev-java/java-config: 1.3.7-r1, 2.1.8-r1                                                           
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1, 3.1.1                                              
dev-python/pycrypto: 2.0.1-r8                                                                      
dev-util/cmake:      2.6.4-r2                                                                      
sys-apps/baselayout: 1.12.11.1                                                                     
sys-apps/sandbox:    2.0                                                                           
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.27-r2                                                                     
ACCEPT_KEYWORDS="amd64"                                                                            
CBUILD="x86_64-pc-linux-gnu"                                                                       
CFLAGS="-march=k8 -pipe -O2"                                                                       
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"                                                                                                          
CXXFLAGS="-march=k8 -pipe -O2"                                                                                                   
DISTDIR="/usr/portage/distfiles"                                                                                                 
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"          
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.seren.com/gentoo"                                                        
LANG="en_US.ISO-8859-1"                                                                                                          
LC_ALL="en_US.ISO-8859-1"                                                                                                        
LDFLAGS="-Wl,-O1"                                                                                                                
MAKEOPTS="-j2"                                                                                                                   
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 --exclude=/local --exclude=/packages"                                                                    
PORTAGE_TMPDIR="/var/tmp"                                                                                                        
PORTDIR="/usr/portage"                                                                                                           
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 arts berkdb bzip2 cdr cli cracklib crypt cups dri dvd dvdr dvdread encode faad flac fortran gdbm gpm hal iconv ipv6 irc isdnlog jpeg kde mad mmx mng mozbranding mp3 mp4 mpeg msn mudflap multilib mysql ncurses nls nowlistening nptl nptlonly nsplugin ogg opengl openmp oscar pam pcre pdf perl png pppd python qt qt3 qt3support qt4 readline reflection sasl sdl session sndfile spl sse sse2 ssl svg symlink sysfs tcpd tk unicode vorbis wlm x264 xcb xcomposite xml xorg xvid yahoo zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug 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 dbd 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Patrick Lauer gentoo-dev 2009-08-19 14:50:04 UTC
That message is rather pointless like this: It just tells us that something went wrong, but not what actually went wrong.
Please attach the relevant part or the whole build log.
Comment 2 Mark Haney 2009-08-19 18:08:52 UTC
Created attachment 201736 [details]
scala-2.7.5 build log

Sorry about that. I meant to add it when I filed the bug.
Comment 3 Nicolas Dietrich 2009-11-01 16:23:08 UTC
Pretty much the same thing on both of my two machines here (AMD64 and x86), though all stop at a slightly different point.

--- on the x86 box:

>>> sudo paludis --info 
paludis 0.42.1
Paludis build information:
    Compiler:
        CXX:                   i686-pc-linux-gnu-g++ 4.3.4
        CXXFLAGS:               -O2 -march=pentium-m -pipe -fomit-frame-pointer
        LDFLAGS:               -Wl,-O1
        DATE:                  2009-11-01T15:59:12+0100

    Libraries:
        C++ Library:           GNU libstdc++ 20090804

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib/python2.6/site-packages
        RUBYINSTALLDIR:        /usr/lib/ruby/site_ruby/1.8/i686-linux

System:
    Linux pasta 2.6.31-gentoo-r4kms #1 SMP Tue Oct 27 11:31:31 CET 2009 i686 Genuine Intel(R) CPU L2400 @ 1.66GHz GenuineIntel GNU/Linux

Reduced Privs:
    reduced_uid:               101
    reduced_uid->name:         paludisbuild
    reduced_uid->dir:          /var/tmp/paludis
    reduced_gid:               1000
    reduced_gid->name:         paludisbuild

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository virtuals:
    format:                    virtuals

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /usr/portage/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /var/cache/paludis/names
    newsdir:                   /usr/portage/metadata/news
    profile_eapi_when_unspecified: 0
    profiles:                  /usr/portage/profiles/default/linux/x86/10.0
    securitydir:               /usr/portage/metadata/glsa
    setsdir:                   /usr/portage/sets
    sync:                      rsync://rsync.europe.gentoo.org/gentoo-portage/
    sync_options:              
    use_manifest:              use
    write_cache:               /var/empty

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       4.0_p28
        dev-java/java-config:  2.1.9-r1
        dev-lang/python:       2.4.6 2.6.2-r1
        dev-python/pycrypto:   (none)
        dev-util/ccache:       (none)
        dev-util/cmake:        2.6.4-r3
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.1
        sys-apps/openrc:       0.5.2-r1
        sys-apps/sandbox:      1.6-r2
        sys-devel/autoconf:    2.63-r1
        sys-devel/automake:    1.10.2 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.1
        sys-devel/libtool:     2.2.6a
        virtual/os-headers:    2.6.27-r2 (for sys-kernel/linux-headers::installed)

--- relevant part of the corresponding build log:

docs.lib:
    [mkdir] Created dir: /var/tmp/paludis/dev-lang-scala-2.7.5/work/scala-2.7.5.final-sources/build/scaladoc/library
 [scaladoc] Documenting 23 source files to /var/tmp/paludis/dev-lang-scala-2.7.5/work/scala-2.7.5.final-sources/build/scaladoc/library
 [scaladoc] Documenting 443 source files to /var/tmp/paludis/dev-lang-scala-2.7.5/work/scala-2.7.5.final-sources/build/scaladoc/library
 [scaladoc] Documenting 94 source files to /var/tmp/paludis/dev-lang-scala-2.7.5/work/scala-2.7.5.final-sources/build/scaladoc/library
 [scaladoc] java.lang.OutOfMemoryError: Java heap space
 [scaladoc]     at scala.tools.nsc.util.HashSet.growTable(HashSet.scala:58)
 [scaladoc]     at scala.tools.nsc.util.HashSet.addEntry(HashSet.scala:41)
 [scaladoc]     at scala.tools.nsc.symtab.Types$class.unique(Types.scala:2280)
 [scaladoc]     at scala.tools.nsc.symtab.Types$class.mkThisType(Types.scala:1969)
 [scaladoc]     at scala.tools.nsc.symtab.SymbolTable.mkThisType(SymbolTable.scala:12)
 [scaladoc]     at scala.tools.nsc.symtab.Symbols$ClassSymbol.thisType(Symbols.scala:1585)
 [scaladoc]     at scala.tools.nsc.symtab.Types$CompoundType.narrow(Types.scala:1119)
 [scaladoc]     at scala.tools.nsc.symtab.Types$Type.narrow(Types.scala:269)
 [scaladoc]     at scala.tools.nsc.symtab.Types$TypeRef.narrow(Types.scala:1451)
 [scaladoc]     at scala.tools.nsc.symtab.Types$Type.findMember(Types.scala:708)
 [scaladoc]     at scala.tools.nsc.symtab.Types$Type.nonLocalMember(Types.scala:396)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.member(Typers.scala:600)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typedSelect$1(Typers.scala:2816)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3280)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3406)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:3457)
 [scaladoc]     at scala.tools.nsc.typechecker.Namers$Namer.methodSig(Namers.scala:759)
 [scaladoc]     at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:848)
 [scaladoc]     at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:415)
 [scaladoc]     at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:413)
 [scaladoc]     at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:982)
 [scaladoc]     at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:555)
 [scaladoc]     at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:669)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3078)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3395)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:1598)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643)
 [scaladoc]     at scala.List$.loop$1(List.scala:300)
 [scaladoc]     at scala.List$.mapConserve(List.scala:317)

BUILD FAILED
/var/tmp/paludis/dev-lang-scala-2.7.5/work/scala-2.7.5.final-sources/build.xml:879: Document failed because of an internal documenter error (Java heap space); see the error output for details.


--- on AMD64: 

>>> sudo emerge --info
Portage 2.2_rc48 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r4-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 01 Nov 2009 10:00:21 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
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/X11/xkb /usr/share/config"
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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de fr es eo"
MAKEOPTS="-j2"
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 --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/haskell /usr/local/portage/layman/sunrise /usr/local/portage/layman/kolab /usr/local/portage/layman/sping /usr/portage/local /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X aac aalib ace acl acpi akonadi alsa amd64 bash-completion berkdb bittorrent bzip2 cairo cli cracklib crypt css cups daap dbus dirac directfb docbook dot dri dvd dvdr dvdread dvi enblend encode epiphany espeak exif f-prot fam fbcon fbsplash ffmpeg file flac fortran gdbm geoip gif gimp git gmail gnutls gpg gpgme gphoto2 gpm graphviz grub gzip hal hbci iceweasel iconv id3 id3tag ieee1394 imagemagick inotify iproute2 ipv6 ipython jabber jack java6 jingle jpeg jpeg2k kate kde kde4 kdepim kipi kolab laptop latex libgcrypt lua lvm lzma mad markdown md5sum mediaplayer midi mikmod mmx mmxext mng modules mp3 mp3tunes mp4 mpeg mpeg2 mudflap multilib musepack musicbrainz ncurses nepomuk nls nptl nptlonly ocaml ocamlduce ocamlopt ogg openexr opengl openid openmp openstreetmap pam pcre pdf perl phonon plasma pmount png postgres pppd python python-bindings qt-webkit qt4 rar readline reflection schroedinger search semantic-desktop session sndfile solver speex spl sse sse2 ssh ssl subversion svg symlink sysfs taglib tcpd theora tiff timidity transcode unicode usb v4l2 vim vim-syntax visualization vorbis vorbis-psy wavpack webkit wifi wma x264 xine xinerama xorg xrandr xulrunner xvid xvmc zlib zsh-completion" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr es eo" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

--- and the corresponding build log part:

    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
 [scaladoc] java.lang.OutOfMemoryError: Java heap space
 [scaladoc]     at scala.tools.nsc.symtab.Types$Type.contains(Types.scala:490)
 [scaladoc]     at scala.tools.nsc.symtab.Types$class.solveOne$1(Types.scala:3854)
 [scaladoc]     at scala.tools.nsc.symtab.Types$$anonfun$solve$1.apply(Types.scala:3896)
 [scaladoc]     at scala.tools.nsc.symtab.Types$$anonfun$solve$1.apply(Types.scala:3895)
 [scaladoc]     at scala.List.foreach(List.scala:841)
 [scaladoc]     at scala.tools.nsc.symtab.Types$class.solve(Types.scala:3895)
 [scaladoc]     at scala.tools.nsc.symtab.SymbolTable.solve(SymbolTable.scala:12)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$class.scala$tools$nsc$typechecker$Infer$$solvedTypes(Infer.scala:151)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer.methTypeArgs(Infer.scala:580)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer.scala$tools$nsc$typechecker$Infer$Inferencer$$isApplicable(Infer.scala:642)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferMethodAlternative$1$$anonfun$25.apply(Infer.scala:1356)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferMethodAlternative$1$$anonfun$25.apply(Infer.scala:1356)
 [scaladoc]     at scala.List.filter(List.scala:859)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferMethodAlternative$1.apply(Infer.scala:1356)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer$$anonfun$inferMethodAlternative$1.apply(Infer.scala:1354)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer.tryTwice(Infer.scala:1395)
 [scaladoc]     at scala.tools.nsc.typechecker.Infer$Inferencer.inferMethodAlternative(Infer.scala:1354)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:1757)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$tryTypedApply$1$1.apply(Typers.scala:2604)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$tryTypedApply$1$1.apply(Typers.scala:2604)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:614)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.tryTypedApply$1(Typers.scala:2604)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:2655)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3257)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:3415)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3278)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:2645)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:2645)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:614)
 [scaladoc]     at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:2645)

BUILD FAILED
/var/tmp/portage/dev-lang/scala-2.7.5/work/scala-2.7.5.final-sources/build.xml:879: Document failed because of an internal documenter error (Java heap space); see the error output for details.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-03 10:08:48 UTC
Does this still happen with the 2.7.7 that's currently in the tree?
Comment 5 Matthias B. 2010-01-06 21:29:10 UTC
I have the same problem (with 2.7.7). There seems to be some kind of resource leak related to heap management (actual memory is not exhausted). When I split up the single invocation of ant

eant all.clean dist.done

like this

eant all.clean 
eant build
eant dist.done

everything builds fine. I suggest to apply this change to the ebuild.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2010-01-09 14:29:06 UTC
(In reply to comment #5)
> 
> eant all.clean 
> eant build
> eant dist.done
> 
> everything builds fine. I suggest to apply this change to the ebuild.
> 

Ok let's try that. Reopen if doesn't work:

+  09 Jan 2010; Petteri Räty <betelgeuse@gentoo.org> scala-2.7.7.ebuild:
+  Split compiling to multiple ant invocations to lower resources needed to
+  build. Hopefully fixes bug #282023.
+