Bug ID 1186860
Summary Tensorflow2 fails to build with GCC11
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter guillaume.gardet@arm.com
QA Contact qa-bugs@suse.de
CC afaerber@suse.com, cgoll@suse.com, dmueller@suse.com
Found By ---
Blocker ---

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]       |     ^~~


You are receiving this mail because: