Re: git: b2127b6f1ae2 - stable/13 - Install unwind.h into /usr/include

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 03 Mar 2022 20:30:41 UTC
On 3/3/22 10:08 AM, Dimitry Andric wrote:
> I can't even get to building libreoffice, as all the openjdk ports fail to build, with DTrace errors:
> 
> 
> dtrace: failed to compile script /wrkdirs/share/dim/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/hotspot/variant-server/support/dtrace/hotspot.h.d: "/u
> /mbuf.d", line 1: failed to copy type of 'm_data': Type information is in parent and unavailable
> * For target hotspot_variant-server_gensrc_dtracefiles_hotspot_jni.h:
> dtrace: failed to compile script /wrkdirs/share/dim/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/hotspot/variant-server/support/dtrace/hotspot_jni.h.d:
> race/mbuf.d", line 1: failed to copy type of 'm_data': Type information is in parent and unavailable
> * For target hotspot_variant-server_gensrc_dtracefiles_hs_private.h:
> dtrace: failed to compile script /wrkdirs/share/dim/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/hotspot/variant-server/support/dtrace/hs_private.h.d:
> ace/mbuf.d", line 1: failed to copy type of 'm_data': Type information is in parent and unavailable
> 
> It seems there is no way to disable DTrace in the openjdk ports, so I'm a little stuck on this.
> 
> Maybe it is possible to build libreoffice without Java support? But then I don't know if I will get the same error as you're getting.
> 
> -Dimitry

It might also be helpful to not re-use the same PR for multiple issues.  (When I
first started reading the PR it was hard to understand why unwind.h had broken
openjpeg.)

If I have read it correctly, some build tool (gengal?) is now segfaulting during
the build.  My initial guess is that the build tool decided to alter its behavior
based on a configure-type check finding unwind.h and enabling some bit of
functionality that previously was not enabled.

-- 
John Baldwin