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/20594] New: Compile error on GCC 6.1.1


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

            Bug ID: 20594
           Summary: Compile error on GCC 6.1.1
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: a.c.kalker at gmail dot com
  Target Milestone: ---

On Arch Linux x86_64, using GCC 6.1.1, after building SystemTap from Git master
(currently at commit e37c415) without problems, I'm getting this compile error
when I try and run a script:

stap /usr/share/doc/systemtap/examples/general/para-callgraph-verbose.stp
'process("./fac").function("*")' -c ./fac
WARNING: function _start return probe is blacklisted: keyword at
/usr/share/doc/systemtap/examples/general/para-callgraph-verbose.stp:24:1
 source: probe $1.return { trace(-1, $$return) }
         ^
In file included from
/tmp/stapUJK0D2/stap_fb3d8173b0fe66e9a260010966657275_12523_src.c:307:0:
/usr/share/systemtap/runtime/map.c: In function ‘_new_map_copy_stat’:
/usr/share/systemtap/runtime/map.c:479:3: error: this ‘if’ clause does not
guard... [-Werror=misleading-indentation]
   if (sd2->max > sd1->max)
   ^~
/usr/share/systemtap/runtime/map.c:481:4: note: ...this statement, but the
latter is misleadingly indented as if it is guarded by the ‘if’
    sd1->shift = sd2->shift;
    ^~~
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:289:
/tmp/stapUJK0D2/stap_fb3d8173b0fe66e9a260010966657275_12523_src.o] Error 1
make: *** [Makefile:1457: _module_/tmp/stapUJK0D2] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]

I would like to recommend building and testing SystemTap with modern versions
of GCC, the new warnings and errors are quite helpful in catching bugs.

Kind regards,

Alain

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