Gentoo Archives: gentoo-java

From: Sebastiaan <sebastia@××××××××××××××.nl>
To: gentoo-java@l.g.o
Subject: [gentoo-java] java.lang.OutOfMemoryError on amd64
Date: Fri, 17 Mar 2006 15:00:12

I am trying to build VTK ( I have no problems 
compiling this package on x86 by either using emerge or manually. But on 
amd64 the build dies because of an java.lang.OutOfMemoryError:

Listing /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx ...
Compiling /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/ ...
Compiling /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/ ...
Compiling /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/ ...
Generating ../../java/vtk/vtkBuildAllDriver.class

The system is out of resources.
Consult the following stack trace for details.
make[2]: *** [java/vtk/vtkBuildAllDriver.class] Error 3
make[1]: *** [Wrapping/Java/CMakeFiles/VTKBuildAll.dir/all] Error 2
make: *** [all] Error 2

The build consequently breaks down here. However, when I run make again, 
it suddenly compiles withtout problems and finishes the build.

The compilation command for building vtkBuildAllDriver.class is:

@echo "Generating ../../java/vtk/vtkBuildAllDriver.class"
cd /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Java && /opt/blackdown-jdk- -classpath 
/var/tmp/portage/vtk-5.0.0-r4/work/VTK/java/vtk/.. -d /var/tmp/portage/vtk-5.0.0-r4/work/VTK/java/vtk/.. 

I have tried to increase the amount of memory java can use by adding 
-J-Xms48m to the command (right after configuration, since a second 
compilation attempt always works), but without succes.

Does anyone have an idea what the problem can be? I am unsure if the 
problem lies within VTK or Blackdown. Sun-jdk does not have a 64 bit 
version available, so I cannot compare with that.

I have previously posted this to as well.

Thanks in advance,


English written by Dutch people is easily recognized by the improper use of 'In principle ...'

The software box said 'Requires Windows 95 or better', so I installed Linux.

Als Pacman in de jaren '80 de kinderen zo had beïnvloed zouden nu veel jongeren rondrennen 
in donkere zalen terwijl ze pillen eten en luisteren naar monotone electronische muziek. 
(Kristian Wilson, Nintendo, 1989)


Subject Author
Re: [gentoo-java] java.lang.OutOfMemoryError on amd64 Greg Tassone <greg@×××××××.net>
Re: [gentoo-java] java.lang.OutOfMemoryError on amd64 Joshua Nichols <nichoj@g.o>