Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 May 2022 01:18:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 263858] dtrace: Fail to compile script on main
Message-ID:  <bug-263858-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858

            Bug ID: 263858
           Summary: dtrace: Fail to compile script on main
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: junchoon@dec.sakura.ne.jp

On main, dtrace fails to comile scripts.
Happenes only on main. stable/13 is not affected. Both are amd64.

Kernel configuration is based on GENERIC-NODEBUG.
Include GENERIC-NODEBUG, add "options CAM_IOSCHED_DYNAMIC" and set ident.

For stable/13 (working fine), copied old (before commit
6eebda3bbad96ab6ef001781ee1b6de45af062a2) GENERIC-NODEBUG with renaming, add
"options CAM_IOSCHED_DYNAMIC" and set ident.

Patches applied to main (basically something from PR or differential revisi=
on)
are also applied to stable/13 with minimal fix to apply, if any.


Error mode happenes:
operator -> cannot be applied to a forward declaration: no struct ip_fw_args
definition is available


Output examples:

*On script for collecting iwlwifi debugging info, provided by bz@ at [1].

#dtrace -C -s iwlwifi-cmds2.d -o /var/tmp/YYYYMMDD-SS-iwlwifi.dout
dtrace: failed to compile script iwlwifi-cmds2.d: "/usr/lib/dtrace/ipfw.d",
line 1: operator=20
-> cannot be applied to a forward declaration: no struct ip_fw_args definit=
ion
is available

[1] https://people.freebsd.org/~bz/wireless/iwlwifi-cmds2.d


*On ports java/openjdk11 build:

dtrace: failed to compile script
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/build/bsd-x86_64-nor=
mal-server-release/hotspot/variant-server/support/dtrace/hotspot.h.d:
"/usr/lib/dtrace/ipfw.d", line 1: operator -> cannot be applied to a forward
declaration: no struct ip_fw_args definition is available
dtrace: failed to compile script
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/build/bsd-x86_64-nor=
mal-server-release/hotspot/variant-server/support/dtrace/hotspot_jni.h.d:
"/usr/lib/dtrace/ipfw.d", line 1: operator -> cannot be applied to a forward
declaration: no struct ip_fw_args definition is available
dtrace: failed to compile script
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/build/bsd-x86_64-nor=
mal-server-release/hotspot/variant-server/support/dtrace/hs_private.h.d:
"/usr/lib/dtrace/ipfw.d", line 1: operator -> cannot be applied to a forward
declaration: no struct ip_fw_args definition is available
gmake[4]: *** [gensrc/GensrcDtrace.gmk:51:
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/build/bsd-x86_64-nor=
mal-server-release/hotspot/variant-server/gensrc/dtracefiles/hotspot.h]
Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: *** [gensrc/GensrcDtrace.gmk:51:
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/build/bsd-x86_64-nor=
mal-server-release/hotspot/variant-server/gensrc/dtracefiles/hs_private.h]
Error 1
gmake[4]: *** [gensrc/GensrcDtrace.gmk:51:
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/build/bsd-x86_64-nor=
mal-server-release/hotspot/variant-server/gensrc/dtracefiles/hotspot_jni.h]
Error 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263858-227>