From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8852 Path: news.gmane.org!not-for-mail From: Frieder Berthold Newsgroups: gmane.linux.lib.musl.general Subject: Re: Building OpenJDK8 with musl Date: Fri, 13 Nov 2015 11:21:11 +0100 Message-ID: References: <20151111131607.0e02f8ba@vostro> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114093f4279a920524696ba3 X-Trace: ger.gmane.org 1447410162 25257 80.91.229.3 (13 Nov 2015 10:22:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2015 10:22:42 +0000 (UTC) Cc: musl@lists.openwall.com To: Timo Teras Original-X-From: musl-return-8865-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 13 11:22:36 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZxBU0-0003f7-5R for gllmg-musl@m.gmane.org; Fri, 13 Nov 2015 11:21:28 +0100 Original-Received: (qmail 15552 invoked by uid 550); 13 Nov 2015 10:21:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 15531 invoked from network); 13 Nov 2015 10:21:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zoeEFMSd6zVslJRroDrQafY/61W46clNiCVtPlVmDxg=; b=owpC74bUPeGHsr5Osxoka3Hm9hxfuhelmhoJ8zkxj/suNPx3NaSeEEjli0YXB96oRE 8IBaC3uTjphSWxY7Kd6uhTe/zCgotUovcVYjqy3kzSY04jEyust6zIbl1b0OY/zXQH9V IVdFXgEne8H0n8HtmSZpiSNsHDTBJr/TiBFtTNBI5c7AalUq0BG9vISbURoR18UZD0b5 nVtQ98npZkPbzkUwfxVZQY8n1+MZyd/ozUZ5LNHqWyN9KBEKF07l9bW43FYAVmtsQCMb YQqkrDwYVBUozszLNudjIDsYg5gvIYZMW5/kFGlB56O+FFGoGh6bOask9vF+oSW7B9ZR 5fZQ== X-Received: by 10.107.28.144 with SMTP id c138mr8949576ioc.15.1447410071475; Fri, 13 Nov 2015 02:21:11 -0800 (PST) In-Reply-To: <20151111131607.0e02f8ba@vostro> Xref: news.gmane.org gmane.linux.lib.musl.general:8852 Archived-At: --001a114093f4279a920524696ba3 Content-Type: text/plain; charset=UTF-8 Hey Timo, I applied the patch but then it can't find linux/types.h (musl does not provide it) while compiling jdk8/jdk/src/solaris/native/sun/nio/ch/sctp/Sctp.h Did you encounter the same problem? Frieder 2015-11-11 12:16 GMT+01:00 Timo Teras : > Hi, > > On Wed, 11 Nov 2015 12:11:50 +0100 > Frieder Berthold wrote: > > > I want to build a rather small Java Runtime Environment with OpenJDK8 > > and the small JamVM and use musl for this purpose. Unfortunately > > OpenJDK needs the header sys/sysctl.h which musl does not provide > > anymore ( I found older musl version which include this header). > > Is there a reason for that? > > > > Maybe someone already tried to build OpenJDK8 with musl and could > > give me some further hints? > > We build openjdk8 for alpine linux using musl. > > The build scripts are at: > http://git.alpinelinux.org/cgit/aports/tree/community/openjdk8 > > It uses openjdk7 (built via icedtea) to bootstrap. > > The patch fix your specific issue is: > > http://git.alpinelinux.org/cgit/aports/tree/community/openjdk8/icedtea-jdk-musl.patch > > and as you see, sysctl.h is not really needed and can be just removed. > > /Timo > --001a114093f4279a920524696ba3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey Timo,

I applied the patch but t= hen it can't find linux/types.h (musl does not provide it) while compil= ing
jdk8/jdk/src/solaris/native/sun/nio/ch/sctp/Sctp.h

Did you encounter the same problem?

Frieder



2015-11-11 12:16 GMT+01:00 Timo Teras <timo.teras@iki.fi>:
Hi,

On Wed, 11 Nov 2015 12:11:50 +0100
Frieder Berthold <ber= thold.frieder@googlemail.com> wrote:

> I want to build a rather small Java Runtime Environment with OpenJDK8<= br> > and the small JamVM and use musl for this purpose. Unfortunately
> OpenJDK needs the header sys/sysctl.h which musl does not provide
> anymore ( I found older musl version which include this header).
> Is there a reason for that?
>
> Maybe someone already tried to build OpenJDK8 with musl and could
> give me some further hints?

We build openjdk8 for alpine linux using musl.

The build scripts are at:
http://git.alpinelinux.org/cgit/aports= /tree/community/openjdk8

It uses openjdk7 (built via icedtea) to bootstrap.

The patch fix your specific issue is:
http://git.alpi= nelinux.org/cgit/aports/tree/community/openjdk8/icedtea-jdk-musl.patch<= br>
and as you see, sysctl.h is not really needed and can be just removed.

/Timo

--001a114093f4279a920524696ba3--