Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows10
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: None
- TensorFlow installed from (source or binary): source
- TensorFlow version: v1.15.4+nv20.12
- Python version: 3.8
- Installed using virtualenv? pip? conda?: conda
- Bazel version (if compiling from source): 0.24.0
- GCC/Compiler version (if compiling from source): msvc 2019.16
- CUDA/cuDNN version:cuda11.8/cudnn8.8.1
- GPU model and memory: 3060ti
Describe the problem
Provide the exact sequence of commands / steps that you executed before running into the problem
I am working in an MSYS2 and MinGW64 environment and trying to build TensorFlow using Bazel to obtain libtensorflow_cc.lib. Here is the command I am using:
bazel build --config=v1 --config=cuda --define=no_tensorflow_py_deps=true --copt=-nvcc_options=disable-warnings //tensorflow:libtensorflow_cc.so //tensorflow:install_headers
I have successfully generated libtensorflow_cc.so, libtensorflow_cc.dll, and numerous .cc files using this command. Attached is a screenshot showing the current file structure produced by this command. However, I am still looking for how to adjust this command or my environment settings to generate the libtensorflow_cc.lib file for Windows and an include folder containing only .h header files.

I am not finding the specific files I need in the bazel-out directory. Could you please guide me on how to obtain the libtensorflow_cc.lib file and the necessary header files?
Thank you for your help!
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.