This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
compiling systemtap with gcc 3.2.3-47 fails
- From: Michael Obster <michael at obster dot org>
- To: systemtap at sources dot redhat dot com
- Date: Tue, 19 Dec 2006 13:38:53 +0100
- Subject: compiling systemtap with gcc 3.2.3-47 fails
Hi,
when I'm compiling systemtap I always get this error with the
gcc-3.2.3-47 (Red Hat):
if g++ -DHAVE_CONFIG_H -I. -I. -I.
-DBINDIR='"/user/dems9165/systemtap-root/bin"'
-DPKGDATADIR='"/user/dems9165/systemtap-root/share/systemtap"'
-DPKGLIBDIR='"/user/dems9165/systemtap-root/libexec/systemtap"'
-Iinclude-elfutils -Werror -Wall -g -O2 -MT stap-tapsets.o -MD -MP
-MF ".deps/stap-tapsets.Tpo" -c -o stap-tapsets.o `test -f
'tapsets.cxx' || echo './'`tapsets.cxx; \
then mv -f ".deps/stap-tapsets.Tpo" ".deps/stap-tapsets.Po"; else rm
-f ".deps/stap-tapsets.Tpo"; exit 1; fi
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:
/usr/include/inttypes.h: In function `void c_translate_store(...)':
/usr/include/inttypes.h:302: non-local function `
c_translate_store(...)::imaxdiv_t imaxdiv(long long int, long long int)'
uses local type `c_translate_store(...)::imaxdiv_t'
tapsets.cxx:102: confused by earlier errors, bailing out
gmake[2]: *** [stap-tapsets.o] Error 1
gmake[2]: Leaving directory `/user/dems9165/systemtap/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/user/dems9165/systemtap/src'
gmake: *** [all] Error 2
The problem is that the kernel is compiled with this gcc version and
updating gcc is impossible. Do I need the same gcc version as for
kernel compile here already? Or is this only necessary later when
systemtap generates the kernel-module?
Cheers,
Michael
--
mailto: michael@obster.org
http://www.obster.org