From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122148 invoked by alias); 11 Dec 2017 08:13:23 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 122091 invoked by uid 48); 11 Dec 2017 08:13:18 -0000 From: "mysecondaccountabc at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/22582] New: SystemTap 3.2 stap script compilation error opt Date: Mon, 11 Dec 2017 08:13:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mysecondaccountabc at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2017-q4/txt/msg00186.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D22582 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 w= ith SystemTap 3.2: $ sudo stap -v -g -p4 -DSTP_NO_OVERLOAD systemtap-strace.stp -m stap_trace= =20 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 =E2=80=98ops=E2=80= =99 has incomplete type /tmp/stapBqLAih/stap_trace_src.c: In function =E2=80=98systemtap_module_ini= t=E2=80=99: /tmp/stapBqLAih/stap_trace_src.c:199900:9: error: implicit declaration of function =E2=80=98stap_utrace_detach_ops=E2=80=99 [-Werror=3Dimplicit-funct= ion-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:=20 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 pl= ease have a look to https://sourceware.org/bugzilla/show_bug.cgi?id=3D22572). - 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 --=20 You are receiving this mail because: You are the assignee for the bug.