Build error with Clang 16
Hi @zamazan4ik ,

Thanks for reporting.I have to setup required environment and then will try to replicate the issue and let you know. Thanks Just to note - the issue can be easily fixed by adding the missing `cstdint` header and using `std::uint64_t` and `std::size_t` types (I did just this on my local TF copy). Hi @zamazan4ik ,

If you are willing to contribute please feel free to create a Pull request. Thanks! had the same issue installing 2.11.1 and 2.12.1 (only ones I tested). the solution was to add `#include <cstdint>` to [tensorflow/tsl/lib/io/cache.h](https://github.com/tensorflow/tensorflow/pull/61503/files#diff-6e5525fc067db8964fa1cccbb0b8d96523399d9afde4c023bbceda5ad15f7126) as outlined in the merged PR just above this post

had to also do this here: tensorflow/lite/kernels/internal/spectrogram.cc
### Issue type

Build/Install

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

Yes

### Source

source

### TensorFlow version

master branch

### Custom code

No

### OS platform and distribution

Fedora 38

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

Automatically chosen via Bazelisk

### GCC/compiler version

clang version 16.0.5 (Fedora 16.0.5-1.fc38)

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Cannot build `tfcompile` from the sources on the current master with Clang 16.0.5 (from Fedora repos).

### Standalone code to reproduce the issue

```shell
* Do all instructions accordingly to https://www.tensorflow.org/install/source
* Configure without CUDA, rocM, etc but with `usr/bin/clang`
* Run `bazelisk build tensorflow/compiler/aot:tfcompile`
```


### Relevant log output

```shell
During the build, I get the following error:

bazelisk build tensorflow/compiler/aot:tfcompile


INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=183
INFO: Reading rc options for 'build' from /home/zamazan4ik/open_source/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/zamazan4ik/open_source/tensorflow/.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 --features=-force_no_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 /home/zamazan4ik/open_source/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/home/zamazan4ik/open_source/tensorflow/release_env/bin/python3 --action_env PYTHON_LIB_PATH=/home/zamazan4ik/open_source/tensorflow/release_env/lib/python3.11/site-packages --python_path=/home/zamazan4ik/open_source/tensorflow/release_env/bin/python3 --action_env CLANG_COMPILER_PATH=/usr/bin/clang-16 --repo_env=CC=/usr/bin/clang-16 --repo_env=BAZEL_COMPILER=/usr/bin/clang-16 --copt=-Wno-gnu-offsetof-extensions
INFO: Reading rc options for 'build' from /home/zamazan4ik/open_source/tensorflow/.bazelrc:
  'build' options: --deleted_packages=tensorflow/core/tfrt/stubs,tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,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/mlrt,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/compiler/mlir/tfrt/transforms/mlrt,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/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,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,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python,tensorflow/core/tfrt/saved_model/utils
INFO: Found applicable config definition build:short_logs in file /home/zamazan4ik/open_source/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/zamazan4ik/open_source/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /home/zamazan4ik/open_source/tensorflow/.bazelrc: --define=build_with_onednn_v2=true --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /home/zamazan4ik/open_source/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
DEBUG: /home/zamazan4ik/open_source/tensorflow/tensorflow/tools/toolchains/python/python_repo.bzl:21:14:
TF_PYTHON_VERSION variable was not set correctly, using default version. 3.10 Python
will be used.

To set Python version, run
export TF_PYTHON_VERSION=3.9
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/b971ac5250ea8de900eae9f95e06548d14cd95fe.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/re2/archive/03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/41bad512515d609ccd3896d74bf697e7d456e1d3.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/c00d7ca810e93780bd0c8ee4eea28f4f2ea4bcdc.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Analyzed target //tensorflow/compiler/aot:tfcompile (332 packages loaded, 24183 targets configured).
INFO: Found 1 target...
ERROR: /home/zamazan4ik/open_source/tensorflow/tensorflow/tsl/lib/io/BUILD:205:11: Compiling tensorflow/tsl/lib/io/cache.cc [for tool] failed: (Exit 1): clang-16 failed: error executing command (from target //tensorflow/tsl/lib/io:cache) /usr/bin/clang-16 -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 ... (remaining 66 arguments skipped)
In file included from tensorflow/tsl/lib/io/cache.cc:16:
./tensorflow/tsl/lib/io/cache.h:99:11: error: unknown type name 'uint64_t'
  virtual uint64_t NewId() = 0;
          ^
tensorflow/tsl/lib/io/cache.cc:391:20: error: only virtual member functions can be marked 'override'
  uint64_t NewId() override {
                   ^~~~~~~~~
2 errors generated.
Target //tensorflow/compiler/aot:tfcompile failed to build
```
```
