public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sebastiaan <sebastia@ch.its.tudelft.nl>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] java.lang.OutOfMemoryError on amd64
Date: Fri, 17 Mar 2006 15:59:31 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.61.0603171555450.16767@ch.its.tudelft.nl> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2427 bytes --]

Hi,

I am trying to build VTK (http://www.vtk.org/). 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/__init__.py ...
Compiling /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py ...
Compiling /var/tmp/portage/vtk-5.0.0-r4/work/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py ...
...
Generating ../../java/vtk/vtkBuildAllDriver.class


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
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-1.4.2.03/bin/javac -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/.. 
/var/tmp/portage/vtk-5.0.0-r4/work/VTK/java/vtk/vtkBuildAllDriver.java


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.

References:
I have previously posted this to 
http://bugs.gentoo.org/show_bug.cgi?id=123178 as well.


Thanks in advance,
Sebastiaan



--

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)

             reply	other threads:[~2006-03-17 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 14:59 Sebastiaan [this message]
2006-03-17 19:59 ` [gentoo-java] java.lang.OutOfMemoryError on amd64 Greg Tassone
2006-03-20 10:20   ` Sebastiaan
2006-03-17 22:01 ` Joshua Nichols
2006-03-18 11:39   ` Sebastiaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0603171555450.16767@ch.its.tudelft.nl \
    --to=sebastia@ch.its.tudelft.nl \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox