dtrace4linux / linux

dtrace for linux - kernel driver and userland tools
http://crtags.blogspot.com
1.17k stars 225 forks source link

Ubuntu 15.04 Ruby 2.2.2 compile with dtrace enabled failed #116

Open ghost opened 9 years ago

ghost commented 9 years ago
compiling dln.c
compiling localeinit.c
compiling prelude.c
compiling array.c
processing probes in object files
<command-line>:0:10: warning: missing whitespace after the macro name
<command-line>:0:0: warning: "__STDC__" redefined
<built-in>: note: this is the location of the previous definition
ld: i386 architecture of input file `probes.tmp.o' is incompatible with i386:x86-64 output
dtrace: failed to link script ./probes.d: failed to link probes.o: ld exited with status 1
Invoking: ld -o probes.o -r probes.tmp.o /usr/lib/dtrace/drti.o
Makefile:397: recipe for target 'probes.o' failed
make: *** [probes.o] Error 1
make: *** Waiting for unfinished jobs....
++ return 2

Makefile

probes.o: $(srcdir)/probes.d probes.stamp
    @$(ECHO) processing probes in object files
    $(Q) $(RM) $@
    $(Q) $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_REBUILD_OBJS)

after I add -64 to dtrace command:

$(Q) $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -64 -o $@ $(DTRACE_REBUILD_OBJS)

the error will gone, and it finishs compiling, but I still don't get ruby probes

dtrace -l | grep ruby

the command returns nothing.

clopez commented 9 years ago

For the record: I have submitted a patch to disable this feature by default on the Ruby build system https://bugs.ruby-lang.org/issues/11553

dtrace4linux commented 9 years ago

hi carlos

strange patch to ruby - i see the discussion is on the link doesnt want to incorporate them.

On 26 September 2015 at 17:22, Carlos Alberto Lopez Perez < notifications@github.com> wrote:

For the record: I have submitted a patch to disable this feature by default on the Ruby build system https://bugs.ruby-lang.org/issues/11553

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/116#issuecomment-143468021.