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/21984] New: on 32-bit systems, getting gcc "cast to pointer from integer of different size" errors


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

            Bug ID: 21984
           Summary: on 32-bit systems, getting gcc "cast to pointer from
                    integer of different size" errors
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

On 32-bit systems (like RHEL6 i686), I'm seeing lots of errors like these in
the testsuite log file:

====
Running /root/src.copy/testsuite/systemtap.base/deref.exp ...
executing: stap -v -g /root/src.copy/testsuite/systemtap.base/deref.stp
spawn stap -v -g /root/src.copy/testsuite/systemtap.base/deref.stp
Pass 1: parsed user script and 459 library scripts using
39608virt/27796res/2716
shr/27296data kb, in 330usr/20sys/356real ms.
Pass 2: analyzed script: 4 probes, 17 functions, 0 embeds, 1 global using
40004v
irt/28704res/3180shr/27692data kb, in 10usr/0sys/10real ms.
Pass 3: translated to C into
"/tmp/stapEIwfns/stap_f7d1c06cf3b724241e904a494b024
1fe_4881_src.c" using 40004virt/29120res/3560shr/27692data kb, in
10usr/0sys/2re
al ms.
cc1: warnings being treated as errors
/tmp/stapEIwfns/stap_f7d1c06cf3b724241e904a494b0241fe_4881_src.c: In function
'f
unction___global_kread_const_ptr__overload_0':
/tmp/stapEIwfns/stap_f7d1c06cf3b724241e904a494b0241fe_4881_src.c:723: error:
cas
t to pointer from integer of different size
/tmp/stapEIwfns/stap_f7d1c06cf3b724241e904a494b0241fe_4881_src.c: In function
'f
unction___global_kread_ptr__overload_0':
/tmp/stapEIwfns/stap_f7d1c06cf3b724241e904a494b0241fe_4881_src.c:943: error:
cas
t to pointer from integer of different size
make[4]: *** [/tmp/stapEIwfns/stap_f7d1c06cf3b724241e904a494b0241fe_4881_src.o] 
Error 1
make[3]: *** [_module_/tmp/stapEIwfns] Error 2
WARNING: kbuild exited with status: 2
====

This is because the (post-bpf) kderef/uderef() macros always return a 64-bit
value.

-- 
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]