Built from source Tensorflow is not linking (undefined references)
According to this https://github.com/gvne/spleeterpp/blob/v0.1/docs/source/build.rst
I should add the following lines to `tensorflow/tools/def_file_filter/def_file_filter.py.tpl`
```
def_fp.write("\t ??0SessionOptions@tensorflow@@QEAA@XZ\n")
def_fp.write("\t ?LoadSavedModel@tensorflow@@YA?AVStatus@1@AEBUSessionOptions@1@AEBVRunOptions@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$unordered_set@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@6@QEAUSavedModelBundle@1@@Z\n")
def_fp.write("\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@XZ\n")
def_fp.write("\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@V?$Span@$$CB_J@absl@@@Z\n")
```

However these steps are for TF 1.14.0, and when I try the above for TF 2.9, I get the following error: 

```
ERROR: D:/users/superkogito/_bazel_superkogito/6mghjs3w/external/llvm-project/llvm/BUILD.bazel:623:11: Generating code from table: include/llvm/IR/Intrinsics.td @llvm-project//llvm:intrinsic_NVPTX_gen__gen_intrinsic_enums__intrinsic_prefix_nvvm_genrule failed: (Exit -1073741819): bash.exe failed: error executing command
  cd /d D:/users/superkogito/_bazel_superkogito/6mghjs3w/execroot/org_tensorflow
  SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\windows;C:\windows\System32;C:\windows\System32\WindowsPowerShell\v1.0;D:\Users\superkogito\AppData\Local\bazelisk\downloads\bazelbuild\bazel-5.0.0-windows-x86_64\bin;C:\ProgramData\Anaconda3\condabin;C:\windows;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Windows;C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\VSCode-huawei\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\CMake\bin;C:\Program Files\Meld\;C;C:\Program Files\PuTTY\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\;C:\Program Files\Go\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Program Files\dotnet\;D:\Users\superkogito\AppData\Local\Microsoft\WindowsApps;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;D:\wecode_build_tools\mingw\bin;C:\Program Files\Vim\vim90;D:\Users\superkogito\AppData\Local\Programs\oh-my-posh\bin;D:\Users\superkogito\AppData\Local\Pandoc\;D:\Users\superkogito\AppData\Roaming\npm;D:\Users\superkogito\go\bin;D:\Users\superkogito\.dotnet\tools
    SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe
    SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages
    SET RUNFILES_MANIFEST_ONLY=1
    SET TF2_BEHAVIOR=1
  C:\msys64\usr\bin\bash.exe -c source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/x64_windows-opt/bin/external/llvm-project/llvm/llvm-tblgen.exe -I external/llvm-project/llvm/include -I external/llvm-project/clang/include -I $(dirname external/llvm-project/llvm/include/llvm/IR/Intrinsics.td) -gen-intrinsic-enums -intrinsic-prefix=nvvm external/llvm-project/llvm/include/llvm/IR/Intrinsics.td  -o bazel-out/x64_windows-opt/bin/external/llvm-project/llvm/include/llvm/IR/IntrinsicsNVPTX.h
# Configuration: ba54b48ce4c79231b8df54f05b418e10c258e9f9f8bc4e1d4ed12ca6643cbb5a
# Execution platform: @local_execution_config_platform//:platform
      1 [main] bash (42124) C:\msys64\usr\bin\bash.exe: *** fatal error - add_item ("\??\C:\msys64", "/", ...) failed, errno 1
Stack trace:
Frame         Function      Args
0007FFFFCD30  0001800611BE (00018028FD8A, 000180271B51, 00000000007F, 0007FFFF8B30) msys-2.0.dll+0x211BE
0007FFFFCD30  0001800469BA (000000000000, 0007FFFFCD30, 0001A1000010, 0007FFFFABDA) msys-2.0.dll+0x69BA
0007FFFFCD30  0001800469F2 (0007FFFF9BC0, 000000000001, 00000000007F, 000000000001) msys-2.0.dll+0x69F2
0007FFFFCD30  00018007E5E7 (000700000000, 000040000024, 000000000000, 000000000000) msys-2.0.dll+0x3E5E7
0007FFFFCD30  000180182B05 (000180073224, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x142B05
0007FFFFCD30  000180047012 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x7012
0007FFFFFFF0  000180045C86 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5C86
0007FFFFFFF0  000180045D34 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5D34
End of stack trace
Loaded modules:
000100400000 bash.exe
7FF8D5F30000 ntdll.dll
7FF8D4EE0000 KERNEL32.DLL
7FF8D38D0000 KERNELBASE.dll
7FF8A57F0000 ghijt64win10.dll
7FF8D4350000 ADVAPI32.dll
7FF8D5080000 msvcrt.dll
7FF8D4710000 sechost.dll
7FF8D45E0000 RPCRT4.dll
7FF8D4190000 USER32.dll
7FF8D3F60000 win32u.dll
7FF8D5120000 GDI32.dll
7FF8D3D90000 gdi32full.dll
7FF8D3800000 msvcp_win.dll
7FF8D3BD0000 ucrtbase.dll
000180040000 msys-2.0.dll
7FF88EBE0000 VCOMP140.DLL
7FF8D4160000 IMM32.DLL
7FF8D3310000 oleLoader.dll
7FF8D2F30000 CRYPTBASE.DLL
7FF8D3770000 bcryptPrimitives.dll
Target //tensorflow:tensorflow_cc.dll failed to build
INFO: Elapsed time: 2349.371s, Critical Path: 663.47s
INFO: 5431 processes: 2009 internal, 3422 local.
FAILED: Build did NOT complete successfully

```  moving the following lines to line 275 in the  `tensorflow/tools/def_file_filter/def_file_filter.py.tpl` causes a different error. 
```
def_fp.write("\t ??0SessionOptions@tensorflow@@QEAA@XZ\n")
def_fp.write("\t ?LoadSavedModel@tensorflow@@YA?AVStatus@1@AEBUSessionOptions@1@AEBVRunOptions@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$unordered_set@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@6@QEAUSavedModelBundle@1@@Z\n")
def_fp.write("\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@XZ\n")
def_fp.write("\t ??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@V?$Span@$$CB_J@absl@@@Z\n")
```

The build almost terminated correctly in this case, but eventually I ended up with these linking errors:
```
[10,494 / 10,810] 8 actions running
    Compiling tensorflow/core/kernels/mkl/mkl_quantize_op.cc; 29s local
[10,494 / 10,810] 8 actions running
    Compiling tensorflow/core/kernels/mkl/mkl_quantize_op.cc; 30s local
[10,496 / 10,810] 7 actions running
[10,497 / 10,810] 8 actions, 7 running
[10,498 / 10,812] 8 actions running
[10,500 / 10,814] 8 actions running
[10,500 / 10,814] 8 actions running
[10,505 / 10,817] 8 actions running
[10,506 / 10,817] 8 actions, 7 running
[10,506 / 10,817] 8 actions running
[10,508 / 10,819] 8 actions running
[10,613 / 10,896] 8 actions running
[10,656 / 10,923] 8 actions, 7 running
ERROR: D:/users/superkogito/downloads/tensorflow-2.9.0/tensorflow/BUILD:1048:20: Linking tensorflow/tensorflow_cc.dll failed: (Exit 1120): link.exe failed: error executing command
  cd /d D:/users/superkogito/_bazel_superkogito/6mghjs3w/execroot/org_tensorflow
  SET LIB=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\lib\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64
    SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\;;C:\windows\system32;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
    SET PWD=/proc/self/cwd
    SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe
    SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages
    SET RUNFILES_MANIFEST_ONLY=1
    SET TEMP=D:\Users\superkogito\AppData\Local\Temp
    SET TF2_BEHAVIOR=1
    SET TMP=D:\Users\superkogito\AppData\Local\Temp
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\link.exe @bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll-2.params
# Configuration: e6cdbc5f9ea1d062c246ab7d360b46f14ec764581d9f093d895b4b2995265b6c
# Execution platform: @local_execution_config_platform//:platform
LINK : warning LNK4044: unrecognized option '/lm'; ignored
bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_filtered_def_file.def : warning LNK4197: export '?_GraphDef_default_instance_@tensorflow@@3VGraphDefDefaultTypeInternal@1@A' specified multiple times; using first specification
bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_filtered_def_file.def : warning LNK4197: export '?_TensorShapeProto_default_instance_@tensorflow@@3VTensorShapeProtoDefaultTypeInternal@1@A' specified multiple times; using first specification
   Creating library bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll.if.lib and object bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll.if.exp
LINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)'
LINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'
LINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem_registration.obj)' in function '"class tensorflow::Status __cdecl tensorflow::RegisterFileSystem(struct TF_FilesystemPluginInfo const *,int)" (?RegisterFileSystem@tensorflow@@YA?AVStatus@1@PEBUTF_FilesystemPluginInfo@@H@Z)'
LINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem.obj)'
LINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)'
LINK : warning LNK4286: symbol 'TF_NewStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)'
LINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)'
LINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'
LINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem_registration.obj)' in function '"class tensorflow::Status __cdecl tensorflow::RegisterFileSystem(struct TF_FilesystemPluginInfo const *,int)" (?RegisterFileSystem@tensorflow@@YA?AVStatus@1@PEBUTF_FilesystemPluginInfo@@H@Z)'
LINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem.obj)'
LINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)'
LINK : warning LNK4286: symbol 'TF_DeleteStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)'
LINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'
LINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'modular_filesystem.lib(modular_filesystem.obj)' in function '"public: virtual class tensorflow::Status __cdecl tensorflow::ModularFileSystem::NewAppendableFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct tensorflow::TransactionToken *,class std::unique_ptr<class tensorflow::WritableFile,struct std::default_delete<class tensorflow::WritableFile> > *)" (?NewAppendableFile@ModularFileSystem@tensorflow@@UEAA?AVStatus@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAUTransactionToken@2@PEAV?$unique_ptr@VWritableFile@tensorflow@@U?$default_delete@VWritableFile@tensorflow@@@std@@@5@@Z)'
LINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)'
LINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)'
LINK : warning LNK4286: symbol 'TF_GetCode' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'bfc_allocator.lib(bfc_allocator.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'allocator_registry_impl.lo.lib(cpu_allocator_impl.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'batch_resource_base.lib(batch_resource_base.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'snapshot_utils.lib(snapshot_utils.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'captured_function.lib(captured_function.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_device.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'execute.lib(execute.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'remote_tensor_handle_data.lib(remote_tensor_handle_data.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'graph_mgr.lib(graph_mgr.obj)'
LINK : warning LNK4217: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'cpu_runtime.lib(cpu_runtime.obj)' in function '"public: static bool __cdecl tensorflow::profiler::TraceMeRecorder::Active(int)" (?Active@TraceMeRecorder@profiler@tensorflow@@SA_NH@Z)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'grpc_master_service.lo.lib(grpc_master_service.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'eager_service_impl.lib(eager_service_impl.obj)'
LINK : warning LNK4286: symbol '?g_trace_level@internal@profiler@tensorflow@@3U?$atomic@H@std@@A (struct std::atomic<int> tensorflow::profiler::internal::g_trace_level)' defined in 'traceme_recorder_impl.lo.lib(traceme_recorder.obj)' is imported by 'xla_ops_no_jit_rewrite_registration.lo.lib(xla_ops.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'utils.lib(utils.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'Utils.lib(utils.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'captured_function.lib(captured_function.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'arithmetic_optimizer.lib(arithmetic_optimizer.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'memory_optimizer.lib(memory_optimizer.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'pin_to_host_optimizer.lib(pin_to_host_optimizer.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'window_dataset.lib(window_dataset.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'ragged_tensor_variant.lib(ragged_tensor_variant.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'snapshot_utils.lib(snapshot_utils.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'tpu_rewrite_device_util.lib(tpu_rewrite_device_util.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_op_registry.lo.lib(xla_op_registry.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_helpers.lo.lib(xla_helpers.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'collective_param_resolver_distributed.lib(collective_param_resolver_distributed.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'device_util.lib(device_util.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_platform_info.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_ops_on_regular_devices.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_launch_util.lib(xla_launch_util.obj)'
LINK : warning LNK4217: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_ops_no_jit_rewrite_registration.lo.lib(xla_ops.obj)' in function '"void __cdecl tensorflow::`dynamic initializer for 'register_kernel_11''(void)" (??__Eregister_kernel_11@tensorflow@@YAXXZ)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(mark_for_compilation_pass.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(encapsulate_xla_computations_pass.obj)'
LINK : warning LNK4286: symbol '?DEVICE_CPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_CPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(clone_constants_for_better_clustering.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'utils.lib(utils.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'arithmetic_optimizer.lib(arithmetic_optimizer.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'memory_optimizer.lib(memory_optimizer.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'pin_to_host_optimizer.lib(pin_to_host_optimizer.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'gpu_id_impl.lib(gpu_id_manager.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_helpers.lo.lib(xla_helpers.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_cluster_util.lib(xla_cluster_util.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'tf_ops_device_helper.lib(tf_ops_device_helper.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_ops_on_regular_devices.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_launch_util.lib(xla_launch_util.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'device_util.lib(device_util.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_op_registry.lo.lib(xla_op_registry.obj)'
LINK : warning LNK4217: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_ops_no_jit_rewrite_registration.lo.lib(xla_ops.obj)' in function '"void __cdecl tensorflow::`dynamic initializer for 'register_kernel_10''(void)" (??__Eregister_kernel_10@tensorflow@@YAXXZ)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'compilation_passes.lib(encapsulate_xla_computations_pass.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'device_util.lib(device_util.obj)'
LINK : warning LNK4286: symbol '?DEVICE_GPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_GPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_device_no_jit_rewrite_registration.lo.lib(xla_platform_info.obj)'
LINK : warning LNK4217: symbol '?DEVICE_TPU@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_TPU)' defined in 'tensor.lo.lib(types.obj)' is imported by 'xla_helpers.lo.lib(xla_helpers.obj)' in function '"class tensorflow::Status __cdecl tensorflow::ResolveDeviceAssignment(class tensorflow::OpKernelContext *,struct tensorflow::XlaCompilationResult::CollectiveInfo const &,class xla::ExecutableRunOptions &,class xla::DeviceAssignment &,class xla::gpu::GpuExecutableRunOptions &)" (?ResolveDeviceAssignment@tensorflow@@YA?AVStatus@1@PEAVOpKernelContext@1@AEBUCollectiveInfo@XlaCompilationResult@1@AEAVExecutableRunOptions@xla@@AEAVDeviceAssignment@7@AEAVGpuExecutableRunOptions@gpu@7@@Z)'
LINK : warning LNK4286: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'tf_tensor.lib(tf_tensor.obj)'
LINK : warning LNK4217: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4286: symbol 'TF_SetStatus' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4286: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_Message' defined in 'tf_status.lib(tf_status.obj)' is imported by 'stream_executor.lib(stream_executor.obj)'
LINK : warning LNK4217: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_NewOpDefinitionBuilder' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_RegisterOpDefinition' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderAddAttr' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderAddInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderAddOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"public: __cdecl <lambda_81f216a906f53c734a3052b76c5b769d>::operator()(void)const " (??R<lambda_81f216a906f53c734a3052b76c5b769d>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"public: __cdecl <lambda_1689c97173d037187ab1e4ec97d7afb8>::operator()(void)const " (??R<lambda_1689c97173d037187ab1e4ec97d7afb8>@@QEBA@XZ)'
LINK : warning LNK4217: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"public: __cdecl <lambda_39275ca6067190d68b302c65521acd24>::operator()(void)const " (??R<lambda_39275ca6067190d68b302c65521acd24>@@QEBA@XZ)'
LINK : warning LNK4286: symbol 'TF_OpDefinitionBuilderSetShapeInferenceFunction' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4286: symbol 'TF_ShapeInferenceContextSetOutput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextScalar' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextScalar' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextScalar' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'histogram_summary_op_lib.lo.lib(histogram_summary.obj)' in function '"void __cdecl histogram_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?histogram_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'merge_summary_op_lib.lo.lib(merge_summary.obj)' in function '"void __cdecl merge_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?merge_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'summary_op_lib.lo.lib(summary.obj)' in function '"void __cdecl scalar_summary_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?scalar_summary_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4286: symbol 'TF_DeleteShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)'
LINK : warning LNK4217: symbol '?DEVICE_DEFAULT@tensorflow@@3QEBDEB (char const * const tensorflow::DEVICE_DEFAULT)' defined in 'tensor.lo.lib(types.obj)' is imported by 'batch_kernels.lo.lib(batch_kernels.obj)' in function '"void __cdecl tensorflow::`dynamic initializer for 'register_kernel_3''(void)" (??__Eregister_kernel_3@tensorflow@@YAXXZ)'
LINK : warning LNK4217: symbol 'TF_NumDims' defined in 'tf_tensor.lib(tf_tensor.obj)' is imported by 'tensor_shape_utils.lib(tensor_shape_utils.obj)' in function '"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl tensorflow::ShapeDebugString(struct TF_Tensor *)" (?ShapeDebugString@tensorflow@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAUTF_Tensor@@@Z)'
LINK : warning LNK4217: symbol 'TF_Dim' defined in 'tf_tensor.lib(tf_tensor.obj)' is imported by 'tensor_shape_utils.lib(tensor_shape_utils.obj)' in function '"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl tensorflow::ShapeDebugString(struct TF_Tensor *)" (?ShapeDebugString@tensorflow@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAUTF_Tensor@@@Z)'LINK : warning LNK4217: symbol 'TF_DataTypeSize' defined in 'tf_datatype.lo.lib(tf_datatype.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4286: symbol 'TF_DataTypeSize' defined in 'tf_datatype.lo.lib(tf_datatype.obj)' is imported by 'tf_tensor.lib(tf_tensor.obj)'
LINK : warning LNK4217: symbol 'TF_NewShapeHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextGetInput' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextVectorFromSize' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_NewDimensionHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContext_GetAttrType' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextRankKnown' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextWithRankAtLeast' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextDim' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSubshape' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextSetUnknownShape' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl bitcast_shape_inference_fn(struct TF_ShapeInferenceContext *,struct TF_Status *)" (?bitcast_shape_inference_fn@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_DimensionHandleValueKnown' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_DimensionHandleValue' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_ShapeInferenceContextConcatenateShapes' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
LINK : warning LNK4217: symbol 'TF_DeleteDimensionHandle' defined in 'ops.lo.lib(ops.obj)' is imported by 'bitcast_op_lib.lo.lib(bitcast.obj)' in function '"void __cdecl ComputeNewShape(struct TF_ShapeInferenceContext *,struct TF_ShapeHandle *,enum TF_DataType,enum TF_DataType,struct TF_Status *)" (?ComputeNewShape@@YAXPEAUTF_ShapeInferenceContext@@PEAUTF_ShapeHandle@@W4TF_DataType@@2PEAUTF_Status@@@Z)'
tensorflow_cc.dll.if.exp : error LNK2001: unresolved external symbol "public: __cdecl tensorflow::TensorShapeBase<class tensorflow::TensorShape>::TensorShapeBase<class tensorflow::TensorShape>(class absl::Span<__int64 const >)" (??0?$TensorShapeBase@VTensorShape@tensorflow@@@tensorflow@@QEAA@V?$Span@$$CB_J@absl@@@Z)
bazel-out\x64_windows-opt\bin\tensorflow\tensorflow_cc.dll : fatal error LNK1120: 1 unresolved externals
Target //tensorflow:tensorflow_cc.dll failed to build
INFO: Elapsed time: 33926.242s, Critical Path: 16255.84s
INFO: 11145 processes: 2381 internal, 8764 local.
FAILED: Build did NOT complete successfully
``` @mraunak , Could you please take a look into this. Thanks! Hi, @SuperKogito could you please try the latest version of TF? TF 2.9.0 is out of support. Hello @mraunak, 
thank you for responding. Testing with the TF 2.12.0 yields the following logs: 
```

D:\Users\superkogito\Downloads\tensorflow-2.12.0\tensorflow-2.12.0>bazel build --verbose_failures //tensorflow:tensorflow_cc.dll
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=162
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Options provided by the client:
  'build' options: --python_path=C:/ProgramData/chocolatey/bin/python.exe
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages --python_path=C:/ProgramData/Anaconda3/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils
INFO: Found applicable config definition build:short_logs in file d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:windows in file d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file --distinct_host_configuration=false
INFO: Found applicable config definition build:monolithic in file d:\users\superkogito\downloads\tensorflow-2.12.0\tensorflow-2.12.0\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false
INFO: Analyzed target //tensorflow:tensorflow_cc.dll (426 packages loaded, 26557 targets configured).
INFO: Found 1 target...
[15,423 / 15,487] 8 actions running
    Compiling tensorflow/compiler/tf2xla/mlir_tf2xla.cc; 95s local
    Compiling tensorflow/compiler/mlir/python/mlir.cc; 74s local
    Compiling tensorflow/c/c_api_experimental.cc; 51s local
    Compiling tensorflow/dtensor/cc/dtensor_device.cc; 36s local
    Compiling tensorflow/dtensor/cc/default_parallel_executor.cc; 32s local
    Compiling tensorflow/dtensor/cc/dtensor_device_util.cc; 30s local
    Compiling tensorflow/dtensor/cc/small_constant_optimization.cc; 24s local
    Compiling tensorflow/c/experimental/grappler/grappler.cc; 17s local




ERROR: D:/users/superkogito/downloads/tensorflow-2.12.0/tensorflow-2.12.0/tensorflow/BUILD:1219:21: Linking tensorflow/tensorflow_cc.dll failed: (Exit 1120): link.exe failed: error executing command
  cd /d D:/users/superkogito/_bazel_superkogito/pgrhg4gw/execroot/org_tensorflow
  SET LIB=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\lib\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64
    SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\;;C:\windows\system32;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
    SET PWD=/proc/self/cwd
    SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe
    SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages
    SET RUNFILES_MANIFEST_ONLY=1
    SET TEMP=D:\Users\superkogito\AppData\Local\Temp
    SET TF2_BEHAVIOR=1
    SET TMP=D:\Users\superkogito\AppData\Local\Temp
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\link.exe @bazel-out/x64_windows-opt/bin/tensorflow/tensorflow_cc.dll-2.params
# Configuration: a79860a0d1687bd8970a1182bada4b0594dbd5b735f159e1a6dbf0738820df8d
# Execution platform: @local_execution_config_platform//:platform
stdout (D:/users/superkogito/_bazel_superkogito/pgrhg4gw/execroot/org_tensorflow/bazel-out/_tmp/actions/stdout-23848) exceeds maximum size of --experimental_ui_max_stdouterr_bytes=1048576 bytes; skipping
Target //tensorflow:tensorflow_cc.dll failed to build
INFO: Elapsed time: 26239.027s, Critical Path: 1212.69s
INFO: 15504 processes: 3616 internal, 11888 local.
FAILED: Build did NOT complete successfully
```
I will try with TF 2.13.0 tomorrow.  These are my error logs for the 2.13.0 version: 
```
D:\Users\superkogito\Downloads\tensorflow-2.13.0\tensorflow-2.13.0>bazel build --distdir ../deps --verbose_failures //tensorflow:tensorflow_cc.dll
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=162
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Options provided by the client:
  'build' options: --python_path=C:/ProgramData/chocolatey/bin/python.exe
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages --python_path=C:/ProgramData/Anaconda3/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug
INFO: Found applicable config definition build:short_logs in file d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:windows in file d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc: --copt=/W0 --host_copt=/W0 --copt=/Zc:__cplusplus --host_copt=/Zc:__cplusplus --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --features=compiler_param_file --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --cxxopt=/std:c++17 --host_cxxopt=/std:c++17 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/Zc:preprocessor --host_copt=/Zc:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file
INFO: Found applicable config definition build:monolithic in file d:\users\superkogito\downloads\tensorflow-2.13.0\tensorflow-2.13.0\.bazelrc: --define framework_shared_object=false --define tsl_protobuf_header_only=false --experimental_link_static_libraries_once=false
INFO: Analyzed target //tensorflow:tensorflow_cc.dll (4 packages loaded, 1578 targets configured).
INFO: Found 1 target...
ERROR: D:/users/superkogito/downloads/tensorflow-2.13.0/tensorflow-2.13.0/tensorflow/compiler/xla/stream_executor/tpu/BUILD:411:11: Compiling tensorflow/compiler/xla/stream_executor/tpu/tpu_initializer_helper.cc failed: (Exit 2): cl.exe failed: error executing command
  cd /d D:/users/superkogito/_bazel_superkogito/p5ozjjvs/execroot/org_tensorflow
  SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt
    SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\;;C:\windows\system32;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
    SET PWD=/proc/self/cwd
    SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe
    SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages
    SET RUNFILES_MANIFEST_ONLY=1
    SET TEMP=D:\Users\superkogito\AppData\Local\Temp
    SET TF2_BEHAVIOR=1
    SET TMP=D:\Users\superkogito\AppData\Local\Temp
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\cl.exe @bazel-out/x64_windows-opt/bin/tensorflow/compiler/xla/stream_executor/tpu/_objs/tpu_initializer_helper/tpu_initializer_helper.obj.params
# Configuration: 1a4ecd2543753db384ad1cfa25664150d07aba5da20fac955f60cd7a7229e057
# Execution platform: @local_execution_config_platform//:platform
tensorflow/compiler/xla/stream_executor/tpu/tpu_initializer_helper.cc(18): fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory
Target //tensorflow:tensorflow_cc.dll failed to build
INFO: Elapsed time: 11178.880s, Critical Path: 747.21s
INFO: 11473 processes: 3291 internal, 8182 local.
FAILED: Build did NOT complete successfully
``` Hi @SuperKogito, please try MSVC 2019
### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

2.9.0

### Custom code

Yes

### OS platform and distribution

Windows 10

### Mobile device

11th Gen Intel(R) Core(TM) i7-1165G7, 4 Core(s), 8 Logical Processor(s)

### Python version

3.9.13

### Bazel version

Bazel 5.0.0 

### GCC/compiler version

gcc.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 12.2.0

### CUDA/cuDNN version

Not used

### GPU model and memory

Not used

### Current behavior?

I am trying to build this open source project https://github.com/gvne/spleeterpp/tree/master that uses Tensorflow. When I use the online available C-API builds (available here https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.0.zip), this works without an issue. However, when I build my dll and lib  files from source so I can take advantage from the `/:arch:AVX2`, I get the following errors:

```
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/vst3sdk/build/VST3/Debug/ "C:/Program Files/Common Files/VST3/" && "C:\Program Files\JetBrains\CLion 2023.1.2\bin\cmake\win\x64\bin\cmake.exe" -E echo [SMTG] Finished.""
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_common.a(spleeter_common.cc.obj): in function `spleeter::Initialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, spleeter::SeparationType, std::error_code&)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:28: undefined reference to `__imp_TF_NewSessionOptions'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:28: undefined reference to `__imp_TF_DeleteSessionOptions'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:29: undefined reference to `__imp_TF_NewGraph'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:29: undefined reference to `__imp_TF_DeleteGraph'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:30: undefined reference to `__imp_TF_NewBuffer'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:30: undefined reference to `__imp_TF_DeleteBuffer'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:31: undefined reference to `__imp_TF_NewBuffer'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:31: undefined reference to `__imp_TF_DeleteBuffer'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:32: undefined reference to `__imp_TF_NewStatus'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:32: undefined reference to `__imp_TF_DeleteStatus'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:35: undefined reference to `__imp_TF_LoadSessionFromSavedModel'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/spleeter_common.cc:40: undefined reference to `__imp_TF_GetCode'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_common.a(tf_handle.cc.obj): in function `spleeter::SessionDeleter(TF_Session*)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:6: undefined reference to `__imp_TF_NewStatus'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:6: undefined reference to `__imp_TF_DeleteStatus'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:7: undefined reference to `__imp_TF_DeleteSession'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_common/tf_handle.cc:8: undefined reference to `__imp_TF_GetCode'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `spleeter::Filter::AsyncProcessTransformedBlock(std::vector<std::complex<float>*, std::allocator<std::complex<float>*> >, unsigned int)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:233: undefined reference to `__imp_TF_GraphOperationByName'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:238: undefined reference to `__imp_TF_GraphOperationByName'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:244: undefined reference to `__imp_TF_NewStatus'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:244: undefined reference to `__imp_TF_DeleteStatus'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:245: undefined reference to `__imp_TF_SessionRun'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:249: undefined reference to `__imp_TF_GetCode'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/filter.cc:256: undefined reference to `__imp_TF_DeleteTensor'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `void spleeter::Copy<float>(TF_Tensor const*, std::vector<long long, std::allocator<long long> >, std::shared_ptr<spleeter::TFHandle<TF_Tensor> >)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:146: undefined reference to `__imp_TF_TensorData'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:147: undefined reference to `__imp_TF_TensorData'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `void spleeter::Copy<std::complex<float> >(TF_Tensor const*, std::vector<long long, std::allocator<long long> >, std::shared_ptr<spleeter::TFHandle<TF_Tensor> >)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:146: undefined reference to `__imp_TF_TensorData'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:147: undefined reference to `__imp_TF_TensorData'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj): in function `spleeter::internal::Adapter<std::complex<float> >::operator()(unsigned long long, unsigned long long, unsigned long long)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:33: undefined reference to `__imp_TF_TensorData'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(filter.cc.obj):D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.h:33: more undefined references to `__imp_TF_TensorData' follow
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/libspleeter_filter.a(tensor.cc.obj): in function `spleeter::TensorAlloc(TF_DataType, std::vector<long long, std::allocator<long long> >)':
D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.cc:34: undefined reference to `__imp_TF_NewTensor'
D:/wecode_build_tools/mingw/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Users/superkogito/Desktop/workspace/cpp/audio_framework_v2/plugin/my_plugins/ImGuiExample/external/spleeterpp/src/spleeter_filter/tensor.cc:36: undefined reference to `__imp_TF_DeleteTensor'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```


I tried to make some edits to the source code to fix this, as mentioned here under step 11 from https://medium.com/vitrox-publication/deep-learning-frameworks-tensorflow-build-from-source-on-windows-python-c-cpu-gpu-d3aa4d0772d8. 

> Some Bug Fixing Before Compiling :
> Before we start, we should edit the TensorFlow source code, because you will end up with linking errors (unresolved external symbols) as shown below if you follow the typical framework building steps.
> 
> 
> Session and SessionOptions symbols are not exported
> So what are these errors?
> 
> Dynamic-link library(DLL) can only expose a maximum of 60,000 symbols which is one of DLL limitation. As TensorFlow has more than 60,000 symbols, so we have to manually choose which symbols to be exposed if they are not exposed from TensorFlow by default.
> 
> According to the experience, in order to deploy a TensorFlow model, the TensorFlow Session and SessionOptions Classes are required to be exported. The steps include:


However, this did not build and caused the following log when running: `bazel build --config=opt tensorflow:tensorflow.dll`


```
D:\Users\superkogito\Downloads\tensorflow-2.9.0>bazel build --config=opt tensorflow:tensorflow.dll
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=162
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Options provided by the client:
  'build' options: --python_path=C:/ProgramData/chocolatey/bin/python.exe
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc:
  'build' options: --define framework_shared_object=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe --action_env PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages --python_path=C:/ProgramData/Anaconda3/python.exe --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions --define=override_eigen_strong_inline=true
INFO: Reading rc options for 'build' from d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils
INFO: Found applicable config definition build:short_logs in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:opt in file d:\users\superkogito\downloads\tensorflow-2.9.0\.tf_configure.bazelrc: --copt=/arch:AVX2 --host_copt=/arch:AVX2
INFO: Found applicable config definition build:windows in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --copt=/W0 --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --cxxopt=/std:c++14 --host_cxxopt=/std:c++14 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/experimental:preprocessor --host_copt=/experimental:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --verbose_failures --features=compiler_param_file --distinct_host_configuration=false
INFO: Found applicable config definition build:monolithic in file d:\users\superkogito\downloads\tensorflow-2.9.0\.bazelrc: --define framework_shared_object=false
INFO: Analyzed target //tensorflow:tensorflow.dll (257 packages loaded, 20074 targets configured).
INFO: Found 1 target...
ERROR: D:/users/superkogito/downloads/tensorflow-2.9.0/tensorflow/core/common_runtime/BUILD:1654:11: Compiling tensorflow/core/common_runtime/session_options.cc failed: (Exit 2): cl.exe failed: error executing command
  cd /d D:/users/superkogito/_bazel_superkogito/6mghjs3w/execroot/org_tensorflow
  SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt
    SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\;;C:\windows\system32;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
    SET PWD=/proc/self/cwd
    SET PYTHON_BIN_PATH=C:/ProgramData/Anaconda3/python.exe
    SET PYTHON_LIB_PATH=C:/ProgramData/Anaconda3/lib/site-packages
    SET RUNFILES_MANIFEST_ONLY=1
    SET TEMP=D:\Users\superkogito\AppData\Local\Temp
    SET TF2_BEHAVIOR=1
    SET TMP=D:\Users\superkogito\AppData\Local\Temp
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\cl.exe @bazel-out/x64_windows-opt/bin/tensorflow/core/common_runtime/_objs/session_options/session_options.obj.params
# Configuration: e6cdbc5f9ea1d062c246ab7d360b46f14ec764581d9f093d895b4b2995265b6c
# Execution platform: @local_execution_config_platform//:platform
cl : Command line warning D9035 : option 'experimental:preprocessor' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'Zc:preprocessor' instead of 'experimental:preprocessor'
.\tensorflow/core/public/session_options.h(28): error C2143: syntax error: missing ';' before '<class-head>'
.\tensorflow/core/public/session_options.h(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\tensorflow/core/public/session_options.h(60): error C3646: 'SessionOptions': unknown override specifier
.\tensorflow/core/public/session_options.h(60): error C2059: syntax error: '('
.\tensorflow/core/public/session_options.h(60): error C2238: unexpected token(s) preceding ';'
tensorflow/core/common_runtime/session_options.cc(22): error C2600: 'tensorflow::SessionOptions::SessionOptions': cannot define a compiler-generated special member function (must be declared in the class first)
Target //tensorflow:tensorflow.dll failed to build
INFO: Elapsed time: 5602.387s, Critical Path: 708.69s
INFO: 7456 processes: 2165 internal, 5291 local.
FAILED: Build did NOT complete successfully
```

Any help or advice regarding this is appreciated. Thank you.

### Standalone code to reproduce the issue

```shell
- Clone https://github.com/gvne/spleeterpp/tree/master
- Build with tensorflow 2.9.0 downloaded from here https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.0.zip
- Build Tensorflow 2.9.0 from source. 
- Try to rebuild https://github.com/gvne/spleeterpp/tree/master with the tensorflow built from source.
```


### Relevant log output

_No response_