wip/jdk15 and NetBSD 5

View: New views
8 Messages — Rating Filter:   Alert me  

wip/jdk15 and NetBSD 5

by David Brownlee-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  wip/jdk15 should now build and run on NetBSD 5 - for anyone
  interested in a somewhat old but functional JVM :)


Re: wip/jdk15 and NetBSD 5

by Geert Hendrickx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Mar 06, 2009 at 12:58:03PM +0000, David Brownlee wrote:
> wip/jdk15 should now build and run on NetBSD 5 - for anyone
> interested in a somewhat old but functional JVM :)


Trying to build wip/jdk15 on NetBSD 5.0 amd64, I get the following error in
hotspot/src/os_cpu/bsd_amd64/vm/os_bsd_amd64.cpp on line 610:

'block_on_serialize_page_trap' is not a member of 'os'

After simply commenting out that line, the build continues for a while and
then breaks at:

/scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/bin/java -classpath ../../../tools/CompileProperties CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java
dl failure on line 730Error: failed /scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/lib/amd64/server/libjvm.so, because /usr/lib/libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" (symnum = 158)
gmake[6]: *** [/scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java] Error 6


        Geert


--
Geert Hendrickx  -=-  ghen@...  -=-  PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!

Re: wip/jdk15 and NetBSD 5

by David Brownlee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 6 Mar 2009, Geert Hendrickx wrote:

> On Fri, Mar 06, 2009 at 12:58:03PM +0000, David Brownlee wrote:
>> wip/jdk15 should now build and run on NetBSD 5 - for anyone
>> interested in a somewhat old but functional JVM :)
>
>
> Trying to build wip/jdk15 on NetBSD 5.0 amd64, I get the following error in
> hotspot/src/os_cpu/bsd_amd64/vm/os_bsd_amd64.cpp on line 610:
>
> 'block_on_serialize_page_trap' is not a member of 'os'
>
> After simply commenting out that line, the build continues for a while and
> then breaks at:
>
> /scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/bin/java -classpath ../../../tools/CompileProperties CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java
> dl failure on line 730Error: failed /scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/lib/amd64/server/libjvm.so, because /usr/lib/libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" (symnum = 158)
> gmake[6]: *** [/scratch/pkgsrc/work/wip/jdk15/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java] Error 6

  Hmm... I assume adding -lgcc_s to LINK_LIB in vm.make doesn't
  help? (I don't have any amd64 boxes to test)

--
  David/absolute       -- www.NetBSD.org: No hype required --

Re: wip/jdk15 and NetBSD 5

by Geert Hendrickx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Mar 06, 2009 at 03:57:14PM +0000, David Brownlee wrote:
> Hmm... I assume adding -lgcc_s to LINK_LIB in vm.make doesn't help? (I
> don't have any amd64 boxes to test)


Wrong assumption, it does. :-)

I had to substitute s/bsd-i586/bsd-amd64/ in the Makefile to get it
installed, and there are still some installation and PLIST troubles,
Jut at least the build worked!

        Geert

--
Geert Hendrickx  -=-  ghen@...  -=-  PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!

Re: wip/jdk15 and NetBSD 5

by David Brownlee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 6 Mar 2009, Geert Hendrickx wrote:

> On Fri, Mar 06, 2009 at 03:57:14PM +0000, David Brownlee wrote:
>> Hmm... I assume adding -lgcc_s to LINK_LIB in vm.make doesn't help? (I
>> don't have any amd64 boxes to test)
>
>
> Wrong assumption, it does. :-)
>
> I had to substitute s/bsd-i586/bsd-amd64/ in the Makefile to get it
> installed, and there are still some installation and PLIST troubles,
> Jut at least the build worked!

  Excellent! :)

  I have some cleanups to wip/jdk15 that I'm just finishing
  testing. If you want to hold off just a little with PLIST
  fixes that would be ideal...

  Does anyone know if there are there still issues distributing
  patches to jdk15 that prevent importing it into main pkgsrc?

--
  David/absolute       -- www.NetBSD.org: No hype required --

Re: wip/jdk15 and NetBSD 5

by David Brownlee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 6 Mar 2009, David Brownlee wrote:

> I have some cleanups to wip/jdk15 that I'm just finishing
> testing. If you want to hold off just a little with PLIST
> fixes that would be ideal...

  OK, I'm clear of wip/jdk15 :)

  How is your PLIST munging going? :)

--
  David/absolute       -- www.NetBSD.org: No hype required --

Re: wip/jdk15 and NetBSD 5

by Geert Hendrickx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Mar 06, 2009 at 08:46:43PM +0000, David Brownlee wrote:
> On Fri, 6 Mar 2009, David Brownlee wrote:
>
>> I have some cleanups to wip/jdk15 that I'm just finishing
>> testing. If you want to hold off just a little with PLIST
>> fixes that would be ideal...
>
> OK, I'm clear of wip/jdk15 :)
>
> How is your PLIST munging going? :)


Most of the problems go away if I enable the jdk15-plugin option (the TODO
list mentions the installation without plugin is still broken).  The files
in PLIST with ${MACHINE_ARCH} are wrong because ${MACHINE_ARCH} expands to
x86_64 while the files are installed under amd64.  After manually replacing
that, the only four missing files are:

ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/java/jdk-1.5.0/bin/java-rmi.cgi
ERROR:         /usr/pkg/java/jdk-1.5.0/jre/lib/amd64/client/Xusage.txt
ERROR:         /usr/pkg/java/jdk-1.5.0/jre/lib/amd64/client/libjsig.so
ERROR:         /usr/pkg/java/jdk-1.5.0/jre/lib/amd64/client/libjvm.so
*** Error code 1


Now, when starting up firefox3 or seamonkey with the plugin and trying to
use it, it prints on the console:

Cannot open "/home/lib/amd64/libjavaplugin_nscp.so"

After symlinking /usr/pkg/java/jdk-1.5.0/jre/lib to /home/lib and bumping
the datasize limit, the java plugin starts, but only displays a red cross
and the java console shows a bunch of classloader errors.  But it runs!
(the java console itself is a Java program)


        Geert


--
Geert Hendrickx  -=-  ghen@...  -=-  PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!

Re: wip/jdk15 and NetBSD 5

by David Brownlee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 7 Mar 2009, Geert Hendrickx wrote:

> On Fri, Mar 06, 2009 at 08:46:43PM +0000, David Brownlee wrote:
>> On Fri, 6 Mar 2009, David Brownlee wrote:
>>
>>> I have some cleanups to wip/jdk15 that I'm just finishing
>>> testing. If you want to hold off just a little with PLIST
>>> fixes that would be ideal...
>>
>> OK, I'm clear of wip/jdk15 :)
>>
>> How is your PLIST munging going? :)
>
>
> Most of the problems go away if I enable the jdk15-plugin option (the TODO
> list mentions the installation without plugin is still broken).  The files

  PLIST without jdk15-plugin should be fixed

> in PLIST with ${MACHINE_ARCH} are wrong because ${MACHINE_ARCH} expands to
> x86_64 while the files are installed under amd64.  After manually replacing

  That should also be fixed.

> that, the only four missing files are:
>
> ERROR: ************************************************************
> ERROR: The following files are in the PLIST but not in /usr/pkg:
> ERROR:         /usr/pkg/java/jdk-1.5.0/bin/java-rmi.cgi
> ERROR:         /usr/pkg/java/jdk-1.5.0/jre/lib/amd64/client/Xusage.txt
> ERROR:         /usr/pkg/java/jdk-1.5.0/jre/lib/amd64/client/libjsig.so
> ERROR:         /usr/pkg/java/jdk-1.5.0/jre/lib/amd64/client/libjvm.so
> *** Error code 1

  That is... very odd. That the last three imply the client VM is
  not being built for amd64. Does 'java -client' work?. As for
  java-rmi.cgi, I have no idea why it would be omitted...

> Now, when starting up firefox3 or seamonkey with the plugin and trying to
> use it, it prints on the console:
>
> Cannot open "/home/lib/amd64/libjavaplugin_nscp.so"
>
> After symlinking /usr/pkg/java/jdk-1.5.0/jre/lib to /home/lib and bumping
> the datasize limit, the java plugin starts, but only displays a red cross
> and the java console shows a bunch of classloader errors.  But it runs!
> (the java console itself is a Java program)

  Interesting... on i386 NetBSD 5 symlinking
  /usr/pkg/java/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so
  into firefox's plugin directory is enough to get java working
  in firefox3 - tested by going to
  http://www.bubblemark.com/java.html (57 fps on my T60p)

  I wonder why the amd64 build is so different...
--
  David/absolute       -- www.NetBSD.org: No hype required --