Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913731 - sci-libs/tensorflow-2.12.0 cc_op_gen_util.cc:65:58: error: no match for 'operator='
Summary: sci-libs/tensorflow-2.12.0 cc_op_gen_util.cc:65:58: error: no match for 'oper...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 912819 922374
  Show dependency tree
 
Reported: 2023-09-06 18:59 UTC by Justin Keogh
Modified: 2024-02-24 12:52 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,385.31 KB, text/x-log)
2023-09-06 18:59 UTC, Justin Keogh
Details
emerge --info (emerge_info.log,10.94 KB, text/x-log)
2023-09-06 18:59 UTC, Justin Keogh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Keogh 2023-09-06 18:59:39 UTC
Created attachment 869967 [details]
build log

FEATURES="-ccache -distcc" emerge sci-libs/tensorflow -1

fails to compile with:
"tensorflow/cc/framework/cc_op_gen_util.cc:65:58: error: no match for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::b
asic_string<char>'} and 'absl::lts_20230125::string_view')"

build.log and emerge --info attached
Comment 1 Justin Keogh 2023-09-06 18:59:56 UTC
Created attachment 869968 [details]
emerge --info
Comment 3 Justin Keogh 2023-09-07 02:08:04 UTC
`$ emerge abseil-cpp -s` gives:
Latest version available: 20230802.0
Latest version installed: 20230125.3-r1
Comment 4 Maxim Fomin 2023-11-09 19:14:51 UTC
(In reply to Justin Keogh from comment #3)
> `$ emerge abseil-cpp -s` gives:
> Latest version available: 20230802.0
> Latest version installed: 20230125.3-r1

I tried to compile with the latest available version (20230802.0) and it still fails because of abseil errors related to string conversions. Btw there is already tensorflow 2.14, it may have fixed errors related to abseil update.
Comment 5 Larry the Git Cow gentoo-dev 2024-02-03 19:35:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2ed3a1af052c5886b94a37efee34574114cabbf

commit d2ed3a1af052c5886b94a37efee34574114cabbf
Author:     wangjiezhe <wangjiezhe@gmail.com>
AuthorDate: 2024-01-20 05:39:25 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2024-02-03 19:32:42 +0000

    sci-libs/tensorflow: update dependencies
    
    tensorflow 2.11 and 2.12 need abseil-cpp>=20220623 built with C++17
    tensorflow-2.12 cannot compile with abseil-cpp-20230125.2
    stick to version 20220623
    
    Bug: https://bugs.gentoo.org/881445
    Bug: https://bugs.gentoo.org/882617
    Bug: https://bugs.gentoo.org/913731
    Bug: https://bugs.gentoo.org/915621
    
    Signed-off-by: wangjiezhe <wangjiezhe@gmail.com>
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>

 sci-libs/tensorflow/tensorflow-2.11.0.ebuild | 3 ++-
 sci-libs/tensorflow/tensorflow-2.12.0.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2024-02-24 12:52:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f57039ebc84c40eddf9f6a63afbbf86a8b3c42da

commit f57039ebc84c40eddf9f6a63afbbf86a8b3c42da
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2024-02-24 12:47:06 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2024-02-24 12:47:06 +0000

    sci-libs/tensorflow: treeclean
    
    Bug: https://bugs.gentoo.org/807625
    Closes: https://bugs.gentoo.org/906609
    Closes: https://bugs.gentoo.org/905673
    Closes: https://bugs.gentoo.org/913731
    Closes: https://bugs.gentoo.org/882617
    Closes: https://bugs.gentoo.org/881445
    Closes: https://bugs.gentoo.org/915621
    Closes: https://bugs.gentoo.org/909002
    Closes: https://bugs.gentoo.org/705712
    Closes: https://bugs.gentoo.org/873295
    Closes: https://bugs.gentoo.org/907031
    Closes: https://bugs.gentoo.org/909003
    Closes: https://bugs.gentoo.org/909767
    Closes: https://bugs.gentoo.org/913534
    Closes: https://bugs.gentoo.org/818766
    Closes: https://bugs.gentoo.org/830167
    Closes: https://bugs.gentoo.org/854354
    Closes: https://bugs.gentoo.org/851573
    Closes: https://bugs.gentoo.org/780468
    Closes: https://bugs.gentoo.org/910029
    Closes: https://bugs.gentoo.org/897228
    Closes: https://bugs.gentoo.org/844196
    Closes: https://bugs.gentoo.org/910030
    Closes: https://bugs.gentoo.org/897230
    Closes: https://bugs.gentoo.org/788064
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/package.mask                              |   1 -
 sci-libs/tensorflow/Manifest                       |  57 --
 ...dd-rules-docker-http_archive-bazel-toolch.patch |  37 -
 ...emlib-Latest-absl-LTS-has-split-cord-libs.patch |  32 -
 ...Must-link-against-libm-for-round-and-log2.patch |  29 -
 ...ensorflow_cc-Add-systemlib-nsync-linkopts.patch |  35 -
 ...systemlib-Updates-for-Abseil-20220623-LTS.patch |  71 --
 ...0006-systemlib-Update-targets-for-absl_py.patch |  24 -
 ...temlib-Add-well_known_types_py_pb2-target.patch |  28 -
 ...-0008-Relax-setup.py-version-requirements.patch |  86 --
 ....0-0009-systemlib-update-targets-for-absl.patch | 365 --------
 ...010-systemlib-fix-missing-osx-in-pybind11.patch |  25 -
 ...temlib-fix-missing-LICENSE-in-flatbuffers.patch |  25 -
 ...nstallation-remove-cp_local_config_python.patch |  68 --
 ...2.15.0-0013-build-use-non-hermetic-python.patch | 990 ---------------------
 sci-libs/tensorflow/metadata.xml                   |  15 -
 sci-libs/tensorflow/tensorflow-2.15.0.ebuild       | 464 ----------
 17 files changed, 2352 deletions(-)