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/22582] New: SystemTap 3.2 stap script compilation error opt


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

            Bug ID: 22582
           Summary: SystemTap 3.2 stap script compilation error opt
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mysecondaccountabc at gmail dot com
  Target Milestone: ---

I'm having the following compilation error compiling a stap script in ARM with
SystemTap 3.2:

$ sudo stap -v -g -p4 -DSTP_NO_OVERLOAD systemtap-strace.stp -m stap_trace 
Compiling systemtap module ...
./systemtap-strace.stp -> ./stap_trace.ko
Pass 1: parsed user script and 452 library scripts using
35092virt/26404res/2260shr/24360data kb, in 4950usr/190sys/5187real ms.
Pass 2: analyzed script: 734 probes, 230 functions, 104 embeds, 63 globals
using 68040virt/60300res/3180shr/57308data kb, in
2348300usr/36720sys/2415777real ms.
Pass 3: translated to C into "/tmp/stapBqLAih/stap_trace_src.c" using
68040virt/60492res/3412shr/57308data kb, in 121940usr/440sys/124281real ms.
/tmp/stapBqLAih/stap_trace_src.c:198942:28: error: field ‘ops’ has incomplete
type
/tmp/stapBqLAih/stap_trace_src.c: In function ‘systemtap_module_init’:
/tmp/stapBqLAih/stap_trace_src.c:199900:9: error: implicit declaration of
function ‘stap_utrace_detach_ops’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapBqLAih/stap_trace_src.o] Error 1
make: *** [_module_/tmp/stapBqLAih] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_trace.ko" in 143290usr/13730sys/166637real ms.
Pass 4: compilation failed.  [man error::pass4]


- The script is the same that is running in the a x86 machine using the same
SystemTap version.
- Systemtap seems to be working with simple scripts:

$ sudo stap -ve 'probe begin { log("hello world") exit () }'
[sudo] password for jd: 
Pass 1: parsed user script and 452 library scripts using
35216virt/26348res/2244shr/24484data kb, in 5990usr/570sys/6758real ms.
Pass 2: analyzed script: 1 probe, 2 functions, 0 embeds, 0 globals using
35612virt/27116res/2600shr/24880data kb, in 90usr/0sys/92real ms.
Pass 3: translated to C into
"/tmp/stapUh7ouq/stap_3bc557db95fcecfd9b772ad47121f60e_1080_src.c" using
35612virt/27440res/2892shr/24880data kb, in 20usr/0sys/18real ms.
Pass 4: compiled C into "stap_3bc557db95fcecfd9b772ad47121f60e_1080.ko" in
123230usr/12460sys/139093real ms.
Pass 5: starting run.
hello world
Pass 5: run completed in 100usr/300sys/746real ms.

Versions:
- Custom Kernel 3.2.93-versatile
  $ uname -a
  Linux alex-14f9b262f2 3.2.93-versatile-gcm #1 Wed Dec 6 11:56:12 EST 2017
armv5tejl GNU/Linux
- Gcc 4.7.2 (Yes, I'm aware about the C++11 standard support needed, but please
have a look to https://sourceware.org/bugzilla/show_bug.cgi?id=22572).
- SystemTap 3.2/0.152, was compiled from the oficial release sources, just
patching staptree.h due to the C++11 issue).

--- staptree.h_ori      2017-12-10 23:23:25.872864000 -0500
+++ staptree.h  2017-12-10 23:23:36.332864000 -0500
@@ -518,10 +518,10 @@
     unsigned base;
     unsigned width;
     unsigned precision;
-    unsigned flags : 8;
-    width_type widthtype : 8;
-    precision_type prectype : 8;
-    conversion_type type : 8;
+    unsigned flags;
+    width_type widthtype;
+    precision_type prectype;
+    conversion_type type;
     interned_string literal_string;
     bool is_empty() const
     {

Any clue?

I could attach a full (-vv) output and the temporary files (-k) if it is
needed.

Cheers,
Gus

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