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 testsuite/16248] New: pfiles example fails to build on RHEL7


https://sourceware.org/bugzilla/show_bug.cgi?id=16248

            Bug ID: 16248
           Summary: pfiles example fails to build on RHEL7
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

Running the following on RHEL7 gives compilation errors:

$ stap -gp4 pfiles.stp -x $$

gives the following compilation errors (snip):

/tmp/stapd7gAeJ/stap_456f64308060f6a75443132e4e9e6857_38323_src.c: In function
âfunction_task_file_handle_gidâ:
/usr/src/kernels/3.10.0-40.el7.x86_64/arch/x86/include/asm/uaccess.h:404:26:
error: conversion to non-scalar type requested
 #define __m(x) (*(struct __large_struct __user *)(x))
                          ^
/usr/src/kernels/3.10.0-40.el7.x86_64/arch/x86/include/asm/uaccess.h:357:15:
note: in expansion of macro â__mâ
        : "m" (__m(addr)), "i" (errret), "0" (err))
               ^
/usr/share/systemtap/runtime/linux/loc2c-runtime.h:422:27: note: in expansion
of macro â__get_user_asmâ
         case 8: { u64 _q; __get_user_asm(_q,(unsigned
long)addr,_bad,"q","","=r",1); _v = _q; } break; \
                           ^
/usr/share/systemtap/runtime/linux/loc2c-runtime.h:826:21: note: in expansion
of macro â_stp_derefâ
 #define kderef(s,a) _stp_deref(s,a,KERNEL_DS)
                     ^
/usr/share/systemtap/runtime/linux/loc2c-runtime.h:868:22: note: in expansion
of macro âkderefâ
   ( (typeof(*(ptr))) Xderef(sizeof(*(ptr)), (ptr)) )
                      ^
/usr/share/systemtap/runtime/linux/loc2c-runtime.h:874:20: note: in expansion
of macro â__Xreadâ
 #define kread(ptr) __Xread((ptr), kderef)
                    ^
/tmp/stapd7gAeJ/stap_456f64308060f6a75443132e4e9e6857_38323_src.c:4267:20:
note: in expansion of macro âkreadâ
    STAP_RETVALUE = kread(&cred->fsgid);
                    ^


GCC version 4.8.2-2.

It does work on f19 with GCC version 4.8.2-1.

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

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