Bug 1181875

Summary: GCC 11: llvm11 package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Aaron Puchert <aaronpuchert>
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:16:21 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/llvm11/standard/x86_64

with:
[ 5434s] /home/abuild/rpmbuild/BUILD/llvm-11.0.1.src/stage1/bin/clang++ -DHAVE_POSIX_REGEX -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iutils/benchmark/src -I../utils/benchmark/src -I/usr/include/libxml2 -Iinclude -I../include -I../utils/benchmark/include -I../utils/benchmark/src/../include -O2 -Wall -D_FORTIFY_SOURCE=0 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -DNDEBUG -fPIC -fvisibility-inlines-hidden -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -flto=thin  -std=c++11  -Wall  -Wextra  -Wshadow  -pedantic  -pedantic-errors  -Wshorten-64-to-32  -Wfloat-equal  -fstrict-aliasing  -fno-exceptions  -Wstrict-aliasing  -Wthread-safety -O2 -g -DNDEBUG -std=c++14 -MD -MT utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o -MF utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o.d -o utils/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o -c ../utils/benchmark/src/benchmark_register.cc
[ 5434s] In file included from ../utils/benchmark/src/benchmark_register.cc:15:
[ 5434s] ../utils/benchmark/src/benchmark_register.h:17:30: error: no member named 'numeric_limits' in namespace 'std'
[ 5434s]   static const T kmax = std::numeric_limits<T>::max();
[ 5434s]                         ~~~~~^
[ 5434s] ../utils/benchmark/src/benchmark_register.h:17:45: error: 'T' does not refer to a value
[ 5434s]   static const T kmax = std::numeric_limits<T>::max();
[ 5434s]                                             ^
[ 5434s] ../utils/benchmark/src/benchmark_register.h:8:20: note: declared here
[ 5434s] template <typename T>
[ 5434s]                    ^
[ 5434s] ../utils/benchmark/src/benchmark_register.h:17:47: error: no member named 'max' in the global namespace; did you mean 'kmax'?
[ 5434s]   static const T kmax = std::numeric_limits<T>::max();
[ 5434s]                                               ^~~~~
[ 5434s]                                               kmax
[ 5434s] ../utils/benchmark/src/benchmark_register.h:17:18: note: 'kmax' declared here
[ 5434s]   static const T kmax = std::numeric_limits<T>::max();
[ 5434s]                  ^
[ 5434s] ../utils/benchmark/src/benchmark_register.h:17:18: error: default initialization of an object of const type 'const long'
[ 5434s]   static const T kmax = std::numeric_limits<T>::max();
[ 5434s]                  ^
[ 5434s]                       = 0
[ 5434s] ../utils/benchmark/src/benchmark_register.cc:270:3: note: in instantiation of function template specialization 'AddRange<long>' requested here
[ 5434s]   AddRange(&arglist, start, limit, range_multiplier_);
[ 5434s]   ^
[ 5434s] In file included from ../utils/benchmark/src/benchmark_register.cc:15:
[ 5434s] ../utils/benchmark/src/benchmark_register.h:17:18: error: default initialization of an object of const type 'const int'
[ 5434s]   static const T kmax = std::numeric_limits<T>::max();
[ 5434s]                  ^
Comment 1 Aaron Puchert 2021-02-10 14:40:58 UTC
Should be fixed by upstream commit https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1, I'll just port that back.
Comment 2 OBSbugzilla Bot 2021-02-15 21:30:17 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/872647 Factory / llvm11
Comment 3 OBSbugzilla Bot 2021-02-16 02:20:15 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/872681 Factory / llvm11
Comment 4 Aaron Puchert 2021-02-22 22:34:31 UTC
Should be fixed in Factory, openSUSE:Factory:Staging:Gcc7/llvm11 hasn't rebuild though since then. Just reopen if there is another issue.
Comment 5 OBSbugzilla Bot 2021-06-05 23:30:06 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/897770 Factory / llvm10
Comment 6 OBSbugzilla Bot 2021-06-13 16:30:07 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/899821 Factory / llvm9
Comment 8 OBSbugzilla Bot 2021-11-19 01:42:41 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/932377 Backports:SLE-15-SP3 / llvm12
Comment 13 OBSbugzilla Bot 2023-05-25 08:35:53 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/1088949 Backports:SLE-15-SP4 / llvm15
Comment 15 OBSbugzilla Bot 2024-03-12 09:55:36 UTC
This is an autogenerated message for OBS integration:
This bug (1181875) was mentioned in
https://build.opensuse.org/request/show/1157115 Backports:SLE-15-SP5 / llvm17