#93130·tensorflow

`../tensorflow/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h:19:10: error: 'ml_dtypes/include/float8.h' file not found [clang-diagnostic-error]`

Author: SwuduSusuwuCreated May 11, 2025Updated Sep 17, 2026
Labelsstat:awaiting responsetype:build/installstalesubtype: ubuntu/linuxcomp:core

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

No

Source

TensorFlow version

commit d92ed6014f19e396a16b980c4f8969a74e8ada3a (grafted, HEAD -> master, origin/master, origin/HEAD)

Custom code

Yes

OS platform and distribution

Local Termux on stock AOSP Arm64.

Mobile device

Google Pixel 6

Python version

Not applicable (C++)

Bazel version

Not applicable (not linker test, just compiler test)

GCC/compiler version

clang version 20.1.3

CUDA/cuDNN version

Not applicable (Arm64)

GPU model and memory

Not applicable (Arm64)

Current behavior?

In file included from ./cxx/ClassTensorFlowCns.hxx:16:
In file included from ../tensorflow/tensorflow/core/framework/tensor.h:27:
In file included from ../tensorflow/tensorflow/core/framework/allocator.h:26:
In file included from ../tensorflow/third_party/xla/xla/tsl/framework/allocator.h:26:
In file included from ../tensorflow/third_party/xla/xla/tsl/framework/numeric_types.h:22:
In file included from ../tensorflow/third_party/xla/xla/tsl/platform/types.h:22:
../tensorflow/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h:19:10: fatal error: 'ml_dtypes/include/float8.h' file not found
   19 | #include "ml_dtypes/include/float8.h"  // from @ml_dtypes_py
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Standalone code to reproduce the issue

git clone https://github.com/tensorflow/tensorflow.git; cd tensorflow && `clang++ -I../tensorflow/ -I../tensorflow/third_party/xla/ -I../tensorflow/third_party/xla/third_party/tsl/ -I../tensorflow/third_party/xla/third_party/py/ -I/data/data/com.termux/files/home/../usr/include/eigen3 ../tensorflow/tensorflow/core/framework/tensor.h
fatal: destination path 'tensorflow' already exists and is not an empty directory.
clang++: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated]
In file included from ../tensorflow/tensorflow/core/framework/tensor.h:27:
In file included from ../tensorflow/tensorflow/core/framework/allocator.h:26:
In file included from ../tensorflow/third_party/xla/xla/tsl/framework/allocator.h:26:
In file included from ../tensorflow/third_party/xla/xla/tsl/framework/numeric_types.h:22:
In file included from ../tensorflow/third_party/xla/xla/tsl/platform/types.h:22:
../tensorflow/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h:19:10: fatal error: 'ml_dtypes/include/float8.h' file not found
   19 | #include "ml_dtypes/include/float8.h"  // from @ml_dtypes_py
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Relevant log output

Local (Termux):

~ $ git clone https://github.com/SwuduSusuwu/SusuLib.git
fatal: destination path 'SusuLib' already exists and is not an empty directory.
~ $ cd SusuLib
~/SusuLib $ git switch preview
D       cxx/ClassTensorFlowCns.hxx
Already on 'preview'
Your branch is up to date with 'origin/preview'.
~/SusuLib $ ./build.sh
~/SusuLib $ ./build.sh
[Notice: (C) 2024 Swudu Susuwu, dual licenses: choose [GPLv2](./LICENSE_GPLv2) or [Apache 2](./LICENSE), allows all uses.]
[Warning: `git branch` is "experimental" (which is unstable & sets `-DSUSUWU_EXPERIMENTAL`); for production use, execute `git switch trunk`.]
[Warning: SUSUWU_DEPENDENCY_INCLUDE(): Package `libtensorflow` not found. To install, use `sudo apt install libtensorflow`]
[Notice: SUSUWU_DEPENDENCY_INCLUDE(): Found package `tensorflow`, FLAGS_USER will use `-F../tensorflow/`.]
[Notice: SUSUWU_DEPENDENCY_INCLUDE(): Found package `xla`, FLAGS_USER will use `-F../tensorflow/third_party/xla/`.]
[Notice: SUSUWU_DEPENDENCY_INCLUDE(): Found package `tsl`, FLAGS_USER will use `-F../tensorflow/third_party/xla/third_party/tsl/`.]
[Notice: SUSUWU_DEPENDENCY_INCLUDE(): Found package `ml_dtypes`, FLAGS_USER will use `-F../tensorflow/third_party/xla/third_party/py/`.]
[Notice: SUSUWU_DEPENDENCY_INCLUDE(): Found package `eigen`, FLAGS_USER will use `-F/data/data/com.termux/files/home/../usr/include/eigen3`.]
[Warning: SUSUWU_PRODUCTION_USE(): `git branch` is "preview"; for production use, use `git switch trunk`.]
[Notice: SUSUWU_PROCESS_RELEASE_DEBUG(): `./build.sh ` defaults to `./build.sh  --debug`.]
[Notice: SUSUWU_PROCESS_RELEASE_DEBUG(): `./build.sh  --debug` is slow (use `./build.sh  --release` to improve how fast `./${BINDIR}/${OUTPUT}` executes).]
[Notice: SUSUWU_SETUP_OBJDIR(): To redirect `clang++ -c ... -o "${OBJDIR}${OBJ}.o"` (which has `OBJDIR="./obj/"`), use `OBJDIR="<new-path>"` (where "<new-path>" is a directory which you choose).]
[Notice: SUSUWU_SETUP_BINDIR(): To redirect `clang++ ... -o "${BINDIR}${OUTPUT}"` (which has `BINDIR="./bin/"`), use `BINDIR="<new-path>"` (where "<new-path>" is a directory which you choose).]
In file included from ./cxx/ClassTensorFlowCns.hxx:16:
In file included from ../tensorflow/tensorflow/core/framework/tensor.h:27:
In file included from ../tensorflow/tensorflow/core/framework/allocator.h:26:
In file included from ../tensorflow/third_party/xla/xla/tsl/framework/allocator.h:26:
In file included from ../tensorflow/third_party/xla/xla/tsl/framework/numeric_types.h:22:
In file included from ../tensorflow/third_party/xla/xla/tsl/platform/types.h:22:
../tensorflow/third_party/xla/third_party/tsl/tsl/platform/ml_dtypes.h:19:10: fatal error: 'ml_dtypes/include/float8.h' file not found
   19 | #include "ml_dtypes/include/float8.h"  // from @ml_dtypes_py
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[Notice: `clang++  -g -Og -fno-omit-frame-pointer -std=c++11 -fsanitize=address -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment -DSUSUWU_EXPERIMENTAL -DSUSUWU_DEFAULT_BRANCH="trunk" -I../tensorflow/ -I../tensorflow/third_party/xla/ -I../tensorflow/third_party/xla/third_party/tsl/ -I../tensorflow/third_party/xla/third_party/py/ -I/data/data/com.termux/files/home/../usr/include/eigen3 -Wall -Wno-unused-function -Wno-unused-function -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wpedantic ./cxx/ClassTensorFlowCns.hxx` failed, will not enable `CXXFLAGS="${CXXFLAGS} -std=c++17 -DUSE_TENSORFLOW_CNS"` (skipped). If `libtensorflow` is installed, insert `-std=c++17 -DUSE_TENSORFLOW_CNS` into `./build.sh:FLAGS_USER`. To troubleshoot, use `cd ../tensorflow/ && ./configure`]
[Notice: SUSUWU_BUILD_CTAGS(): Was called with less than 2 params; will default to `SUSUWU_BUILD_CTAGS -R --exclude=.git/ --exclude=*.html --exclude=compile_commands.json .`.]
[Success: SUSUWU_BUILD_EXECUTABLE(): Reused "./bin/Susuwu.out" (5964408 bytes).]