Bug 224857

Summary: lang/tcl86: dtrace: failed to compile script ... "/usr/lib/dtrace/mbuf.d"
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: freebsd-tcltk (Nobody) <tcltk>
Status: New ---    
Severity: Affects Many People CC: gahr
Priority: --- Flags: bugzilla: maintainer-feedback? (tcltk)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227312

Description O. Hartmann 2018-01-03 08:46:00 UTC
On recent CURRENT (FreeBSD 12.0-CURRENT #10 r327512: Wed Jan  3 08:11:59 CET 2018 amd, LLD_IS_LD enabled), port lang/tcl86 fails to build properly due to the following error:


/usr/bin/sed -i.bak  -e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,'  -e 's,^COMPAT_OBJS.*,,' /usr/ports/lang/tcl86/work/tcl8.6.8/unix/Makefile
===>  Building for tcl86-8.6.8
/usr/sbin/dtrace -h  -o tclDTrace.h -s /usr/ports/lang/tcl86/work/tcl8.6.8/generic/tclDTrace.d
dtrace: failed to compile script /usr/ports/lang/tcl86/work/tcl8.6.8/generic/tclDTrace.d: "/usr/lib/dtrace/mbuf.d", line 114: syntax error near "caddr_t"
*** [tclDTrace.h] Error code 1

make[2]: stopped in /usr/ports/lang/tcl86/work/tcl8.6.8/unix
1 error

make[2]: stopped in /usr/ports/lang/tcl86/work/tcl8.6.8/unix
===> Compilation failed unexpectedly.
Comment 1 Pietro Cerutti freebsd_committer 2018-01-03 09:31:23 UTC
I can't reproduce it on ref12-amd64, which is currently at r325426. This is not something particularly related to Tcl, something's probably wrong with your DTrace support. How about your kernel config?
Comment 2 O. Hartmann 2018-01-03 20:50:32 UTC
FreeBSD 12.0-CURRENT #12 r327502: Tue Jan  2 22:19:51 CET 2018 amd64, still the same, my kernel has these options enabled:

options        KDTRACE_FRAME           # Ensure frames are compiled in
options        KDTRACE_HOOKS           # Kernel DTrace hooks

The problem occurs on all of our boxes (at least 4) with revision >327350.
Comment 3 Pietro Cerutti freebsd_committer 2018-01-04 08:51:13 UTC
Please see if this helps: