Bug 1031341

Summary: systemtap fails to build with GCC 7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: DevelopmentAssignee: Tony Jones <tonyj>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1030236    

Description Martin Liška 2017-03-28 12:35:36 UTC
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/systemtap/standard/x86_64

[   33s] staptree.cxx:1001:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   33s]     curr.set_flag (fmt_flag_sign);
[   33s]     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
[   33s] staptree.cxx:1002:2: note: here
[   33s]   case 'u':
[   33s]   ^~~~
[   33s] staptree.cxx:1013:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   33s]     curr.set_flag (fmt_flag_large);
[   33s]     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
[   33s] staptree.cxx:1014:2: note: here
[   33s]   case 'x':
[   33s]   ^~~~
[   34s] translate.cxx: In member function 'void c_unparser::emit_compiled_printfs()':
[   34s] translate.cxx:1305:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   34s]      if (strverscmp(session->compatible.c_str(), "1.3") < 0)
[   34s]      ^~
[   34s] translate.cxx:1318:3: note: here
[   34s]    case print_format::conv_number:
[   34s]    ^~~~
[   34s] translate.cxx:1410:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   34s]         if (strverscmp(session->compatible.c_str(), "1.3") < 0)
[   34s]         ^~
[   34s] translate.cxx:1423:6: note: here
[   34s]       case print_format::conv_number:
[   34s]       ^~~~
[   35s] tapsets.cxx: In function 'void validate_module_elf(Dwfl_Module*, const char*, base_query*)':
[   35s] tapsets.cxx:2466:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   35s]        if (! q->has_process) break; // 32-bit kernel/module
[   35s]        ^~
[   35s] tapsets.cxx:2468:5: note: here
[   35s]      case EM_X86_64:
[   35s]      ^~~~
[   37s]   CC       stap-loc2c.o
[   37s] loc2c.c: In function 'c_emit_location':
[   37s] loc2c.c:2563:21: error: this statement may fall through [-Werror=implicit-fallthrough=]
[   37s]   l->address.declare = "addr";
[   37s]   ~~~~~~~~~~~~~~~~~~~^~~~~~~~
[   37s] loc2c.c:2564:7: note: here
[   37s]        case loc_fragment:
[   37s]        ^~~~

Can be tested in openSUSE:Factory:Staging:Gcc7 project.
Comment 1 Dominique Leuenberger 2017-05-18 11:50:09 UTC
There were upgrades of systemtap to version 3.0 and 3.1 since this report was created.

Systemtap is building fine now in the Staging project with GCC7, so presumably one of those updates brought the fix for gcc7 as well.

Closing as UPSTREAM