tensorflow::RunOptions::RunOptions(void)
symbol missing in built tensorflow.dll (Windows)
#66490
Labels
stat:awaiting response
Status - Awaiting response from author
subtype:windows
Windows Build/Installation Issues
TF 2.16
type:build/install
Build and install issues
Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
tf 2.16.1
Custom code
No
OS platform and distribution
Windows 11 23H2 Build 22631.3296
Mobile device
N/A
Python version
3.11.2
Bazel version
6.5.0
GCC/compiler version
LLVM/clang 17.0.6 & MSVC 19.29.30154
CUDA/cuDNN version
N/A
GPU model and memory
N/A
Current behavior?
I was trying to build the
tensorflow.dll
in Windows to use the C++ API in my code. After successfully buildingtensorflow.dll
and trying to use it in the code, I had faced several missing symbols error while linking. But by addingTF_EXPORT
I was able to remove most of it. But there was still one symbol that was missing, which istensorflow::RunOptions::RunOptions(void)
.As far as I observed this is from a dynamically generated
config.pb.h
fromtensorflow/core/protobuf/config.proto
. What I have tried is to applyTF_EXPORT
to the generatedconfig.pb.h
file in relevant places. But as soon as I run the bazel build command for the target, Theconfig.pb.h
and theconfig.pb.cc
files are regenerated, thus whatever changes I made for exporting those symbols invalid. And after the build I still get the sametensorflow::RunOptions::RunOptions(void)
symbol missing error while linking.My question is how can I specifically export symbols from dynamically generated stub files from proto files while building ?
I was surprised no one has faced this problem before.
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: