Building without Solaris directory on Linux

Frieder Berthold berthold.frieder at googlemail.com
Wed Nov 11 10:00:16 UTC 2015


Hello to all,

I am new in buiding OpenJDK and hope, that this is the right list for my
problem.

To get a small JVM and rt.jar I try to build OpenJDK 8 with the small musl
libc (http://www.musl-libc.org/) instead of using the standard gnu libc,
yet I do not get it to build correctly.

My system: ubuntu 14.04 64bit

OpenJDK: OpenJDK 8 cloned from http://hg.openjdk.java.net/jdk8/jdk8/

My Problem: The following headers (which musl does not provide) cannot be
found while building the solaris-part


jdk8/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c:38:24: fatal
error:        sys/sysctl.h: No such file or directory

and

           jdk8/jdk/src/solaris/native/java/net/NetworkInterface.c:50:25:
fatal error: bits/ioctls.h: No such file or directory

My Question: Even though I got a Linux (which is stated after the configure
process) it tries to build the sources in the solaris directory. Is this
necessary or is there a way to prevent this? Even deeper into this matter:
I only need the profile compact1 for the Linux OS, are there switches for
the configure step to achieve this?

Thank You in advance for any help!
Frieder



More information about the build-dev mailing list