Repository: tensorflow
Issue: TF 2 building from source fails
Labels: stat:awaiting tensorflower,type:build/install,subtype: ubuntu/linux,subtype:bazel

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

Build/Install

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

Yes

### Source

source

### Tensorflow Version

Commit hash: cd8247b47bd5ba25b26752b55ea54b52e5574183

### Custom Code

No

### OS Platform and Distribution

Redhat Enterprise Linux 8.7

### Mobile device

_No response_

### Python version

3.10.4

### Bazel version

5.4.0 (same as what's there in .bazelversion)

### GCC/Compiler version

clang 17.0.0

### CUDA/cuDNN version

CUDA 12.1, cuDNN 8.9.0

### GPU model and memory

H100

### Current Behaviour?

Hello,

I'm unable to build TF from source on CUDA 12.1. It tries to download a bunch of things, but that's failing with the attached error.

Please let me know what I can do to build it correctly.


Thanks in advance.

### Standalone code to reproduce the issue

```shell
* ./configure (and provide details)
* bazel --output_user_root=/var/tmp/bazel_cache/ build //tensorflow/tools/pip_package:build_pip_package --config=v2 --config=nogcp --verbose_failures
```


### Relevant log output

```shell
Build fails with the following:


WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz failed: class javax.net.ssl.SSLHandshakeException PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target                                                                                                                                                                                                               
WARNING: Download from https://github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz failed: class javax.net.ssl.SSLHandshakeException PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target                                                                                                                                                                                                                                                            
ERROR: An error occurred during the fetch of repository 'llvm-raw':                                                                                                                                                                                                                       
   Traceback (most recent call last):                                                                                                                                                                                                                                                     
        File "/var/tmp/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl                                                                                                                                                                         
                ctx.download_and_extract(                                                                                                                                                                                                                                                 
Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz, https://github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz] to /var/tmp/bazel_cache/3f833e193dcf224ba1dfd4cfcb9a9327/external/llvm-raw/temp9475963496497572483/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target                                                                                                                                                                                                                                            
ERROR: /var/tmp/tensorflow/WORKSPACE:11:14: fetching _tf_http_archive rule //external:llvm-raw: Traceback (most recent call last):                                                                                                                                            
        File "/var/tmp/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl                                                                                                                                                                         
                ctx.download_and_extract(                                                                                                                                                                                                                                                 
Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz, https://github.com/llvm/llvm-project/archive/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz] to /var/tmp/bazel_cache/3f833e193dcf224ba1dfd4cfcb9a9327/external/llvm-raw/temp9475963496497572483/8ed9cf06e9004931e3e583a79579f3286e8d027c.tar.gz: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target                                                                                                                                                                                                                                            
```
```
</details>