Skip to content

net_zstd build failure #3106

@gcapodagAMD

Description

@gcapodagAMD

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

merge-250714

Custom code

Yes

OS platform and distribution

Linux Ubuntu 22.04

Mobile device

No response

Python version

3.10

Bazel version

8.4.1

GCC/compiler version

11.4.0

CUDA/cuDNN version

No response

GPU model and memory

gfx90a

Current behavior?

The build fails with this error:

ERROR: /home/sysadmin/.cache/bazel/_bazel_sysadmin/f84c89eaa02a68c63a7b150a8bf830ca/external/net_zstd/BUILD.bazel:15:11: Compiling decompress/huf_decompress_amd64.S failed: absolute path inclusion(s) found in rule '@@net_zstd//:zstdlib':
the source file 'decompress/huf_decompress_amd64.S' includes the following non-builtin files with absolute paths (if these are builtin files, make sure these paths are in your toolchain):
  '/opt/rocm-6.4.1/lib/llvm/lib/clang/19/include/cet.h'
Target //tensorflow/tools/pip_package:wheel failed to build
ERROR: /tmp/tensorflow-upstream/tensorflow/tools/pip_package/BUILD:292:9 Action tensorflow/tools/pip_package/wheel_house/tensorflow_rocm-2.20.0.dev20250716-cp310-cp310-linux_x86_64.whl failed: absolute path inclusion(s) found in rule '@@net_zstd//:zstdlib':
the source file 'decompress/huf_decompress_amd64.S' includes the following non-builtin files with absolute paths (if these are builtin files, make sure these paths are in your toolchain):
  '/opt/rocm-6.4.1/lib/llvm/lib/clang/19/include/cet.h'

Standalone code to reproduce the issue

Run this script: https://github.com/amd/HPCTrainingDock/blob/main/extras/scripts/tensorflow_setup.sh
like this to reproduce the issue:


git clone https://github.com/amd/HPCTrainingDock.git
cd HPCTrainingDock
vi extras/scripts/tensorflow_setup.sh (change (this)[https://github.com/amd/HPCTrainingDock/blob/8caed60a50b747f2383b7cc98517f9a261b31776/extras/scripts/tensorflow_setup.sh#L10] line to version merge-250714)
./bare_system/test_install.sh --rocm-version 6.4.1 --use-makefile 1 --distro ubuntu --distro-version 22.04 --amdgpu-gfxmodel gfx90a
make tensorflow


The `test_install.sh` will use Docker (or Podman) to get you on a bare Ubuntu 22.04 container and doing `make tensorflow` will install some base OS packages, ROCm 6.4.1 and then tensorflow with the above script.

You can also run the script directly with these options:

./extras/script/tensorflow_setup.sh --build-tensorflow 1 --rocm-version 6.4.1 --amdgpu-gfxmodel gfx90a --install-path (INSTALL PATH where you have write access) --module-path (MODULE FILE PATH where you have write access) --git-branch merge-250714

Relevant log output

Metadata

Metadata

Assignees

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