v2.11.0 build failure on linux/arm64
@gaikwadrahul8 
When I try to replicate the issue on the Virtual machine, I'm facing a different error. Please find the below screenshots for reference.

![Screenshot 2023-03-15 5 46 25 PM](https://user-images.githubusercontent.com/111861663/225780569-c32b2751-9dd3-41f9-b3fb-e72235b76760.png)
![Screenshot 2023-03-15 6 08 22 PM](https://user-images.githubusercontent.com/111861663/225780606-d3f49758-dc6d-4acd-8890-dcbd33a659a7.png)

Thank you!
 Hi, @sdeoras 

Apologize for the delayed response and I was able to replicate the same issue on `Apple Mac M1` system with command `bazel build  //tensorflow/tools/pip_package:build_pip_package` and I've added screenshot below


<img width="1512" alt="Screenshot 2023-03-23 at 10 48 47 AM" src="https://user-images.githubusercontent.com/115997457/227163817-a274a342-11d1-404c-928a-eeb992c5d0ed.png">

I have also tried to replicate the same issue with your command `bazel test --config opt //tensorflow/tools/lib_package:libtensorflow_test` and I was getting below error and I have added error log for your reference and we'll have to dig more into this issue and we'll update you soon. Thank you for noticing this issue. Thank you! 

```
(bazel-test-2.11) gaikwadrahul-macbookpro:tensorflow gaikwadrahul$ bazel test //tensorflow/tools/lib_package:libtensorflow_test
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=214
INFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'test' from /Users/gaikwadrahul/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 'test' from /Users/gaikwadrahul/tensorflow/.tf_configure.bazelrc:
  Inherited 'build' options: --action_env PYTHON_BIN_PATH=/Users/gaikwadrahul/miniconda/envs/bazel-test-2.11/bin/python3 --action_env PYTHON_LIB_PATH=/Users/gaikwadrahul/miniconda/envs/bazel-test-2.11/lib/python3.9/site-packages --python_path=/Users/gaikwadrahul/miniconda/envs/bazel-test-2.11/bin/python3
INFO: Reading rc options for 'test' from /Users/gaikwadrahul/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
INFO: Reading rc options for 'test' from /Users/gaikwadrahul/tensorflow/.tf_configure.bazelrc:
  'test' options: --flaky_test_attempts=3 --test_size_filters=small,medium
INFO: Found applicable config definition build:short_logs in file /Users/gaikwadrahul/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /Users/gaikwadrahul/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition test:v2 in file /Users/gaikwadrahul/tensorflow/.tf_configure.bazelrc: --test_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-nomac,-no_mac,-mac_excluded,-oss_serial,-v1only --build_tag_filters=-benchmark-test,-no_oss,-oss_excluded,-gpu,-nomac,-no_mac,-mac_excluded,-v1only
INFO: Found applicable config definition build:macos in file /Users/gaikwadrahul/tensorflow/.bazelrc: --apple_platform_type=macos --copt=-DGRPC_BAZEL_BUILD --copt=-w --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
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/3e79dfac0ea7b7cf2c9687f798b6f63ba5b07c9d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/0aaa6e679847a4eeb407136e7b0bcef93ec652e6.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/benchmark/archive/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/cc287f69b7115725164f26a5a164f09f9dae091e.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/c00d7ca810e93780bd0c8ee4eea28f4f2ea4bcdc.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/glennrp/libpng/archive/v1.6.39.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Analyzed target //tensorflow/tools/lib_package:libtensorflow_test (12 packages loaded, 242 targets configured).
INFO: Found 1 test target...
ERROR: /Users/gaikwadrahul/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /Users/gaikwadrahul/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym failed: not all outputs were created or valid
realpath: illegal option -- -
usage: realpath [-q] [path ...]
Target //tensorflow/tools/lib_package:libtensorflow_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 880.535s, Critical Path: 137.27s
INFO: 4713 processes: 1630 internal, 3083 local.
FAILED: Build did NOT complete successfully
//tensorflow/tools/lib_package:libtensorflow_test               FAILED TO BUILD

FAILED: Build did NOT complete successfully
(bazel-test-2.11) gaikwadrahul-macbookpro:tensorflow gaikwadrahul$ 
```
` @sdeoras Your original issue looks like you have a bad version of tensorflow_io_gcs_filesystem installed. For building TensorFlow 2.11.x please use tensorflow_io_gcs_filesystem==0.31.0. @tiruk007 _ComputeOutputShape is not in the 2.11.x source code so I think maybe you were not building 2.11? @gaikwadrahul8 Your issue seems to be a Mac specific problem and not related to this issue as reported which was from a Raspberry Pi. @tiruk007 Sorry, I see that the r2.11 branch had a temporary build failure for a while which is what caused the error you found. This build error was not present in 2.11.0 nor is it present in 2.11.1 but was introduced and then fixed in between those two releases. @sdeoras Actually your build error looks more like there was a stale object in the bazel cache that was not rebuilt when it should have been. If this still needs resolving please try again but run 'bazel clean --expunge' first. If you can try 2.11.1 or even better 2.12.0 then that would be good. @elfringham thanks for your replies. I am now trying v2.12.0 per your suggestion and will reply back on how it goes.
 @elfringham , unfortunately the build failed for v2.12.0 as well.
```
[4,828 / 9,049] Compiling llvm/lib/Transforms/Utils/BasicBlockUtils.cpp; 29s local ... (4 actions running)
[5,012 / 9,049] Compiling llvm/lib/CodeGen/CodeGenPassBuilder.cpp; 18s local ... (4 actions running)
[5,260 / 9,049] Compiling llvm/lib/CodeGen/MachineCheckDebugify.cpp; 16s local ... (4 actions running)
[5,626 / 9,049] Compiling llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp; 34s local ... (4 actions running)
[5,900 / 9,049] Compiling llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp; 40s local ... (4 actions running)
[6,754 / 9,049] Compiling tensorflow/compiler/xla/service/all_to_all_decomposer.cc; 34s local ... (4 actions running)
[7,080 / 9,049] Compiling tensorflow/compiler/xla/service/cpu/cpu_compiler.cc; 211s local ... (4 actions running)
[7,487 / 9,049] Compiling tensorflow/core/kernels/sync_ops.cc; 20s local ... (4 actions running)
[7,763 / 9,049] Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc; 1513s local ... (4 actions running)
[8,127 / 9,049] Compiling tensorflow/core/kernels/argmax_op.cc; 237s local ... (4 actions running)
[8,311 / 9,049] Compiling tensorflow/core/kernels/cwise_op_less.cc; 162s local ... (4 actions running)
[8,681 / 9,049] Compiling tensorflow/compiler/tf2xla/kernels/xla_conv_op.cc; 67s local ... (4 actions running)
ERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:673:22: Executing genrule //tensorflow/cc:random_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash bazel-out/aarch64-opt/bin/tensorflow/cc/random_ops_genrule.genrule_script.sh
bazel-out/aarch64-opt/bin/tensorflow/cc/ops/random_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/random_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE
ERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:673:22: Executing genrule //tensorflow/cc:manip_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash bazel-out/aarch64-opt/bin/tensorflow/cc/manip_ops_genrule.genrule_script.sh
bazel-out/aarch64-opt/bin/tensorflow/cc/ops/manip_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/manip_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE
ERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:673:22: Executing genrule //tensorflow/cc:map_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash bazel-out/aarch64-opt/bin/tensorflow/cc/map_ops_genrule.genrule_script.sh
bazel-out/aarch64-opt/bin/tensorflow/cc/ops/map_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/map_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE
Target //tensorflow/tools/lib_package:libtensorflow_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 49702.061s, Critical Path: 2645.63s
INFO: 8900 processes: 870 internal, 8030 local.
FAILED: Build did NOT complete successfully
//tensorflow/tools/lib_package:libtensorflow_test               FAILED TO BUILD

Executed 0 out of 1 test: 1 fails to build.
FAILED: Build did NOT complete successfully
``` @zyxkad Your problem is not related to the one that this issue refers to. I think you should open a new issue to cover your Mac specific build problem. > @zyxkad Your problem is not related to the one that this issue refers to. I think you should open a new issue to cover your Mac specific build problem.

Moved to #60179 ```
$ llvm-cxxfilt-12 _ZN4absl12lts_2022062318container_internal11kEmptyGroupE
absl::lts_20220623::container_internal::kEmptyGroup
```

maybe the absl is compiled correctly? tf v2.14.0 built successfully on linux/arm64 using gcc #62357  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/59984">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/59984">No</a>

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

Bug

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

No

### Source

source

### Tensorflow Version

tf v2.11.0

### Custom Code

No

### OS Platform and Distribution

Linux arm64

### Mobile device

Raspberry Pi

### Python version

3.9.2

### Bazel version

5.3.0

### GCC/Compiler version

gcc (Debian 10.2.1-6) 10.2.1 20210110

### CUDA/cuDNN version

n/a

### GPU model and memory

n/a

### Current Behaviour?

```shell
Build from source is failing with following error:

INFO: Found 1 test target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[2,102 / 3,368] checking cached actions
[4,096 / 8,568] [Scann] Compiling tensorflow/compiler/xla/service/compilation_environments.cc
ERROR: /home/pi/tensorflow/tensorflow/cc/BUILD:775:22: Executing genrule //tensorflow/cc:resource_variable_ops_genrule failed: (Exit 127): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)
bazel-out/aarch64-opt/bin/tensorflow/cc/ops/resource_variable_ops_gen_cc: symbol lookup error: bazel-out/aarch64-opt/bin/tensorflow/cc/ops/resource_variable_ops_gen_cc: undefined symbol: _ZN4absl12lts_2022062318container_internal11kEmptyGroupE
Target //tensorflow/tools/lib_package:libtensorflow_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 30.190s, Critical Path: 1.80s
INFO: 11 processes: 8 internal, 3 local.
FAILED: Build did NOT complete successfully
//tensorflow/tools/lib_package:libtensorflow_test               FAILED TO BUILD

Executed 0 out of 1 test: 1 fails to build.
FAILED: Build did NOT complete successfully
```


### Standalone code to reproduce the issue

```shell
Run ./configure and accept all defaults
Run bazel test --config opt //tensorflow/tools/lib_package:libtensorflow_test

Note: v2.8.0 builds fine on the same platform using bazel 4.2.1
```


### Relevant log output

```shell
As shown above
```
</details>