Not the answers I hoped for but they help me nonetheless, thank you both! 2015-11-11 12:10 GMT+01:00 Erik Joelsson <[email protected]>:
> Hello Frieder, > > No, unfortunately not. The way the build works, you need to build > everything even if you only need profile1. The compact profiles are only > considered at the last step where images are created. Later in jdk9, when > modules are properly implemented, it might be possible to build only a > limited set of jmods and link them together yourself to an image, but it > will not be straightforward to do so. > > Note that the source file you had problems with in jdk8 is still part of > java.base in jdk9, so you can't do without it anyway. > > /Erik > > > On 2015-11-11 11:42, Frieder Berthold wrote: > >> Thanks for your fast answer! >> >> This means in jdk8 there is no way to build only a smaller subset of the >> jdk? >> But in jdk9 there is? >> >> 2015-11-11 11:18 GMT+01:00 Volker Simonis <[email protected]>: >> >> On Wed, Nov 11, 2015 at 11:00 AM, Frieder Berthold >>> <[email protected]> wrote: >>> >>>> 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? >>>> >>> For jdk8, jdk/src/solaris actually contains all the common "unix" >>> sources so you indeed have to compile it. In jdk8, the linux directory >>> only contains some man-pages but no real source code. >>> >>> In jdk9 the sources have been reordered and now there's a "unix" >>> directory for shared unix sources and linux, solaris, aix, etc. >>> directories for platform dependent stuff. >>> >>> 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 >>>> >>> >
