Tensorflow build error with v2.12.0
Hi @alien2327 ,

This is reported by other community member at #60031 and PR has been raised by a contributor for this which is under review. Please go through the issue and confirm if this is different to the other issue mentioned.

Thanks! Hi, @SuryanarayanaY !

Thank you for let me know #60031, and yes, this is the same error what I saw.

Again, thank you and your team for all the effort to support tf!
Best regards 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/60187">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/60187">No</a>

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

Build/Install

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

No

### Source

source

### Tensorflow Version

2.12.0

### Custom Code

Yes

### OS Platform and Distribution

Linux Ubuntu 22.04 (Docker)

### Mobile device

_No response_

### Python version

3.10.6

### Bazel version

5.3.0

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

11.8

### GPU model and memory

_No response_

### Current Behaviour?

```shell
When I try to build tensorflow from source, error occured by two file.

- tensorflow/compiler/tf2tensorrt/common/utils.cc:209:10
- tensorflow/compiler/tf2tensorrt/convert/weights.cc:61:10

Since there was no default statement in switch, I just add something like, default: break; and the error has gone.

It is okay to add just defualt and do nothing? or should I use some flags that makes compiler ignore w/o-switch?

Thanks!
```


### Standalone code to reproduce the issue

```shell
Same above.
```


### Relevant log output

```shell
ERROR: /tmp/tensorflow/tensorflow/compiler/tf2tensorrt/BUILD:565:16: Compiling tensorflow/compiler/tf2tensorrt/convert/weights.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/compiler/tf2tensorrt/_objs/trt_weights/weights.pic.d ... (remaining 180 arguments skipped)
tensorflow/compiler/tf2tensorrt/convert/weights.cc: In member function ‘size_t tensorflow::tensorrt::convert::TRT_ShapedWeights::size_bytes() const’:
tensorflow/compiler/tf2tensorrt/convert/weights.cc:61:10: error: enumeration value ‘kFP8’ not handled in switch [-Werror=switch]
   61 |   switch (type_) {
      |          ^
cc1plus: some warnings being treated as errors
Target //tensorflow/tools/pip_package:build_pip_package failed to build
```
</details>