public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug testsuite/16248] New: pfiles example fails to build on RHEL7
@ 2013-11-25 20:24 jlebon at redhat dot com
  2013-12-03 16:54 ` [Bug testsuite/16248] " dsmith at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jlebon at redhat dot com @ 2013-11-25 20:24 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug testsuite/16248] pfiles example fails to build on RHEL7
  2013-11-25 20:24 [Bug testsuite/16248] New: pfiles example fails to build on RHEL7 jlebon at redhat dot com
@ 2013-12-03 16:54 ` dsmith at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dsmith at redhat dot com @ 2013-12-03 16:54 UTC (permalink / raw)
  To: systemtap

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

David Smith <dsmith at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dsmith at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
I see the same error on rawhide (3.13.0-0.rc1.git2.1.fc21.x86_64). The problem
is the kernel's new CONFIG_USER_NS feature.

Based on other examples of user namespace support I see in the kernel, I've
updated the example. Fixed in commit f112949.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-03 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-25 20:24 [Bug testsuite/16248] New: pfiles example fails to build on RHEL7 jlebon at redhat dot com
2013-12-03 16:54 ` [Bug testsuite/16248] " dsmith at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).