Bug 1181865

Summary: GCC 11: benchmark package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: E-mail List <screening-team-bugs>
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:02:34 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/benchmark/standard/x86_64

with:
[   35s] /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/benchmark_register.h: In function 'typename std::vector<T>::iterator benchmark::internal::AddPowers(std::vector<T>*, T, T, int)':
[   35s] /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/benchmark_register.h:22:30: error: 'numeric_limits' is not a member of 'std'
[   35s]    22 |   static const T kmax = std::numeric_limits<T>::max();
[   35s]       |                              ^~~~~~~~~~~~~~
[   35s] /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/benchmark_register.h:22:46: error: expected primary-expression before '>' token
[   35s]    22 |   static const T kmax = std::numeric_limits<T>::max();
[   35s]       |                                              ^
[   35s] /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/benchmark_register.h:22:49: error: '::max' has not been declared; did you mean 'std::max'?
[   35s]    22 |   static const T kmax = std::numeric_limits<T>::max();
[   35s]       |                                                 ^~~
[   35s]       |                                                 std::max
[   35s] In file included from /usr/include/c++/11/algorithm:62,
[   35s]                  from /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/include/benchmark/benchmark.h:172,
[   35s]                  from /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/internal_macros.h:4,
[   35s]                  from /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/check.h:8,
[   35s]                  from /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/benchmark_register.h:6,
[   35s]                  from /home/abuild/rpmbuild/BUILD/benchmark-1.5.2/src/benchmark_register.cc:15:
[   35s] /usr/include/c++/11/bits/stl_algo.h:3467:5: note: 'std::max' declared here
[   35s]  3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
[   35s]       |     ^~~
Comment 1 Christophe Marin 2021-02-08 22:02:58 UTC
https://build.opensuse.org/request/show/870356
Comment 2 Martin Liška 2021-02-09 08:00:07 UTC
Fixed in devel project, thanks.