public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/20594] New: Compile error on GCC 6.1.1
@ 2016-09-09 12:55 a.c.kalker at gmail dot com
  2016-09-09 13:04 ` [Bug runtime/20594] Compile error on GCC 6.1.1: misleading indentation a.c.kalker at gmail dot com
  2016-09-09 14:13 ` fche at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: a.c.kalker at gmail dot com @ 2016-09-09 12:55 UTC (permalink / raw)
  To: systemtap

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.

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

* [Bug runtime/20594] Compile error on GCC 6.1.1: misleading indentation
  2016-09-09 12:55 [Bug runtime/20594] New: Compile error on GCC 6.1.1 a.c.kalker at gmail dot com
@ 2016-09-09 13:04 ` a.c.kalker at gmail dot com
  2016-09-09 14:13 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: a.c.kalker at gmail dot com @ 2016-09-09 13:04 UTC (permalink / raw)
  To: systemtap

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

Alain Kalker <a.c.kalker at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Compile error on GCC 6.1.1  |Compile error on GCC 6.1.1:
                   |                            |misleading indentation

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

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

* [Bug runtime/20594] Compile error on GCC 6.1.1: misleading indentation
  2016-09-09 12:55 [Bug runtime/20594] New: Compile error on GCC 6.1.1 a.c.kalker at gmail dot com
  2016-09-09 13:04 ` [Bug runtime/20594] Compile error on GCC 6.1.1: misleading indentation a.c.kalker at gmail dot com
@ 2016-09-09 14:13 ` fche at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2016-09-09 14:13 UTC (permalink / raw)
  To: systemtap

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

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |fche at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
Thanks for the report!  Fixed as per commit 0ec5ddf57, as per gcc 6.2.1 on
fedora rawhide.

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

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

end of thread, other threads:[~2016-09-09 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-09 12:55 [Bug runtime/20594] New: Compile error on GCC 6.1.1 a.c.kalker at gmail dot com
2016-09-09 13:04 ` [Bug runtime/20594] Compile error on GCC 6.1.1: misleading indentation a.c.kalker at gmail dot com
2016-09-09 14:13 ` fche 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).