From owner-freebsd-java@freebsd.org Fri Mar 8 18:04:39 2019 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D41715249E4 for ; Fri, 8 Mar 2019 18:04:39 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id E82C084DAD for ; Fri, 8 Mar 2019 18:04:34 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.15.2/8.15.2) with ESMTP id x28I483q075758 for ; Fri, 8 Mar 2019 10:04:08 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.15.2/8.15.2/Submit) id x28I4260075757 for freebsd-java@freebsd.org; Fri, 8 Mar 2019 10:04:02 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 8 Mar 2019 10:04:02 -0800 From: Greg Lewis To: freebsd-java@freebsd.org Subject: JDK 11 update Message-ID: <20190308180402.GA61500@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.3 (2019-02-01) X-Rspamd-Queue-Id: E82C084DAD X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.59 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.68)[0.683,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[mail.iagu.net,mail.eyesbeyond.com]; NEURAL_SPAM_LONG(0.08)[0.081,0]; DMARC_NA(0.00)[eyesbeyond.com]; NEURAL_SPAM_MEDIUM(0.85)[0.849,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:71.32.0.0/13, country:US]; IP_SCORE(-0.01)[asn: 209(0.01), country: US(-0.07)] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Mar 2019 18:04:39 -0000 Hi all, I wanted to briefly post an update on what's going on with JDK 11. I'm pleased to say that thanks to the efforts of Kurt Miller there is now a preliminary port for JDK 11 that supports FreeBSD. I expect there will be a port in the FreeBSD ports system within the next week. If you want to try it sooner, I've placed a tarball of a binary version that I compiled on FreeBSD 11.2/amd64 at http://distcache.FreeBSD.org/local-distfiles/glewis/openjdk11-11.0.2.9.1-amd64.tar.xz This is based on the initial "Alphonse" release at https://github.com/battleblow/openjdk-jdk11u/releases/tag/jdk-11.0.2%2B9-1 You can view the main repo at https://github.com/battleblow/openjdk-jdk11u You will find that a number of things don't work and you'll also likely find many bugs. The port is currently at the point where it is self hosting though, which is a reasonable first release milestone. This is planned to be the main port repository and should make it easier for people to contribute. Just send a github pull request if you have patches to contribute. Note that I'll be AFK for the weekend (starting shortly) and won't be able to respond until Monday. For those who want to try and compile it, the current commands I'm using look like this: env CPPFLAGS=-I/usr/local/include \ LDFLAGS=-L/usr/local/lib \ CC=/usr/bin/cc \ CXX=/usr/bin/c++ \ bash configure \ --with-boot-jdk=/usr/local/openjdk11 \ --disable-ccache \ --disable-dtrace \ --disable-javac-server \ --disable-hotspot-gtest \ --with-alsa=/usr/local \ --with-cups=/usr/local \ --with-freetype=system \ --with-freetype-include=/usr/local/include/freetype2 \ --with-freetype-lib=/usr/local/lib \ --with-milestone=fcs \ --with-giflib=system \ --with-zlib=system \ --with-extra-cflags=-I/usr/local/include \ --with-extra-cxxflags=-I/usr/local/include \ --with-extra-ldflags=-L/usr/local/lib \ --with-toolchain-type=clang \ --x-includes=/usr/local/include \ --x-libraries=/usr/local/lib \ --with-package-path=/usr/local \ --with-debug-level=release \ --with-jobs=1 env LANG="C" \ LC_ALL="C" \ CLASSPATH="" \ JAVA_HOME="" \ LD_LIBRARY_PATH="" \ CPPFLAGS=-I/usr/local/include \ LDFLAGS=-L/usr/local/lib \ CC=/usr/bin/cc \ CXX=/usr/bin/c++ \ MAKEFLAGS="" \ USE_CLANG=true \ gmake \ CC=/usr/bin/cc \ CXX=/usr/bin/c++ \ COMPILER_WARNINGS_FATAL="false" \ LOG=debug \ images Where I've got the binary tarball installed in /usr/local/openjdk11. You should adapt these as necessary for your system. Note that I'll be providing little support for anyone attempting to use those commands since my focus will be on creating the port itself rather than supporting one off builds. They should work if you have the right dependencies and you're running FreeBSD 11.2/amd64. It's likely only minimal fixes would be required for FreeBSD 12/amd64 as well, assuming the binary runs, although no one has tested it there yet. If you are on i386/powerpc64/arm, which are supported by openjdk8, then you'll need to work a lot harder to get yourself bootstrapped since there is no binary. See https://github.com/battleblow/openjdk-jdk11u/pull/1 for some hints on how to bootstrap without a working JDK 11. There will also likely be errors you need to fix since it has not been compiled on these platforms yet. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org