[v2.14.0] Build failed on linux/arm64 w/ clang
build succeeded when compiling with `gcc`. Closing the issue.
```
[11,350 / 11,354] Compiling tensorflow/compiler/tf2xla/kernels/mirror_pad_op.cc; 77s local
[11,351 / 11,354] [Prepa] Linking tensorflow/libtensorflow.so.2.14.0
[11,351 / 11,354] Linking tensorflow/libtensorflow.so.2.14.0; 1s local
[11,351 / 11,354] Linking tensorflow/libtensorflow.so.2.14.0; 11s local
[11,351 / 11,354] Linking tensorflow/libtensorflow.so.2.14.0; 41s local
[11,352 / 11,354] [Prepa] Writing: bazel-out/aarch64-opt/bin/tensorflow/tools/lib_package/clib.tar
[11,352 / 11,354] Writing: bazel-out/aarch64-opt/bin/tensorflow/tools/lib_package/clib.tar; 0s local
[11,353 / 11,354] [Prepa] Writing: bazel-out/aarch64-opt/bin/tensorflow/tools/lib_package/libtensorflow.tar.gz
[11,353 / 11,354] Writing: bazel-out/aarch64-opt/bin/tensorflow/tools/lib_package/libtensorflow.tar.gz; 1s local
[11,353 / 11,354] Writing: bazel-out/aarch64-opt/bin/tensorflow/tools/lib_package/libtensorflow.tar.gz; 11s local
[11,353 / 11,354] Writing: bazel-out/aarch64-opt/bin/tensorflow/tools/lib_package/libtensorflow.tar.gz; 41s local
Target //tensorflow/tools/lib_package:libtensorflow up-to-date:
  bazel-bin/tensorflow/tools/lib_package/libtensorflow.tar.gz
[11,354 / 11,354] checking cached actions
INFO: Elapsed time: 25574.510s, Critical Path: 3464.21s
INFO: 1000 processes: 2 internal, 998 local.
INFO: Build completed successfully, 1000 total actions
``` 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/62357">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/62357">No</a>
 Same behavior observed on v2.15.0. Linking step failed with clang, however, all good with gcc. Leaving this comment here to hopefully get this issue addressed in future versions if clang would be the preferred compiler toolchain.
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

tf v2.14.0

### Custom code

No

### OS platform and distribution

Linux arm64

### Mobile device

_No response_

### Python version

3.11.2

### Bazel version

6.4.0

### GCC/compiler version

Debian clang version 14.0.6 aarch64-unknown-linux-gnu

### CUDA/cuDNN version

n/a

### GPU model and memory

_No response_

### Current behavior?

When trying to build `libtensorflow` the linking step failed. Is there a way to fix this?

### Standalone code to reproduce the issue

```shell
Run `bazel build --config opt //tensorflow/tools/lib_package:libtensorflow`
```


### Relevant log output

```shell
[5,037 / 5,041] Compiling tensorflow/core/kernels/conv_grad_input_ops_3d.cc; 246s local
[5,037 / 5,041] Compiling tensorflow/core/kernels/conv_grad_input_ops_3d.cc; 276s local
[5,037 / 5,041] Compiling tensorflow/core/kernels/conv_grad_input_ops_3d.cc; 336s local
[5,038 / 5,041] [Prepa] Linking tensorflow/libtensorflow.so.2.14.0
[5,038 / 5,041] Linking tensorflow/libtensorflow.so.2.14.0; 1s local
[5,038 / 5,041] Linking tensorflow/libtensorflow.so.2.14.0; 11s local
[5,038 / 5,041] Linking tensorflow/libtensorflow.so.2.14.0; 41s local
ERROR: /mnt/sandisk/tensorflow/tensorflow/tensorflow/BUILD:1243:20: Linking tensorflow/libtensorflow.so.2.14.0 failed: (Exit 1): clang failed: error executing command (from target //tensorflow:libtensorflow.so.2.14.0) /usr/lib/llvm-14/bin/clang @bazel-out/aarch64-opt/bin/tensorflow/libtensorflow.so.2.14.0-2.params
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[5,039 / 5,041] checking cached actions
Target //tensorflow/tools/lib_package:libtensorflow failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 50743.078s, Critical Path: 1006.17s
INFO: 5039 processes: 38 internal, 5001 local.
FAILED: Build did NOT complete successfully
```
