During an exp-run for llvm 12 (see bug 255570), it turned out that
java/openjdk11 and java/openjdk11-jre do not build with clang 12.0.0:
Creating interim jimage
Compiling 2 files for BUILD_DEMO_Notepad
This is due to a missing backport of an upstream commit:
commit c484d8904285652246c3af212a4211b9a8955149
Author: Thomas Stuefe <stuefe@openjdk.org>
Date: Tue Mar 16 05:49:01 2021 +0000
8263557: Possible NULL dereference in Arena::destruct_contents()
Reviewed-by: kbarrett, coleenp
Approved by: maintainer timeout (2 weeks)
PR: 255900
MFH: 2021Q2
Add bootstrap for powerpc64 elfv2.
Because of issue with macros in precompiled.hpp, --disable-precompiled-headers is necessary.
Since openjdk compiles for elfv1 by default on big-endian ppc64, use a patch to compile for elfv2.
I assume here that GCC will be used exclusively on ELFv1 systems and Clang on ELFv2.
PR: 243182
Approved by: glewis (maintainer)
. Sort LIB_DEPENDS and USE_XORG
. Add a dependency in alsa-lib now that sound is supported on FreeBSD.
. Don't disable dtrace now that it is supported on FreeBSD.
. Less intrusive iconv change.
libinstrument.so and libjdwp.so do not need anything from $LOCALBASE but
libsplashscreen.so does. For example,
% cd /usr/local/openjdk11
% bin/java -jar demo/jfc/SwingSet2/SwingSet2.jar
ld-elf.so.1: /usr/local/openjdk11/lib/libsplashscreen.so: Undefined symbol
"libiconv_open"
PR: 236759
* Put MD specific include files (e.g. jni_md.h) in a subdirectory named
'freebsd' rather than 'bsd'. [1]
* Remove the necessity to always have /usr/local/include in the header
paths and linker paths. This allows jshell to use the system iconv.h
rather than the third party one and link correctly. [2]
* Fix getting process commands and arguments on FreeBSD.
* Bump PORTREVISION.
All fixes need forward porting to openjdk12.
PR: 236754 [1], 236759 [2]
Submitted by: Kurt Miller [2]