JDK 11 update

Michael Osipov 1983-01-06 at gmx.net
Sat Mar 9 20:16:13 UTC 2019


Am 2019-03-08 um 19:04 schrieb Greg Lewis:
> 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.

Thanks for this huge effort!

> 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 \

Ouch, isn't this a chicken-and-egg problem here? How did you solve this 
prolbem? I really hate that Java is not selfcontained...

>          --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
> 
> 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.
> 

Does this basically mean that won't be a i386 release of OpenJDK 11 for 
FreeBSD? What is the actual obstacle here?

Regards,

Michael


More information about the freebsd-java mailing list