[erlang-questions] Compile with flag --with-dynamic-trace=systemtap failed

48 views
Skip to first unread message

goofansu

unread,
Sep 13, 2012, 10:55:31 PM9/13/12
to erlang-q...@erlang.org
dtrace: failed to compile script emulator/beam/erlang_dtrace.d: Preprocessor
not found
configure: error: Could not precompile erlang_dtrace.d: dtrace -h failed
configure: error: /root/otp/erts/configure failed for erts


OS: fedora17

I've installed systemtap. Shall I install dtrace?



--
View this message in context: http://erlang.2086793.n4.nabble.com/Compile-with-flag-with-dynamic-trace-systemtap-failed-tp4655144.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Lukas Larsson

unread,
Sep 14, 2012, 9:05:14 AM9/14/12
to goofansu, erlang-q...@erlang.org
Hello,

On our systemtap testmachine we have the dtrace command available:

-bash-4.2$ dtrace --help
Usage /usr/bin/dtrace [--help] [-h | -G] [-C [-I<Path>]] -s File.d [-o <File>]
Where -h builds a systemtap header file from the .d file
-C when used with -h, also run cpp preprocessor
-o specifies an explicit output file name,
the default for -G is file.o and -h is file.h
-I when running cpp pass through this -I include Path
-s specifies the name of the .d input file
-G builds a stub file.o from file.d,
which is required by some packages that use dtrace.

I'm not the guy who has implemented/installed it for us, but I think
that when you install systemtap you should also get a utility called
dtrace.

Lukas

CGS

unread,
Sep 14, 2012, 2:52:26 PM9/14/12
to Lukas Larsson, goofansu, erlang-q...@erlang.org
I got the same problem and I gave up. Systemtap package seems not to be recognized by Erlang. Instead, dtrace package works like a charm.

CGS

Emilio De Camargo Francesquini

unread,
Sep 21, 2012, 12:40:30 PM9/21/12
to erlang-q...@erlang.org
Systemtap already comes with a dtrace script preprocessor. No need to
install both Systemtap and Dtrace.

Have you installed the systemtap-sdt-devel package? It contains the
dtrace preprocessor you need and the sys/sdt.h header needed to
compile the VM with tracing enabled.

sudo yum install systemtap-sdt-devel

Emilio

2012/9/14 CGS <cgsmc...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages