Bug 1181864

Summary: GCC 11: bazel3.4 and bazel3.7 packages fail
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Michał Rostecki <mrostecki>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://github.com/bazelbuild/bazel/issues/12756
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:01:38 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/bazel3.4/standard/x86_64

with:
[1A[KIn file included from third_party/ijar/zlib_client.cc:20:
[  242s] ./third_party/ijar/zlib_client.h:64:46: error: 'numeric_limits' is not a member of 'std'
[  242s]    64 |   static const size_t MAX_BUFFER_SIZE = std::numeric_limits<int32_t>::max();
[  242s]       |                                              ^~~~~~~~~~~~~~
[  242s] ./third_party/ijar/zlib_client.h:64:68: error: expected primary-expression before '>' token
[  242s]    64 |   static const size_t MAX_BUFFER_SIZE = std::numeric_limits<int32_t>::max();
[  242s]       |                                                                    ^
[  242s] ./third_party/ijar/zlib_client.h:64:71: error: '::max' has not been declared; did you mean 'std::max'?
[  242s]    64 |   static const size_t MAX_BUFFER_SIZE = std::numeric_limits<int32_t>::max();
[  242s]       |                                                                       ^~~
[  242s]       |                                                                       std::max
Comment 1 Martin Liška 2021-02-23 11:16:18 UTC
May I please ping this?
Comment 2 Martin Liška 2021-03-26 09:57:28 UTC
May I please ping this as GCC 11 release is approaching?
Comment 3 Richard Biener 2021-05-06 12:34:17 UTC
Now in openSUSE:Factory:Staging:N, I've submitted a fix for 3.4, the same applies to 3.7, currently building and will submit and/or amend as well.

Please accept & forward.
Comment 4 Michał Rostecki 2021-05-06 12:41:22 UTC
Thanks for the fixes and I'm very sorry for no reaction from my side before.
Comment 5 Martin Liška 2021-05-10 10:10:39 UTC
Fixed in devel project.
Comment 6 OBSbugzilla Bot 2021-09-02 10:40:43 UTC
This is an autogenerated message for OBS integration:
This bug (1181864) was mentioned in
https://build.opensuse.org/request/show/915715 Backports:SLE-15-SP3 / bazel-skylib1.0.3+bazel3.7+tensorflow2
Comment 7 OBSbugzilla Bot 2021-11-10 11:40:06 UTC
This is an autogenerated message for OBS integration:
This bug (1181864) was mentioned in
https://build.opensuse.org/request/show/930629 Backports:SLE-15-SP3 / bazel3.7
Comment 8 Swamp Workflow Management 2022-06-18 19:16:00 UTC
openSUSE-SU-2022:10014-1: An update that fixes 63 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1173128,1173314,1178287,1178564,1179455,1181864,1186860,1189423
CVE References: CVE-2020-26266,CVE-2020-26267,CVE-2020-26268,CVE-2020-26270,CVE-2020-26271,CVE-2021-37635,CVE-2021-37636,CVE-2021-37637,CVE-2021-37638,CVE-2021-37639,CVE-2021-37640,CVE-2021-37641,CVE-2021-37642,CVE-2021-37643,CVE-2021-37644,CVE-2021-37645,CVE-2021-37646,CVE-2021-37647,CVE-2021-37648,CVE-2021-37649,CVE-2021-37650,CVE-2021-37651,CVE-2021-37652,CVE-2021-37653,CVE-2021-37654,CVE-2021-37655,CVE-2021-37656,CVE-2021-37657,CVE-2021-37658,CVE-2021-37659,CVE-2021-37660,CVE-2021-37661,CVE-2021-37662,CVE-2021-37663,CVE-2021-37664,CVE-2021-37665,CVE-2021-37666,CVE-2021-37667,CVE-2021-37668,CVE-2021-37669,CVE-2021-37670,CVE-2021-37671,CVE-2021-37672,CVE-2021-37673,CVE-2021-37674,CVE-2021-37675,CVE-2021-37676,CVE-2021-37677,CVE-2021-37678,CVE-2021-37679,CVE-2021-37680,CVE-2021-37681,CVE-2021-37682,CVE-2021-37683,CVE-2021-37684,CVE-2021-37685,CVE-2021-37686,CVE-2021-37687,CVE-2021-37688,CVE-2021-37689,CVE-2021-37690,CVE-2021-37691,CVE-2021-37692
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP3 (src):    bazel-skylib1.0.3-1.0.3-bp153.2.1, bazel3.7-3.7.2-bp153.2.1, bazel3.7-3.7.2-bp153.4.1, tensorflow2-2.6.0-bp153.2.3.1, tensorflow2-lite-2.6.0-bp153.2.3.1, tensorflow2_2_6_0-gnu-hpc-2.6.0-bp153.2.3.1, tensorflow2_2_6_0-gnu-openmpi2-hpc-2.6.0-bp153.2.3.1