Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817212 - sci-libs/tensorflow-2.5.0-r1 with grpc-1.41.0: /usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
Summary: sci-libs/tensorflow-2.5.0-r1 with grpc-1.41.0: /usr/include/grpcpp/impl/codeg...
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:
 
Reported: 2021-10-09 10:05 UTC by Kobboi
Modified: 2022-02-05 17:00 UTC (History)
4 users (show)

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


Attachments
build.log.gz (build.log.gz,109.62 KB, text/plain)
2021-10-09 10:07 UTC, Kobboi
Details
emerge-info.log (emerge-info.log,7.76 KB, text/plain)
2021-10-09 10:07 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2021-10-09 10:05:15 UTC
ERROR: /var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/work/tensorflow-2.5.0-python3_9/tensorflow/BUILD:974:20: Linking of rule '//tensorflow:libtensorflow.so.2.5.0' failed (Exit 1): gcc failed: error executing command 
  (cd /var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/work/tensorflow-2.5.0-python3_9-bazel-base/execroot/org_tensorflow && \
  exec env - \
    HOME=/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/homedir \
    KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/temp/.keras \
    PATH=/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/temp/python3.9/bin:/usr/lib/portage/python3.9/ebuild-helpers/xattr:/usr/lib/portage/python3.9/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/13/bin:/usr/lib/llvm/12/bin:/opt/eagle/bin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python3.9 \
    PYTHON_LIB_PATH=/usr/lib/python3.9/site-packages \
    TF2_BEHAVIOR=1 \
    TF_SYSTEM_LIBS=absl_py,astor_archive,astunparse_archive,boringssl,com_github_googlecloudplatform_google_cloud_cpp,com_github_grpc_grpc,com_google_protobuf,curl,cython,dill_archive,double_conversion,enum34_archive,flatbuffers,functools32_archive,gast_archive,gif,hwloc,icu,jsoncpp_git,libjpeg_turbo,lmdb,nasm,nsync,opt_einsum_archive,org_sqlite,pasta,pcre,png,pybind11,six_archive,snappy,tblib_archive,termcolor_archive,typing_extensions_archive,wrapt,zlib \
  /usr/bin/gcc @bazel-out/k8-opt/bin/tensorflow/libtensorflow.so.2.5.0-2.params)
Execution platform: @local_execution_config_platform//:platform
/usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
/usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
/usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
/usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
/usr/include/absl/synchronization/mutex.h:526: error: undefined reference to 'absl::lts_20210324::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:543: error: undefined reference to 'absl::lts_20210324::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:543: error: undefined reference to 'absl::lts_20210324::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:526: error: undefined reference to 'absl::lts_20210324::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:543: error: undefined reference to 'absl::lts_20210324::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:543: error: undefined reference to 'absl::lts_20210324::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:526: error: undefined reference to 'absl::lts_20210324::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:526: error: undefined reference to 'absl::lts_20210324::Mutex::Lock()'
collect2: error: ld returned 1 exit status
INFO: Elapsed time: 1688.634s, Critical Path: 394.26s
INFO: 5595 processes: 345 internal, 5250 local.


Reproducible: Always
Comment 1 Kobboi 2021-10-09 10:07:34 UTC
Created attachment 744066 [details]
build.log.gz
Comment 2 Kobboi 2021-10-09 10:07:53 UTC
Created attachment 744069 [details]
emerge-info.log
Comment 3 Kobboi 2021-10-09 12:08:07 UTC
Compiles fine with grpc-1.38.1
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-10-13 16:19:02 UTC
Reviewing upstream commit history, it looks like this was fixed in newer versions, but in multiple independent commits - which makes it hard to understand if we want to backport it. Looks like [1] was the start point.

I think it would be better to bump to newer version tensorflow so it can use newer grpc version. I see new version 2.6.0 (I'm not sure, but I think it isn't fixed for new grpc) and 2.7.0-rc0. But I don't know how hard it is to bump tensorflow.

For current version in tree (2.5.0), I think we need to cap <grpc-1.39.

[1] https://github.com/tensorflow/tensorflow/pull/51923
Comment 5 Larry the Git Cow gentoo-dev 2021-10-17 07:40:45 UTC
The bug has been closed via the following commit(s):

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

commit 7a8b5d3587585121d92565980520507e9eb6e37d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-17 07:40:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-17 07:40:34 +0000

    sci-libs/tensorflow: add upper bound on grpc for now
    
    Closes: https://bugs.gentoo.org/817212
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/tensorflow/tensorflow-2.5.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)