This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/4636] systemtap module generated kernel module does not compile on 2.6.21-1.3218.fc8 kernel


------- Additional Comments From hunt at redhat dot com  2007-06-13 18:36 -------
Looks like you can't build modules with that version of gcc and -Werror.  The
only error here in the runtime is this one:

/home/wcohen/stap_testing_200706130830/install/share/systemtap/runtime/transport/utt.c:96:
error: 'struct inode' has no member named 'u'

And that is caused by the failure of the inode autoconf test previously:
home/wcohen/stap_testing_200706130830/install/share/systemtap/runtime/autoconf-inode-private.c:1:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic

Which , like all the other warnings is caused by incorrect kernel headers and a
picky gcc.  In this case,
static inline void prefetch_range(void *addr, size_t len)
{
#ifdef ARCH_HAS_PREFETCH
	char *cp;
	char *end = addr + len;
                    ^ adding "len" to a void * - gcc says don't do it!


Now wasn't the whole point of implementing void types to eliminate all the
casting associated with using "char *"? 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=4636

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]