[erlang-questions] FreeBSD dtrace-enabled builds

Dave Cottlehuber dch@REDACTED
Thu Feb 19 12:54:40 CET 2015


Thanks everybody for their help. The secret incantations are:

# ensure dtrace kernel module is available
sudo -s
# right now
kldload dtraceall
# and for evermore
echo '"dtraceall_load="YES"' >> /boot/loader.conf

# make/gmake changes

cat >> /etc/make.conf <<EOF
STRIP=
WITH_CTF=1
CFLAGS+=-fno-omit-frame-pointer
EOF

and build via either ports or source as you'd expect. No more warnings!
FWIW I still have some issues with a poudriere driven build but that's
not urgent.

I think this would be a useful addition to both INSTALL.md and
http://www.erlang.org/doc/apps/runtime_tools/DTRACE.html for future
reference. I'll send a patch eventually.

A+
Dave



More information about the erlang-questions mailing list