Skip to content

failed: undeclared inclusion(s) in rule '//tensorflow/core/grappler:devices': this rule is missing dependency declarations for the following files included by 'tensorflow/core/grappler/devices.cc' #3113

@0xra0

Description

@0xra0

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

tf 2.19

Custom code

No

OS platform and distribution

Void Linux

Mobile device

No response

Python version

3.10

Bazel version

6.5.0

GCC/compiler version

15.2.0

CUDA/cuDNN version

12.6.1 9.4.0

GPU model and memory

rx 6800 16 gb

Current behavior?

I get an error that does not allow me to compile Tensorflow 2.19
rocm 6.2.0
llvm 18.1.8

Standalone code to reproduce the issue

git clone https://github.com/tensorflow/tensorflow.git -b v2.19.0 
cd tensorflow 
wget https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel_nojdk-6.5.0-linux-x86_64 
install -Dm755 bazel_nojdk-6.5.0-linux-x86_64 bazel/bazel 
export PATH="$PWD/bazel:$PATH" 
export CLANG_COMPILER_PATH=/usr/bin/clang-18
export PYTHON_BIN_PATH=/home/home/anaconda3/envs/tf_rocm/bin/python3
export TF_CUDA_CLANG=0
export TF_CUDA_VERSION=0
export TF_CUDNN_VERSION=0
export TF_NCCL_VERSION=0
export TF_DOWNLOAD_CLANG=0
export TF_ENABLE_XLA=1
export TF_NEED_CUDA=0
export TF_NEED_CLANG=1
export TF_NEED_OPENCL_SYCL=0
export TF_NEED_ROCM=1
export TF_NEED_TENSORRT=0
export TF_SET_ANDROID_WORKSPACE=0
export TF_PYTHON_VERSION=3.10
export TF_SYSTEM_LIBS="curl,cython,gif,icu,libjpeg_turbo,nasm,png,zlib"
export USE_DEFAULT_PYTHON_LIB_PATH=1
export HERMETIC_CUDA_VERSION=12.6.1
export HERMETIC_CUDNN_VERSION=9.4.0
export CC_OPT_FLAGS="-march=x86-64"
./configure
bazel build --config=opt --verbose_failures --config=verbose_logs --config=rocm --config=nonccl --jobs=12 //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow

Relevant log output

ERROR: /mnt/ssd/tensorflow-upstream/tensorflow/core/grappler/BUILD:75:16: Compiling tensorflow/core/grappler/devices.cc [for tool] failed: undeclared inclusion(s) in rule '//tensorflow/core/grappler:devices':
this rule is missing dependency declarations for the following files included by 'tensorflow/core/grappler/devices.cc':
  'bazel-out/k8-opt-exec-50AE0418/bin/external/local_xla/xla/stream_executor/cuda/cuda_compute_capability.pb.h'
  'bazel-out/k8-opt-exec-50AE0418/bin/external/local_xla/xla/stream_executor/device_description.pb.h'
  'bazel-out/k8-opt-exec-50AE0418/bin/external/local_xla/xla/autotune_results.pb.h'
  'bazel-out/k8-opt-exec-50AE0418/bin/external/local_xla/xla/autotuning.pb.h'
  'bazel-out/k8-opt-exec-50AE0418/bin/external/local_xla/xla/tsl/protobuf/dnn.pb.h'
Target //tensorflow/tools/pip_package:wheel failed to build
INFO: Elapsed time: 162.692s, Critical Path: 19.07s
INFO: 39 processes: 14 internal, 25 local.
FAILED: Build did NOT complete successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions