crosstool_wrapper_driver_is_not_gcc failed: error executing command
@Ternity,
Tensorflow 2.5 is compatible with GCC 7.3.1, Bazel 3.7.2, cuDNN 8.1 and CUDA 11.2. Could you please take a look at this official testing build configurations from [here](https://www.tensorflow.org/install/source#gpu) and also tensorflow v2.5 is considered as older version, so I request to update to latest stable version 2.12 for better performance and assistance. Thank you!



 Thank you, please let me try with GCC 7.3.1. 
For CUDA, in my mechine, CUDA Driver version does not allow me to install CUDA 11.2. 
Thankyou again. 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/60557">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/60557">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

v2.5.0-160-g8222c1cfc86 2.5.1

### Custom Code

Yes

### OS Platform and Distribution

Linux CentOS 3.10.0-1160.49.1.el7.x86_64

### Mobile device

_No response_

### Python version

3.9

### Bazel version

3.7.2

### GCC/Compiler version

7.3.0

### CUDA/cuDNN version

CUDA-11.1; cuDNN-8.0.5.39 for cuda-11.1

### GPU model and memory

Tesla V100; 32GB

### Current Behaviour?

I want to build libtensorflow_cc.so
The operation and error reporting are as follows：

### Standalone code to reproduce the issue

```shell
My configure:
You have bazel 3.7.2 installed.
location of python /home/yuqinghan/anaconda3/envs/deepmd/bin/python3

 input the desired Python library path to use. /home/yuqinghan/anaconda3/envs/deepmd/lib/python3.9/site-packages

No ROCm support will be enabled for TensorFlow.

CUDA support will be enabled for TensorFlow.

No TensorRT support will be enabled for TensorFlow.

Found CUDA 11.1 in:
    /usr/local/cuda-11.1/targets/x86_64-linux/lib
    /usr/local/cuda-11.1/targets/x86_64-linux/include
Found cuDNN 8 in:
    /home/yuqinghan/Systemtools/cudnn-8.0.5.39+cuda-11.1/lib
    /home/yuqinghan/Systemtools/cudnn-8.0.5.39+cuda-11.1/include

Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 7.0,7.0]: sm_70

nvcc will be used as CUDA compiler.

specify which gcc should be used by nvcc as the host compiler. Default is /home/yuqinghan/Systemtools/gcc-7.3.0/bin/gcc

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:

Not configuring the WORKSPACE for Android builds.

Configuration finished

And then, I Command entered：
bazel build -c opt --copt=-msse4.2 --copt=-mavx --copt=-mavx2 --copt=-mfma --verbose_failures //tensorflow:libtensorflow_cc.so
```


### Relevant log output

```shell
The error is:

INFO: Analyzed target //tensorflow:libtensorflow_cc.so (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/yuqinghan/Software/Setup/TensorFlow-setup/tensorflow/compiler/tf2xla/cc/BUILD:31:21: Linking of rule '//tensorflow/compiler/tf2xla/cc:ops/xla_jit_ops_gen_cc' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
  (cd /home/yuqinghan/.cache/bazel/_bazel_yuqinghan/81bc5fe21e90260ab76069b6616023e5/execroot/org_tensorflow && \
  exec env - \
    LD_LIBRARY_PATH= To highlight the BUG, specific paths have been omitted here \
    PATH= To highlight the BUG, specific paths have been omitted here \
    PWD=/proc/self/cwd \
  external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/host/bin/tensorflow/compiler/tf2xla/cc/ops/xla_jit_ops_gen_cc-2.params)
Execution platform: @local_execution_config_platform//:platform
bazel-out/host/bin/_solib_local/_U_S_Stensorflow_Scompiler_Stf2xla_Scc_Cops_Sxla_Ujit_Uops_Ugen_Ucc___Utensorflow/libtensorflow_framework.so.2: undefined reference to `std::allocator<absl::lts_2020_09_23::string_view>::allocator()'
collect2: error: ld returned 1 exit status
Target //tensorflow:libtensorflow_cc.so failed to build
INFO: Elapsed time: 1.729s, Critical Path: 0.56s
INFO: 54 processes: 52 internal, 2 local.
FAILED: Build did NOT complete successfully
```
</details>