DTRACE_PROBE macro fails to compile with Clang++

Mark Wielaard mjw@redhat.com
Wed Sep 11 17:45:00 GMT 2013


On Wed, 2013-09-11 at 18:38 +0100, Daniel P. Berrange wrote:
> On Wed, Sep 11, 2013 at 01:32:15PM -0400, Martin Martin wrote:
> > The following code:
> > 
> > #include <sys/sdt.h>
> > 
> > int main() {
> >     DTRACE_PROBE(a, b);
> > }
> > 
> > compiles with with G++, but when compiled with clang++ 3.3 gives:
> 
> That's a known issue - there's some info (but no solution yet ) in this
> bug report too:
> 
>   https://bugzilla.redhat.com/show_bug.cgi?id=999419

Yeah, seems to be some unknown deficiency in clang (plus mixing two
system compilers on one system doesn't seem to be a good idea - the open
question seems to be whether clang can be configured to use the normal
gas assembler). See also
https://sourceware.org/bugzilla/show_bug.cgi?id=13974

Cheers,

Mark



More information about the Systemtap mailing list