This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: compiling systemtap with gcc 3.2.3-47 fails
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Michael Obster <michael at obster dot org>
- Cc: systemtap at sources dot redhat dot com
- Date: 19 Dec 2006 10:43:38 -0500
- Subject: Re: compiling systemtap with gcc 3.2.3-47 fails
- References: <20061219133853.x40ext880ks00wg4@ssl.spitfire-media.de>
Michael Obster <michael@obster.org> writes:
> when I'm compiling systemtap I always get this error with the
> gcc-3.2.3-47 (Red Hat):
> [...]
> In file included from tapsets.cxx:40:
> loc2c.h:25: syntax error before `__attribute__'
> loc2c.h: In function `location* c_translate_location(...)':
> loc2c.h:68: syntax error before `__attribute__'
> loc2c.h: In function `void c_translate_fetch(...)':
> loc2c.h:76: syntax error before `__attribute__'
> In file included from tapsets.cxx:42:
> [...]
You can probably make this work by adding
#define __attribute__(x)
into loc2c.h.
> [...] Do I need the same gcc version as for kernel compile here
> already?
That stap program may be built with any recent compiler. It's
just an ordinary small C++ program.
> Or is this only necessary later when systemtap generates the
> kernel-module?
Correct: systemtap will invoke the kernel-build process, at which time
the proper kernel-compatible gcc must be in the path.
- FChE