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
Created attachment 744066 [details] build.log.gz
Created attachment 744069 [details] emerge-info.log
Compiles fine with grpc-1.38.1
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
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(-)