You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building tensorflow with new abseil 20240116.1, we ran into the following issue:
# Execution platform: @local_execution_config_platform//:platform
/home/conda/feedstock_root/build_artifacts/debug_1708918309173/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: bazel-out/k8-opt/bin/external/local_xla/xla/service/libslow_operation_alarm.pic.a(slow_operation_alarm.pic.o): in function `xla::SlowOperationAlarm::AlarmLoop()':
slow_operation_alarm.cc:(.text._ZN3xla18SlowOperationAlarm9AlarmLoopEv+0x21c): undefined reference to `absl::lts_20240116::synchronization_internal::KernelTimeout::KernelTimeout(absl::lts_20240116::Time)'
While it's clear where this symbol lives, we cannot link to absl/synchronization:kernel_timeout_internal, because it has private visibility.
However, after realizing tensorflow never explicitly uses KernelTimeout in its codebase, I decided to look back at abseil, and I think this is a similar situation to #1624, because AFAICT it concerns absl::Mutex and inlining (1cf6469).
In particular, in a shared build, some methods have to construct a synchronization_internal::KernelTimeout, e.g.
Describe the issue
While building tensorflow with new abseil 20240116.1, we ran into the following issue:
While it's clear where this symbol lives, we cannot link to
absl/synchronization:kernel_timeout_internal
, because it has private visibility.However, after realizing tensorflow never explicitly uses
KernelTimeout
in its codebase, I decided to look back at abseil, and I think this is a similar situation to #1624, because AFAICT it concernsabsl::Mutex
and inlining (1cf6469).In particular, in a shared build, some methods have to construct a
synchronization_internal::KernelTimeout
, e.g.abseil-cpp/absl/synchronization/mutex.h
Lines 375 to 381 in 2f9e432
Since that constructor cannot be found (due to visibility), we fail.
Steps to reproduce the problem
Build tensorflow against abseil 20240116.1
What version of Abseil are you using?
20240116.1
What operating system and version are you using?
Linux
What compiler and version are you using?
GCC 12, nvcc 12.0
What build system are you using?
bazel
Additional context
No response
The text was updated successfully, but these errors were encountered: