Gentoo Archives: gentoo-user

From: gevisz <gevisz@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] tensorflow-2.5.0-r1 compilation failed
Date: Sat, 16 Oct 2021 15:52:49
Message-Id: CA+t6X7eD8oR9o=VLrntA9RoNYGnWSttV9CSb8380riGV29Ja2Q@mail.gmail.com
1 ERROR: /var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/work/tensorflow-2.5.0-python3_9/tensorflow/BUILD:974:20:
2 Linking of rule '//tensorflow:libtensorflow.so.2.5.0' failed (Exit 1):
3 gcc failed: error executing command
4 (cd /var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/work/tensorflow-2.5.0-python3_9-bazel-base/execroot/org_tensorflow
5 && \
6 exec env - \
7 HOME=/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/homedir \
8 KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/temp/.keras \
9 PATH=/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/temp/python3.9/bin:/usr/lib/portage/python3.9/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin
10 \
11 PWD=/proc/self/cwd \
12 PYTHON_BIN_PATH=/usr/bin/python3.9 \
13 PYTHON_LIB_PATH=/usr/lib/python3.9/site-packages \
14 TF2_BEHAVIOR=1 \
15 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
16 \
17 /usr/bin/gcc @bazel-out/k8-opt/bin/tensorflow/libtensorflow.so.2.5.0-2.params)
18 Execution platform: @local_execution_config_platform//:platform
19 bazel-out/k8-opt/bin/tensorflow/core/profiler/_objs/profiler_analysis_proto_cc_impl/profiler_analysis.grpc.pb.pic.o:profiler_analysis.grpc.pb.cc:function
20 grpc::CompletionQueue::~CompletionQueue(): error: undefined reference
21 to 'absl::lts_20210324::Mutex::~Mutex()'
22 bazel-out/k8-opt/bin/tensorflow/core/profiler/_objs/profiler_analysis_proto_cc_impl/profiler_analysis.grpc.pb.pic.o:profiler_analysis.grpc.pb.cc:function
23 grpc::CompletionQueue::~CompletionQueue(): error: undefined reference
24 to 'absl::lts_20210324::Mutex::~Mutex()'
25 bazel-out/k8-opt/bin/tensorflow/core/profiler/_objs/profiler_analysis_proto_cc_impl/profiler_analysis.grpc.pb.pic.o:profiler_analysis.grpc.pb.cc:function
26 grpc::internal::BlockingUnaryCallImpl<google::protobuf::MessageLite,
27 google::protobuf::MessageLite>::BlockingUnaryCallImpl(grpc::ChannelInterface*,
28 grpc::internal::RpcMethod const&, grpc::ClientContext*,
29 google::protobuf::MessageLite const&, google::protobuf::MessageLite*):
30 error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
31 bazel-out/k8-opt/bin/tensorflow/core/profiler/_objs/profiler_analysis_proto_cc_impl/profiler_analysis.grpc.pb.pic.o:profiler_analysis.grpc.pb.cc:function
32 grpc::internal::BlockingUnaryCallImpl<google::protobuf::MessageLite,
33 google::protobuf::MessageLite>::BlockingUnaryCallImpl(grpc::ChannelInterface*,
34 grpc::internal::RpcMethod const&, grpc::ClientContext*,
35 google::protobuf::MessageLite const&, google::protobuf::MessageLite*):
36 error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()'
37 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
38 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
39 tensorflow::EventReply>::Read(tensorflow::EventReply*): error:
40 undefined reference to 'absl::lts_20210324::Mutex::Lock()'
41 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
42 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
43 tensorflow::EventReply>::Read(tensorflow::EventReply*): error:
44 undefined reference to 'absl::lts_20210324::Mutex::Unlock()'
45 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
46 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
47 tensorflow::EventReply>::Read(tensorflow::EventReply*): error:
48 undefined reference to 'absl::lts_20210324::Mutex::Unlock()'
49 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
50 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
51 tensorflow::EventReply>::Write(tensorflow::Event const*,
52 grpc::WriteOptions): error: undefined reference to
53 'absl::lts_20210324::Mutex::Lock()'
54 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
55 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
56 tensorflow::EventReply>::Write(tensorflow::Event const*,
57 grpc::WriteOptions): error: undefined reference to
58 'absl::lts_20210324::Mutex::Unlock()'
59 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
60 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
61 tensorflow::EventReply>::Write(tensorflow::Event const*,
62 grpc::WriteOptions): error: undefined reference to
63 'absl::lts_20210324::Mutex::Unlock()'
64 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
65 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
66 tensorflow::EventReply>::WritesDone(): error: undefined reference to
67 'absl::lts_20210324::Mutex::Lock()'
68 bazel-out/k8-opt/bin/tensorflow/core/debug/_objs/debug_service_proto_cc_impl/debug_service.grpc.pb.pic.o:debug_service.grpc.pb.cc:function
69 grpc::internal::ClientCallbackReaderWriterImpl<tensorflow::Event,
70 tensorflow::EventReply>::StartCall(): error: undefined reference to
71 'absl::lts_20210324::Mutex::Lock()'
72 collect2: error: ld returned 1 exit status
73 INFO: Elapsed time: 12509.014s, Critical Path: 238.67s
74 INFO: 6785 processes: 440 internal, 6345 local.
75 FAILED: Build did NOT complete successfully
76 * ERROR: sci-libs/tensorflow-2.5.0-r1::gentoo failed (compile phase):
77 * ebazel failed
78 *
79 * Call stack:
80 * ebuild.sh, line 127: Called src_compile
81 * environment, line 4209: Called ebazel 'build'
82 '//tensorflow:libtensorflow_framework.so'
83 '//tensorflow:libtensorflow.so'
84 * environment, line 2548: Called die
85 * The specific snippet of code:
86 * "${@}" || die "ebazel failed"
87 *
88 * If you need support, post the output of `emerge --info
89 '=sci-libs/tensorflow-2.5.0-r1::gentoo'`,
90 * the complete build log and the output of `emerge -pqv
91 '=sci-libs/tensorflow-2.5.0-r1::gentoo'`.
92 * The complete build log is located at
93 '/var/log/portage/sci-libs:tensorflow-2.5.0-r1:20211016-120305.log'.
94 * The ebuild environment file is located at
95 '/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/temp/environment'.
96 * Working directory:
97 '/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/work/tensorflow-2.5.0-python3_9'
98 * S: '/var/tmp/portage/sci-libs/tensorflow-2.5.0-r1/work/tensorflow-2.5.0'
99
100 >>> Failed to emerge sci-libs/tensorflow-2.5.0-r1, Log file:
101
102 >>> '/var/log/portage/sci-libs:tensorflow-2.5.0-r1:20211016-120305.log'
103
104 Any thoughts on how to fix it?

Replies

Subject Author
[gentoo-user] Re: tensorflow-2.5.0-r1 compilation failed gevisz <gevisz@×××××.com>
[gentoo-user] Re: tensorflow-2.5.0-r1 compilation failed gevisz <gevisz@×××××.com>