failed to build branch r2.13
next try with --verbose_failures

```
ruslan@radar-prod1:/sdk4/tensorflow$ bazel build --verbose_failures --config=opt --copt=-march=native --copt=-O3 //tensorflow/tools/pip_package:build_pip_package
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=166
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug
INFO: Found applicable config definition build:short_logs in file /sdk4/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /sdk4/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:opt in file /sdk4/tensorflow/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-Wno-sign-compare
INFO: Found applicable config definition build:linux in file /sdk4/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /sdk4/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /sdk4/tensorflow/tensorflow/cc/BUILD:673:22: Linking tensorflow/cc/ops/user_ops_gen_cc [for tool] failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/cc:ops/user_ops_gen_cc) 
  (cd /build/home/ruslan/.cache/bazel/_bazel_ruslan/52d9b56c392034697d983605fa18f4ee/execroot/org_tensorflow && \
  exec env - \
    PATH=/home/ruslan/.local/bin:/home/ruslan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/go/bin \
    PWD=/proc/self/cwd \
    ZERO_AR_DATE=1 \
  /usr/bin/gcc @bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/cc/ops/user_ops_gen_cc-2.params)
# Configuration: aabe98942a966d02f11cd3e86d39722629ddb362b12f82a6a40652a82b246a2b
# Execution platform: @local_execution_config_platform//:platform
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/_solib_k8/_U_S_Stensorflow_Scc_Cops_Suser_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tsl::table::NewLRUCache(unsigned long)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/_solib_k8/_U_S_Stensorflow_Scc_Cops_Suser_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tensorflow::GpuIdManager::TfToPlatformDeviceId(tsl::gtl::IntType<tsl::TfDeviceId_tag_, int>, tsl::gtl::IntType<tsl::PlatformDeviceId_tag_, int>*)'
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
ERROR: /sdk4/tensorflow/tensorflow/tools/pip_package/BUILD:293:10 Middleman _middlemen/tensorflow_Stools_Spip_Upackage_Sbuild_Upip_Upackage-runfiles failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/cc:ops/user_ops_gen_cc) 
  (cd /build/home/ruslan/.cache/bazel/_bazel_ruslan/52d9b56c392034697d983605fa18f4ee/execroot/org_tensorflow && \
  exec env - \
    PATH=/home/ruslan/.local/bin:/home/ruslan/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/go/bin \
    PWD=/proc/self/cwd \
    ZERO_AR_DATE=1 \
  /usr/bin/gcc @bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/cc/ops/user_ops_gen_cc-2.params)
# Configuration: aabe98942a966d02f11cd3e86d39722629ddb362b12f82a6a40652a82b246a2b
# Execution platform: @local_execution_config_platform//:platform
INFO: Elapsed time: 1.777s, Critical Path: 0.20s
INFO: 34 processes: 34 internal.
ERROR: Build did NOT complete successfully
ruslan@radar-prod1:/sdk4/tensorflow$ 
```
 Can you also try after a `bazel clean --expunge`?

If that still doesn't work, can you post the output of `git show`? It's likely a recent cherrypick broke the build. Hi @legale ,

I have tested the build on Ubuntu-22 VM with default optimization and build is success for me. I have attached the logs for reference along with environment details.I am not sure whether the issue is specific to debian or environment related or whether you have chosen specific optimization during `./configure` step. Please confirm whether you have chosen any particular configuration other than default.

[60716_logs.txt](https://github.com/tensorflow/tensorflow/files/11592028/60716_logs.txt)

Please also try to clean build after executing `bazel clean --expunge` command and let us know the outcome. 

Thanks!

 > Hi @legale ,
> 
> I have tested the build on Ubuntu-22 VM with default optimization and build is success for me. I have attached the logs for reference along with environment details.I am not sure whether the issue is specific to debian or environment related or whether you have chosen specific optimization during `./configure` step. Please confirm whether you have chosen any particular configuration other than default.
> 
> [60716_logs.txt](https://github.com/tensorflow/tensorflow/files/11592028/60716_logs.txt)
> 
> Please also try to clean build after executing `bazel clean --expunge` command and let us know the outcome. 
> 
> Thanks!
> 
> 

I will try again.

About configure:
No, there is no special settings.  > > Hi @legale ,
> > I have tested the build on Ubuntu-22 VM with default optimization and build is success for me. I have attached the logs for reference along with environment details.I am not sure whether the issue is specific to debian or environment related or whether you have chosen specific optimization during `./configure` step. Please confirm whether you have chosen any particular configuration other than default.
> > [60716_logs.txt](https://github.com/tensorflow/tensorflow/files/11592028/60716_logs.txt)
> > Please also try to clean build after executing `bazel clean --expunge` command and let us know the outcome.
> > Thanks!
> 
> I will try again.
> 
> About configure: No, there is no special settings.


Same problem.

```
        --config=mkl            # Build with MKL support.
        --config=mkl_aarch64    # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
        --config=monolithic     # Config for mostly static monolithic build.
        --config=numa           # Build with NUMA support.
        --config=dynamic_kernels        # (Experimental) Build kernels into separate shared objects.
        --config=v1             # Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
        --config=nogcp          # Disable GCP support.
        --config=nonccl         # Disable NVIDIA NCCL support.
```


```
bazel build  //tensorflow/tools/pip_package:build_pip_package
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=222
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug
INFO: Found applicable config definition build:short_logs in file /sdk4/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /sdk4/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /sdk4/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /sdk4/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (610 packages loaded, 36141 targets configured).
INFO: Found 1 target...
ERROR: /sdk4/tensorflow/tensorflow/cc/BUILD:655:22: Linking tensorflow/cc/ops/array_ops_gen_cc [for tool] failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/cc:ops/array_ops_gen_cc) /usr/bin/gcc @bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/cc/ops/array_ops_gen_cc-2.params
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/_solib_k8/_U_S_Stensorflow_Scc_Cops_Sarray_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tsl::table::NewLRUCache(unsigned long)'
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/_solib_k8/_U_S_Stensorflow_Scc_Cops_Sarray_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tensorflow::GpuIdManager::TfToPlatformDeviceId(tsl::gtl::IntType<tsl::TfDeviceId_tag_, int>, tsl::gtl::IntType<tsl::PlatformDeviceId_tag_, int>*)'
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/core/ops/_objs/array_ops_op_lib/array_ops.o:array_ops.cc:function tensorflow::register_op101::{lambda(tensorflow::shape_inference::InferenceContext*)#1}::operator()(tensorflow::shape_inference::InferenceContext) const [clone .constprop.0]: error: undefined reference to 'tensorflow::GetWindowedOutputSizeVerbose(long, long, long, tensorflow::Padding, long*, long*, long*)'
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/core/ops/_objs/array_ops_op_lib/array_ops.o:array_ops.cc:function tensorflow::register_op101::{lambda(tensorflow::shape_inference::InferenceContext*)#1}::operator()(tensorflow::shape_inference::InferenceContext) const [clone .constprop.0]: error: undefined reference to 'tensorflow::GetWindowedOutputSizeVerbose(long, long, long, tensorflow::Padding, long*, long*, long*)'
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/core/ops/_objs/array_ops_op_lib/array_ops.o:array_ops.cc:function tensorflow::register_op101::{lambda(tensorflow::shape_inference::InferenceContext*)#1}::operator()(tensorflow::shape_inference::InferenceContext) const [clone .constprop.0]: error: undefined reference to 'tensorflow::GetWindowedOutputSizeVerbose(long, long, long, tensorflow::Padding, long*, long*, long*)'
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/core/ops/_objs/array_ops_op_lib/array_ops.o:array_ops.cc:function tensorflow::register_op100::{lambda(tensorflow::shape_inference::InferenceContext*)#1}::operator()(tensorflow::shape_inference::InferenceContext) const [clone .constprop.0]: error: undefined reference to 'tensorflow::GetWindowedOutputSizeVerbose(long, long, long, tensorflow::Padding, long*, long*, long*)'
bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/core/ops/_objs/array_ops_op_lib/array_ops.o:array_ops.cc:function __static_initialization_and_destruction_0(int, int) [clone .constprop.0]: error: undefined reference to 'tensorflow::full_type::ReplicateInput[abi:cxx11](int, int)'
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /sdk4/tensorflow/tensorflow/tools/pip_package/BUILD:268:10 Middleman _middlemen/tensorflow_Stools_Spip_Upackage_Sbuild_Upip_Upackage-runfiles failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/cc:ops/array_ops_gen_cc) /usr/bin/gcc @bazel-out/k8-opt-exec-ST-3a2a7d830ca1/bin/tensorflow/cc/ops/array_ops_gen_cc-2.params
INFO: Elapsed time: 2598.484s, Critical Path: 382.03s
INFO: 14560 processes: 1906 internal, 12654 local.
ERROR: Build did NOT complete successfully
```

 @nitins17 , Could you please have a look into the issue. 

CC- @learning-to-play .

 ```

ERROR: /var/tmp/portage/sci-libs/tensorflow-2.12.0/work/tensorflow-2.12.0-python3_11/tensorflow/cc/BUILD:673:22: Linking tensorflow/cc/ops/nn_ops_gen_cc [for tool] failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/cc:ops/nn_ops_gen_cc) 
  (cd /var/tmp/portage/sci-libs/tensorflow-2.12.0/work/tensorflow-2.12.0-python3_11-bazel-base/execroot/org_tensorflow && \
  exec env - \
    KERAS_HOME=/var/tmp/portage/sci-libs/tensorflow-2.12.0/temp/.keras \
    PATH=/var/tmp/portage/sci-libs/tensorflow-2.12.0/temp/python3.11/bin:/usr/lib/portage/python3.12/ebuild-helpers/xattr:/usr/lib/portage/python3.12/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/16/bin \
    PWD=/proc/self/cwd \
    ZERO_AR_DATE=1 \
  /usr/bin/gcc @bazel-out/k8-opt-exec-ST-ba6211b4fe03/bin/tensorflow/cc/ops/nn_ops_gen_cc-2.params)
# Configuration: bf46598e081eb20667309cf6e8fafc6d58b9cd48291dbf068ad4d43d3402041c
# Execution platform: @local_execution_config_platform//:platform
ld.lld: error: undefined symbol: tensorflow::GetWindowedOutputSizeVerbose(long, long, long, tensorflow::Padding, long*, long*, long*)
>>> referenced by nn_ops.cc
>>>               bazel-out/k8-opt-exec-ST-ba6211b4fe03/bin/tensorflow/core/ops/_objs/nn_ops_op_lib/nn_ops.o:(tensorflow::register_op51::'lambda'(tensorflow::shape_inference::InferenceContext*)::operator()(tensorflow::shape_inference::InferenceContext*) const (.isra.0))
>>> referenced by nn_ops.cc
>>>               bazel-out/k8-opt-exec-ST-ba6211b4fe03/bin/tensorflow/core/ops/_objs/nn_ops_op_lib/nn_ops.o:(tensorflow::register_op51::'lambda'(tensorflow::shape_inference::InferenceContext*)::operator()(tensorflow::shape_inference::InferenceContext*) const (.isra.0))
collect2: error: ld returned 1 exit status
[5,671 / 6,878] 24 actions running
    Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc; 53s local
    Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc; 47s local
    @llvm-project//mlir:LinalgTransforms; 20s local
    Compiling tensorflow/compiler/mlir/tfr/ir/tfr_ops[5,691 / 6,878] 4 actions running
    Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc; 53s local
    Compiling tensorflow/compiler/mlir/tensorflow/ir/INFO: Elapsed time: 766.826s, Critical Path: 104.26s
INFO: 5695 processes: 664 internal, 5031 local.
ERROR: Build did NOT complete successfully
```

same issue w/ 2.12
<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Build/Install

### Have you reproduced the bug with TF nightly?

No

### Source

source

### Tensorflow Version

r2,13

### Custom Code

No

### OS Platform and Distribution

Linux radar-prod1 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux

### Mobile device

_No response_

### Python version

3.9

### Bazel version

Build label: 7.0.0-pre.20230517.4- (@non-git)

### GCC/Compiler version

gcc version 10.2.1 20210110 (Debian 10.2.1-6) 

### CUDA/cuDNN version

-

### GPU model and memory

-

### Current Behaviour?

Failed to build pip package whl

### Standalone code to reproduce the issue

```shell
Just bare debian 11 with latest requirements versions (27.05.2023).
```


### Relevant log output

```shell
ruslan@radar-prod1:/sdk4/tensorflow$ bazel build --config=opt --copt=-march=native --copt=-O3 //tensorflow/tools/pip_package:build_pip_package
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=159
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug
INFO: Found applicable config definition build:short_logs in file /sdk4/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /sdk4/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:opt in file /sdk4/tensorflow/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-Wno-sign-compare
INFO: Found applicable config definition build:linux in file /sdk4/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /sdk4/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
WARNING: Build options --copt and --host_copt have changed, discarding analysis cache (this can be expensive).
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 35966 targets configured).
INFO: Found 1 target...
ERROR: /sdk4/tensorflow/tensorflow/cc/BUILD:766:22: Linking tensorflow/cc/ops/functional_ops_gen_cc [for tool] failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/cc:ops/functional_ops_gen_cc) /usr/bin/gcc @bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/cc/ops/functional_ops_gen_cc-2.params
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/_solib_k8/_U_S_Stensorflow_Scc_Cops_Sfunctional_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tsl::table::NewLRUCache(unsigned long)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/_solib_k8/_U_S_Stensorflow_Scc_Cops_Sfunctional_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tensorflow::GpuIdManager::TfToPlatformDeviceId(tsl::gtl::IntType<tsl::TfDeviceId_tag_, int>, tsl::gtl::IntType<tsl::PlatformDeviceId_tag_, int>*)'
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2405.712s, Critical Path: 314.03s
INFO: 11230 processes: 318 internal, 10912 local.
ERROR: Build did NOT complete successfully
ruslan@radar-prod1:/sdk4/tensorflow$ bazel clean
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=159
INFO: Reading rc options for 'clean' from /sdk4/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'clean' from /sdk4/tensorflow/.bazelrc:
  Inherited 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'clean' from /sdk4/tensorflow/.tf_configure.bazelrc:
  Inherited 'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'clean' from /sdk4/tensorflow/.bazelrc:
  Inherited 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug
INFO: Found applicable config definition build:short_logs in file /sdk4/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /sdk4/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /sdk4/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /sdk4/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
ruslan@radar-prod1:/sdk4/tensorflow$ bazel build --config=opt --copt=-march=native --copt=-O3 //tensorflow/tools/pip_package:build_pip_package
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=159
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'build' from /sdk4/tensorflow/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug
INFO: Found applicable config definition build:short_logs in file /sdk4/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /sdk4/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:opt in file /sdk4/tensorflow/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-Wno-sign-compare
INFO: Found applicable config definition build:linux in file /sdk4/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /sdk4/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (614 packages loaded, 35966 targets configured).
INFO: Found 1 target...
ERROR: /sdk4/tensorflow/tensorflow/lite/experimental/microfrontend/BUILD:97:21: Linking tensorflow/lite/experimental/microfrontend/gen_audio_microfrontend_op_py_wrappers_cc [for tool] failed: (Exit 1): gcc failed: error executing CppLink command (from target //tensorflow/lite/experimental/microfrontend:gen_audio_microfrontend_op_py_wrappers_cc) /usr/bin/gcc @bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/lite/experimental/microfrontend/gen_audio_microfrontend_op_py_wrappers_cc-2.params
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/_solib_k8/_U_S_Stensorflow_Slite_Sexperimental_Smicrofrontend_Cgen_Uaudio_Umicrofrontend_Uop_Upy_Uwrappers_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tsl::table::NewLRUCache(unsigned long)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/_solib_k8/_U_S_Stensorflow_Slite_Sexperimental_Smicrofrontend_Cgen_Uaudio_Umicrofrontend_Uop_Upy_Uwrappers_Ucc___Utensorflow/libtensorflow_framework.so.2: error: undefined reference to 'tensorflow::GpuIdManager::TfToPlatformDeviceId(tsl::gtl::IntType<tsl::TfDeviceId_tag_, int>, tsl::gtl::IntType<tsl::PlatformDeviceId_tag_, int>*)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:python_op_gen_main.cc:function main: error: undefined reference to 'tsl::Flag::Flag(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool*)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:python_op_gen_main.cc:function main: error: undefined reference to 'tsl::Flag::Flag(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool*)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:python_op_gen_main.cc:function main: error: undefined reference to 'tsl::Flag::Flag(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool*)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:python_op_gen_main.cc:function main: error: undefined reference to 'tsl::Flag::Flag(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool*)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:python_op_gen_main.cc:function main: error: undefined reference to 'tsl::Flags::Usage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<tsl::Flag, std::allocator<tsl::Flag> > const&)'
bazel-out/k8-opt-exec-ST-977fe3d4dab2/bin/tensorflow/python/framework/_objs/python_op_gen_main/python_op_gen_main.o:python_op_gen_main.cc:function main: error: undefined reference to 'tsl::Flags::Parse(int*, char**, std::vector<tsl::Flag, std::allocator<tsl::Flag> > const&)'
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2518.592s, Critical Path: 378.85s
INFO: 14151 processes: 1834 internal, 12317 local.
ERROR: Build did NOT complete successfully
ruslan@radar-prod1:/sdk4/tensorflow$ 
```
```
</details>