Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 15.04 Ruby 2.2.2 compile with dtrace enabled failed #116

Open
markgeek opened this issue Jul 15, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@markgeek
Copy link

commented Jul 15, 2015

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

This comment has been minimized.

Copy link

commented Sep 26, 2015

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

This comment has been minimized.

Copy link
Owner

commented Sep 28, 2015

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
#116 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.