Bug 1030254

Summary: jack fails to build with GCC 7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
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-21 09:05:47 UTC
[  188s] ../tests/test.cpp: In function 'int process4(jack_nframes_t, void*)':
[  188s] ../tests/test.cpp:483:73: error: call of overloaded 'abs(jack_nframes_t)' is ambiguous
[  188s]   if (delta_time > 0  && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
[  188s]                                                                          ^
[  188s] In file included from /usr/include/c++/7/cstdlib:75:0,
[  188s]                  from /usr/include/c++/7/stdlib.h:36,
[  188s]                  from ../tests/test.cpp:27:
[  188s] /usr/include/stdlib.h:751:12: note: candidate: int abs(int)
[  188s]  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
[  188s]             ^~~

There's an upstream issue for that:
https://github.com/jackaudio/jack2/issues/253
Comment 1 Takashi Iwai 2017-05-02 14:08:12 UTC
Dave already fixed it.