Linking external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.13.0 failed: (Exit 1): gcc failed: error executing command 
Here is a log with the linker errors. It looks like we will need to make sure libtensorflow_cc exports all of these undefined TF symbols via `roots`.
For the missing mlir symbols, TF hides symbols matching `*mlir*` using the linker scripts to prevent duplication bugs, so we should have tf serving depend on mlir directly in those cases.

[tfs_build.log](https://github.com/tensorflow/tensorflow/files/11054607/tfs_build.log)

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

Bug

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

No

### Source

source

### Tensorflow Version

Head

### Custom Code

No

### OS Platform and Distribution

Linux

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

[Dynamic Pywrap PR 58734](https://github.com/tensorflow/tensorflow/pull/58734) seems to introduce a a TensorFlow Serving linking error.


### Standalone code to reproduce the issue

Run
```shell
$ git clone git@github.com:tensorflow/serving.git
$ cd serving
$ sudo ./tools/run_in_docker.sh bazel test --action_env=TF_REVISION=6147c03eb9af1e5d2ae155045b33e909ef96944e tensorflow_serving/... &> /tmp/tfs_bazel_output.log
```
and search `Linking external` in /tmp/tfs_bazel_output.log



### Relevant log output

```shell
/usr/local/google/home/rostam/Workspace/tmp/serving/.cache/_bazel_root/7c4195127656842bcf1efda48d8fd065/external/org_tensorflow/tensorflow/BUILD:1214:21: Linking external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.12.0 failed: (Exit 1): gcc failed: error executing command 
  (cd /usr/local/google/home/rostam/Workspace/tmp/serving/.cache/_bazel_root/7c4195127656842bcf1efda48d8fd065/execroot/tf_serving && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PWD=/proc/self/cwd \
    TF_REVISION=6147c03eb9af1e5d2ae155045b33e909ef96944e \
  /usr/bin/gcc @bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.12.0-2.params)

```