This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: DTRACE_PROBE macro fails to compile with Clang++
- From: Mark Wielaard <mjw at redhat dot com>
- To: "Daniel P. Berrange" <berrange at redhat dot com>
- Cc: Martin Martin <martin at infinio dot com>, systemtap at sourceware dot org
- Date: Wed, 11 Sep 2013 19:45:14 +0200
- Subject: Re: DTRACE_PROBE macro fails to compile with Clang++
- Authentication-results: sourceware.org; auth=none
- References: <CAAQ0mPgq32wUcFVX824duqR8k=cg-9ToLLY6WaD=mv41nzktDw at mail dot gmail dot com> <20130911173835 dot GK2293 at redhat dot com>
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