Bug 1186860

Summary: Tensorflow2 fails to build with GCC11
Product: [openSUSE] openSUSE Tumbleweed Reporter: Guillaume GARDET <guillaume.gardet>
Component: OtherAssignee: Christian Goll <cgoll>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: afaerber, cgoll, dleuenberger, dmueller, qydwhotmail
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Guillaume GARDET 2021-06-04 12:07:09 UTC
Tensorflow2 fails to build with GCC11 likely because of missing includes,
<stdexcept> and <limits> ?

Log:
[   87s] external/com_google_absl/absl/synchronization/internal/graphcycles.cc:451:26: error: 'numeric_limits' is not a member of 'std'
[   87s]   451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
[   87s]       |                          ^~~~~~~~~~~~~~
[   87s] external/com_google_absl/absl/synchronization/internal/graphcycles.cc:451:49: error: expected primary-expression before '>' token
[   87s]   451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
[   87s]       |                                                 ^
[   87s] external/com_google_absl/absl/synchronization/internal/graphcycles.cc:451:52: error: '::max' has not been declared; did you mean 'std::max'?
[   87s]   451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
[   87s]       |                                                    ^~~
[   87s]       |                                                    std::max
[   87s] In file included from /usr/include/c++/11/algorithm:62,
[   87s]                  from external/com_google_absl/absl/synchronization/internal/graphcycles.cc:38:
[   87s] /usr/include/c++/11/bits/stl_algo.h:3467:5: note: 'std::max' declared here
[   87s]  3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
[   87s]       |     ^~~
Comment 1 openQA Review 2021-06-19 05:18:10 UTC
This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_ai_ml
https://openqa.opensuse.org/tests/1792729

To prevent further reminder comments one of the following options should be followed:
1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
2. The openQA job group is moved to "Released"
3. The label in the openQA scenario is removed
Comment 2 Oliver Kurz 2021-07-03 06:25:31 UTC
This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_ai_ml
https://openqa.opensuse.org/tests/1816031

To prevent further reminder comments one of the following options should be followed:
1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
2. The openQA job group is moved to "Released" or "EOL" (End-of-Life)
3. The label in the openQA scenario is removed
Comment 3 openQA Review 2021-07-18 00:01:37 UTC
This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_ai_ml
https://openqa.opensuse.org/tests/1841216

To prevent further reminder comments one of the following options should be followed:
1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
2. The openQA job group is moved to "Released" or "EOL" (End-of-Life)
3. The label in the openQA scenario is removed
Comment 4 Dominique Leuenberger 2021-07-30 08:48:28 UTC
*** Bug 1187164 has been marked as a duplicate of this bug. ***
Comment 5 openQA Review 2021-08-14 00:01:14 UTC
This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_ai_ml
https://openqa.opensuse.org/tests/1873029

To prevent further reminder comments one of the following options should be followed:
1. The test scenario is fixed by applying the bug fix to the tested product or the test is adjusted
2. The openQA job group is moved to "Released" or "EOL" (End-of-Life)
3. The label in the openQA scenario is removed
Comment 6 Fusion Future 2021-08-19 08:17:01 UTC
Working on it
Comment 7 Fusion Future 2021-09-02 02:49:36 UTC
Fixed in https://build.opensuse.org/request/show/915219
Comment 8 OBSbugzilla Bot 2021-09-02 10:40:48 UTC
This is an autogenerated message for OBS integration:
This bug (1186860) was mentioned in
https://build.opensuse.org/request/show/915715 Backports:SLE-15-SP3 / bazel-skylib1.0.3+bazel3.7+tensorflow2
Comment 9 Swamp Workflow Management 2022-06-18 19:16:04 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