Bug 1181883

Summary: GCC 11: srt package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Scott Reeves <sreeves>
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: 1181859    

Description Martin Liška 2021-02-06 11:24:04 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/srt/standard/x86_64

with:
[   24s] /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/sync.h: In static member function 'static constexpr srt::sync::TimePoint<Clock> srt::sync::TimePoint<Clock>::min()':
[   24s] /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/sync.h:182:68: error: 'numeric_limits' was not declared in this scope
[   24s]   182 |     static inline ATR_CONSTEXPR TimePoint min() { return TimePoint(numeric_limits<uint64_t>::min()); }
[   24s]       |                                                                    ^~~~~~~~~~~~~~
[   24s] /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/sync.h:182:94: error: '::min' has not been declared; did you mean 'std::min'?
[   24s]   182 |     static inline ATR_CONSTEXPR TimePoint min() { return TimePoint(numeric_limits<uint64_t>::min()); }
[   24s]       |                                                                                              ^~~
[   24s]       |                                                                                              std::min
[   24s] In file included from /usr/include/c++/11/algorithm:62,
[   24s]                  from /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/utilities.h:103,
[   24s]                  from /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/api.cpp:62:
[   24s] /usr/include/c++/11/bits/stl_algo.h:3455:5: note: 'std::min' declared here
[   24s]  3455 |     min(initializer_list<_Tp> __l, _Compare __comp)
[   24s]       |     ^~~
[   24s] In file included from /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/common.h:70,
[   24s]                  from /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/packet.h:57,
[   24s]                  from /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/api.h:62,
[   24s]                  from /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/api.cpp:64:
[   24s] /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/sync.h:182:67: error: expected primary-expression before '(' token
[   24s]   182 |     static inline ATR_CONSTEXPR TimePoint min() { return TimePoint(numeric_limits<uint64_t>::min()); }
[   24s]       |                                                                   ^
[   24s] /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/sync.h:182:91: error: expected primary-expression before '>' token
[   24s]   182 |     static inline ATR_CONSTEXPR TimePoint min() { return TimePoint(numeric_limits<uint64_t>::min()); }
[   24s]       |                                                                                           ^
[   24s] /home/abuild/rpmbuild/BUILD/srt-1.4.2/srtcore/sync.h:182:94: error: '::min' has not been declared; did you mean 'std::min'?
[   24s]   182 |     static inline ATR_CONSTEXPR TimePoint min() { return TimePoint(numeric_limits<uint64_t>::min()); }
[   24s]       |                                                                                              ^~~
[   24s]       |                                                                                              std::min
Comment 1 Christophe Marin 2021-02-10 10:35:18 UTC
https://build.opensuse.org/request/show/870816
Comment 2 Scott Reeves 2021-02-18 22:59:42 UTC
(In reply to Christophe Giboudeaux from comment #1)
> https://build.opensuse.org/request/show/870816

Thanks. Accepted to Factory.