Build Issue with Native TF-2.12
Hi @Alavandar08!  Could you please have a look at this [link](https://www.tensorflow.org/install/source#tested_build_configurations) and make sure the compatible versions are matching yours?   Please let us know the exact command you have used so that we could replicate the error reported here. 
Thank you! Hi @sushreebarsa I have tried the compatible versions provided with in the [link](https://www.tensorflow.org/install/source#cpu). Still I am observing the same issue as mentioned above.

command I used to build TF from source:
1. Installing prerequisites (Env, bazel version etc.,)
2. Configuring the Build: ./configure
3. Building the package: bazel build //tensorflow/tools/pip_package:build_pip_package

I have created a [PR](https://github.com/tensorflow/tensorflow/pull/60874) to revert specific commit [60872](https://github.com/tensorflow/tensorflow/pull/60872) (After reverting commit in local, I was able to build the package).

Please let me know the fix for the above issue.

Thank you! As mentioned in the previous comment.

For the above PR that got merged master had failed through CI phase
![image](https://github.com/tensorflow/tensorflow/assets/86424477/3ffa6bf9-183b-41a2-87f8-31270836bb09)

Even in CI we are observing the same error
![image](https://github.com/tensorflow/tensorflow/assets/86424477/877feba3-2321-4b09-b6fe-00421d8ef839)
 I am also facing the same issue. Not able to build the tensorflow in linux. If i checkout the commit id 76addf724a4, build goes through. @penpornk  Hi @Alavandar08 ,

The proposed PR by you has been closed as there won't be any fresh release of Tf2.12. This seems to be resolved in TF2.13 onwards. Could you please check with latest version and let us know if this is still a problem.

Thanks! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60897">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60897">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Build/Install

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

Yes

### Source

source

### Tensorflow Version

TF 2.12

### Custom Code

No

### OS Platform and Distribution

Ubuntu 20.04.5 LTS

### Mobile device

_No response_

### Python version

3.8

### Bazel version

6.2.1

### GCC/Compiler version

9.4.0

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

While Building with Latest master build is getting failed. 
**Error Message:** error: no match for 'operator=' (operand types are 'absl::lts_20220623::Status' and 'tsl::Status')

Observing this Build failure after [PR 60872](https://github.com/tensorflow/tensorflow/pull/60872) got merged.

**Note:** 
1. Build is successful if we checkout previous commit(Commit ID: 76addf724a4794222e780542180dc32747d04aa2).
2. With this PR we also observed Jobs Failure at the same place.

### Standalone code to reproduce the issue

```shell
Build the TF 2.12 from source - https://www.tensorflow.org/install/source
```


### Relevant log output

```shell
ERROR: /workspace/tensorflow/tsl/platform/cloud/BUILD:76:11: Compiling tensorflow/tsl/platform/cloud/gcs_dns_cache.cc failed: (Exit 1): gcc failed: error executing command 
  (cd /tmpfs/bazel_output/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow && \
  exec env - \
    LD_LIBRARY_PATH='' \
    PATH=/home/ubuntu/actions-runner/_work/tensorflow/tensorflow/bazel-ci_build-cache/.cache/bazelisk/downloads/bazelbuild/bazel-5.3.0-linux-arm64/bin:/home/ubuntu/actions-runner/_work/tensorflow/tensorflow/bazel-ci_build-cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \
    *** \
  /dt10/usr/bin/gcc -MD -MF bazel-out/aarch64-opt-exec-50AE0418/bin/tensorflow/tsl/platform/cloud/_objs/gcs_dns_cache/gcs_dns_cache.pic.d '-frandom-seed=bazel-out/aarch64-opt-exec-50AE0418/bin/tensorflow/tsl/platform/cloud/_objs/gcs_dns_cache/gcs_dns_cache.pic.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY -iquote . -iquote bazel-out/aarch64-opt-exec-50AE0418/bin -iquote external/eigen_archive -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/eigen_archive -iquote external/com_google_absl -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/nsync -iquote external/snappy -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/snappy -iquote external/double_conversion -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/double_conversion -iquote external/com_google_protobuf -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_google_protobuf -iquote external/com_googlesource_code_re2 -iquote bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_googlesource_code_re2 -isystem third_party/eigen3/mkl_include -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/external/nsync/public -isystem external/com_google_protobuf/src -isystem bazel-out/aarch64-opt-exec-50AE0418/bin/external/com_google_protobuf/src -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -no-canonical-prefixes -fno-canonical-system-headers -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections -g0 -w -g0 '-std=c++17' -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions '-DTENSORFLOW_USE_XLA=1' -DINTEL_MKL '-DDNNL_AARCH64_USE_ACL=1' -pthread '--sysroot=/dt10' -c tensorflow/tsl/platform/cloud/gcs_dns_cache.cc -o bazel-out/aarch64-opt-exec-50AE0418/bin/tensorflow/tsl/platform/cloud/_objs/gcs_dns_cache/gcs_dns_cache.pic.o)
# Configuration: 58aa5ccf3b98e321b76e39d46a74a06fde2c1ab0c3daeef1eee98dcf7771095c
# Execution platform: @local_execution_config_platform//:platform
tensorflow/tsl/platform/cloud/gcs_dns_cache.cc: In lambda function:
tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:113:38: error: no match for 'operator=' (operand types are 'absl::lts_20220623::Status' and 'tsl::Status')
  113 |             return_status = OkStatus();
      |                                      ^
In file included from ./tensorflow/tsl/platform/status.h:28,
                 from ./tensorflow/tsl/platform/errors.h:28,
                 from ./tensorflow/tsl/platform/env.h:27,
                 from ./tensorflow/tsl/platform/cloud/http_request.h:23,
                 from ./tensorflow/tsl/platform/cloud/gcs_dns_cache.h:21,
                 from tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:16:
external/com_google_absl/absl/status/status.h:764:16: note: candidate: 'absl::lts_20220623::Status& absl::lts_20220623::Status::operator=(const absl::lts_20220623::Status&)'
  764 | inline Status& Status::operator=(const Status& x) {
      |                ^~~~~~
external/com_google_absl/absl/status/status.h:764:48: note:   no known conversion for argument 1 from 'tsl::Status' to 'const absl::lts_20220623::Status&'
  764 | inline Status& Status::operator=(const Status& x) {
      |                                  ~~~~~~~~~~~~~~^
external/com_google_absl/absl/status/status.h:778:16: note: candidate: 'absl::lts_20220623::Status& absl::lts_20220623::Status::operator=(absl::lts_20220623::Status&&)'
  778 | inline Status& Status::operator=(Status&& x) {
      |                ^~~~~~
external/com_google_absl/absl/status/status.h:778:43: note:   no known conversion for argument 1 from 'tsl::Status' to 'absl::lts_20220623::Status&&'
  778 | inline Status& Status::operator=(Status&& x) {
      |                                  ~~~~~~~~~^
tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:178:36: error: no matching function for call to 'tsl::Status::Status(absl::lts_20220623::Status&)'
  178 |         return Status(return_status);
      |                                    ^
In file included from ./tensorflow/tsl/platform/errors.h:28,
                 from ./tensorflow/tsl/platform/env.h:27,
                 from ./tensorflow/tsl/platform/cloud/http_request.h:23,
                 from ./tensorflow/tsl/platform/cloud/gcs_dns_cache.h:21,
                 from tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:16:
./tensorflow/tsl/platform/status.h:309:8: note: candidate: 'tsl::Status::Status(tsl::Status&&, tsl::SourceLocation)'
  309 | inline Status::Status(Status&& s, SourceLocation loc) noexcept
      |        ^~~~~~
./tensorflow/tsl/platform/status.h:309:32: note:   no known conversion for argument 1 from 'absl::lts_20220623::Status' to 'tsl::Status&&'
  309 | inline Status::Status(Status&& s, SourceLocation loc) noexcept
      |                       ~~~~~~~~~^
./tensorflow/tsl/platform/status.h:296:8: note: candidate: 'tsl::Status::Status(const tsl::Status&)'
  296 | inline Status::Status(const Status& s)
      |        ^~~~~~
./tensorflow/tsl/platform/status.h:296:37: note:   no known conversion for argument 1 from 'absl::lts_20220623::Status' to 'const tsl::Status&'
  296 | inline Status::Status(const Status& s)
      |                       ~~~~~~~~~~~~~~^
./tensorflow/tsl/platform/status.h:71:3: note: candidate: 'tsl::Status::Status(tsl::error::Code, absl::lts_20220623::string_view, tsl::SourceLocation)'
   71 |   Status(tsl::error::Code code, absl::string_view msg,
      |   ^~~~~~
./tensorflow/tsl/platform/status.h:71:3: note:   candidate expects 3 arguments, 1 provided
./tensorflow/tsl/platform/status.h:66:3: note: candidate: 'tsl::Status::Status()'
   66 |   Status() {}
      |   ^~~~~~
./tensorflow/tsl/platform/status.h:66:3: note:   candidate expects 0 arguments, 1 provided
tensorflow/tsl/platform/cloud/gcs_dns_cache.cc: In static member function 'static std::vector<std::__cxx11::basic_string<char> > tsl::GcsDnsCache::ResolveName(const string&)':
tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:180:18: error: no matching function for call to 'tsl::RetryingUtils::CallWithRetries(tsl::GcsDnsCache::ResolveName(const string&)::<lambda()>, tsl::RetryConfig&)'
  180 |       retryConfig);
      |                  ^
In file included from tensorflow/tsl/platform/cloud/gcs_dns_cache.cc:23:
./tensorflow/tsl/platform/retrying_utils.h:54:17: note: candidate: 'static tsl::Status tsl::RetryingUtils::CallWithRetries(const std::function<tsl::Status()>&, const tsl::RetryConfig&)'
   54 |   static Status CallWithRetries(const std::function<Status()>& f,
      |                 ^~~~~~~~~~~~~~~
./tensorflow/tsl/platform/retrying_utils.h:54:64: note:   no known conversion for argument 1 from 'tsl::GcsDnsCache::ResolveName(const string&)::<lambda()>' to 'const std::function<tsl::Status()>&'
   54 |   static Status CallWithRetries(const std::function<Status()>& f,
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
./tensorflow/tsl/platform/retrying_utils.h:58:17: note: candidate: 'static tsl::Status tsl::RetryingUtils::CallWithRetries(const std::function<tsl::Status()>&, const std::function<void(long int)>&, const tsl::RetryConfig&)'
   58 |   static Status CallWithRetries(const std::function<Status()>& f,
      |                 ^~~~~~~~~~~~~~~
./tensorflow/tsl/platform/retrying_utils.h:58:17: note:   candidate expects 3 arguments, 2 provided
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 183.056s, Critical Path: 62.90s
INFO: 10119 processes: 4350 internal, 5769 local.
FAILED: Build did NOT complete successfully
```
</details>