Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175578 - dev-java/fastutil-5.0.5 fails to build
Summary: dev-java/fastutil-5.0.5 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 15:19 UTC by Steve Jakab
Modified: 2007-05-01 10:15 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 Steve Jakab 2007-04-22 15:19:29 UTC
emerge dev-java/fastutil fails with the error "Could not reserve enough space for object heap".

Reproducible: Always

Steps to Reproduce:
1. emerge fastutil

Actual Results:  
Buildfile: build.xml

init:
    [mkdir] Created dir: /var/tmp/portage/dev-java/fastutil-5.0.5/work/fastutil-5.0.5/build

compile:
    [javac] Compiling 1324 source files to /var/tmp/portage/dev-java/fastutil-5.0.5/work/fastutil-5.0.5/build
    [javac] Error occurred during initialization of VM
    [javac] Could not reserve enough space for object heap

BUILD FAILED
/var/tmp/portage/dev-java/fastutil-5.0.5/work/fastutil-5.0.5/build.xml:16: Compile failed; see the compiler error output for details.

Total time: 10 seconds

!!! ERROR: dev-java/fastutil-5.0.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4737:   Called src_compile
  fastutil-5.0.5.ebuild, line 24:   Called java-pkg-2_src_compile
  java-pkg-2.eclass, line 84:   Called eant 'jar' 'javadoc' '-f' 'build.xml'
  java-utils-2.eclass, line 1737:   Called die

!!! 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-java/fastutil-5.0.5/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"


Expected Results:  
The package should build without error.

It's odd that it says that the VM is 1.6, because although I have 1.6 installed, the java-config-2 setting is 1.5 (from java-config-2 -L: Sun JDK 1.5.0.11 [sun-jdk-1.5]).

Here's the emerge --info:

Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Pentium III (Katmai)
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 21 Apr 2007 14:00:09 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe"
CHOST="i686-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/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi aiglx apache2 apm arts avi berkdb bindist bitmap-fonts cdr cli cracklib crypt cscope cups curl dbus dga doc dri eds emboss encode esd fam foomaticdb fortran gd gdbm gphoto2 gpm gstreamer gtk gtk2 iconv imagemagick imlib innodb ipv6 isdnlog java jikes jpeg junit kde lcms ldap lesstif libg++ libwww mad maildir mbox memlimit midi mikmod mmx motif mp3 mpeg mpi mysql ncurses nls nocd nptl nptlonly nsplugin odbc ogg oggvorbis opengl oss pam pcre pdflib perl png postgres ppds pppd python qt qt3 qt4 quicktime readline reflection ruby samba sasl scanner sdl session slang slp snmp spell spl sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb videos vorbis wmf x86 xml xml2 xorg xosd xv yaz zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-22 15:43:46 UTC
(In reply to comment #0)
> emerge dev-java/fastutil fails with the error "Could not reserve enough space
> for object heap".

How much RAM and swap do you have? It needs just 512M :)

> It's odd that it says that the VM is 1.6, because although I have 1.6
> installed, the java-config-2 setting is 1.5 (from java-config-2 -L: Sun JDK
> 1.5.0.11 [sun-jdk-1.5]).

system vm != build vm, see Preferred VM at http://www.gentoo.org/doc/en/java.xml
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-01 10:15:24 UTC
OK I think I know the probem, when I fixed bug 162650, I set heap size to 512M globally because build.xml can't fork and set memory limit for <javac> if the compiler isn't javac (but e.g. ecj). But if it is javac, then fork works and there are two VM instances with 512 limits. Fixed hopefully by setting heap size only for compilers other than javac, reopen if it still remains.