tensorflow / tensorflow/tensorflow

Will there be compatibility issues if tensorlfow is upgraded and llvm is used for building while other components remain gcc?

Open
#109,505 2 comments 0 reactions 1 assignee View on GitHub

@Venkat6871 is already working on this.

Since Feb 3, 2026.

TF 2.19 type:build/install
Dominant language
C++
Stars
200k
Forks
76.9k
Avg merge
2d 3h
Merged PRs (30d)
433

Description

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf2.20

Custom code

Yes

OS platform and distribution

No response

Mobile device

No response

Python version

No response

Bazel version

Bazel 7.4.1

GCC/compiler version

clang18/gcc14

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

I use TensorFlow to build an inference environment, which integrates components such as TensorFlow, Protobuf, gPRC, and brpc and our self-developed component. TensorFlow v2.6.0 is used.
I plan to upgrade to tensorflow v2.20. LLVM is recommended for building this version. However, we still want to use gcc for our self-developed code and dependent components.
Build method: LLVM is used to build TensorFlow. Self-developed code tool and dependent components such as Protobuf, gPRC, and brpc are built using GCC and then linked together.
Will there be compatibility issues with this build method? If so, are there any other build methods recommended

Standalone code to reproduce the issue
NA
Relevant log output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.