test_gamma failure on OS X (Leopard) with bsd-port (1.11)

Christian Thalinger Christian.Thalinger at Sun.COM
Mon Sep 7 13:16:43 PDT 2009


Michael Franz wrote:
> Hi,
> 
> I have been struggling with this for a few weeks and do not know what is
> causing this problem.  The ecj build works fine, but when the process
> runs the test_gamma the javac fails to startup so that Queens is not
> compiled.  Thus the running of Queens fails as Queens is not available. 
> I have enabled a bunch of debugging switches that I have found in the
> code and force the JVM to produce a core dump when it fails.  When
> looking at the core file I am lost trying to figure out what it is
> telling me.  If I just continue after this error I get another error
> about the crc-32 from java.util.ZipEntry.  If I copy this image
> (openjkd-ecj/build/bsd-i586/j2sdk-image) and use it as my bootstrap JDK
> I have the same results, so I think the JDK is built correctly, it just
> fails at the test_gamma run.
> 
> I can remove the test_gamma test and build a working JDK.  Good enough
> that I can run NetBeans with it.  I would like to figure out why the
> test_gamma test fails.

I have the same problem.  The problem seems to be the way Darwin does
the library resolving.  It seems to always give the precedence to
libraries in the current directory without setting {DY}LD_LIBRARY_PATH.
 So when javac from the bootstrap JDK is executed in the build
directory, it picks up the newly built libjvm and of course the
bootstrap classes and the new VM do not match.  Not sure how to fix that...

-- Christian



More information about the distro-pkg-dev mailing list