Summary: | dev-lang/scala-2.7.5: compile failure due to ant | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mark Haney <mhaney> |
Component: | [OLD] Development | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | djc, haferfrost |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | scala-2.7.5 build log |
Description
Mark Haney
2009-08-19 13:40:55 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. Created attachment 201736 [details]
scala-2.7.5 build log
Sorry about that. I meant to add it when I filed the bug.
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. Does this still happen with the 2.7.7 that's currently in the tree? 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. (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. + |