Bug#875404: FTBFS with Java 9: sun.rmi.server

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#875404: FTBFS with Java 9: sun.rmi.server

Chris West (Faux)
Source: gridengine
Version: 8.1.9+dfsg
Severity: normal
User: [hidden email]
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

sun.rmi, sun.management packages seem to have gone. They're not on the
list of things moved to modules, but maybe they have been!

Note that without ant 1.9.9-5 UNRELEASED you won't see this error.

Build log:

     [java]     [javac] /build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/JGDISecurityManager.java:34: warning: [deprecation] RMISecurityManager in java.rmi has been deprecated
     [java]     [javac] import java.rmi.RMISecurityManager;
     [java]     [javac]                ^
     [java]     [javac] /build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:62: warning: UnicastServerRef is internal proprietary API and may be removed in a future release
     [java]     [javac] import sun.rmi.server.UnicastServerRef;
     [java]     [javac]                      ^
     [java]     [javac] /build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:63: warning: UnicastServerRef2 is internal proprietary API and may be removed in a future release
     [java]     [javac] import sun.rmi.server.UnicastServerRef2;
     [java]     [javac]                      ^
     [java]     [javac] /build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:64: error: cannot find symbol
     [java]     [javac] import sun.management.Agent;
     [java]     [javac]                      ^
     [java]     [javac]   symbol:   class Agent
     [java]     [javac]   location: package sun.management
     [java]     [javac] /build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:65: error: cannot find symbol
     [java]     [javac] import sun.management.AgentConfigurationError;
     [java]     [javac]                      ^
     [java]     [javac]   symbol:   class AgentConfigurationError
     [java]     [javac]   location: package sun.management
     [java]     [javac] /build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:66: error: cannot find symbol
     [java]     [javac] import static sun.management.AgentConfigurationError.*;


Cheers,
Chris.

Reply | Threaded
Open this post in threaded view
|

Bug#875404: gridengine and java

Afif Elghraoui-6
Control: tag -1 + help

status update on this bug:

I tried to get the build working months ago with the java10 branch on
Salsa [1]. The current issue is an error when trying to use jemalloc,
which I've reported upstream [2]. the error is

[java] [java]
/<<BUILDDIR>>/gridengine-8.1.9+dfsg/source/libs/jgdi/build.xml:495:
java.lang.UnsatisfiedLinkError?:
/<<BUILDDIR>>/gridengine-8.1.9+dfsg/source/LINUXAMD64/libdrmaa.so:
/usr/lib/x86_64-linux-gnu/libjemalloc.so.2: cannot allocate memory in
static TLS block

and more details (including the build log) are on the upstream ticket [2].


1. https://salsa.debian.org/hpc-team/gridengine/tree/java10
2. https://arc.liv.ac.uk/trac/SGE/ticket/1642

--
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name