tensorflow: Build failure - stablehlo "File name too long"

Click to expand!

Issue Type

Bug

Have you reproduced the bug with TF nightly?

Yes

Source

source

Tensorflow Version

git 1dce1ddd62b4d9f7434bffa347defe0ad286bfab Mar 26

Custom Code

No

OS Platform and Distribution

Linux Ubuntu 22.04.2 LTS

Mobile device

No response

Python version

3.10.6

Bazel version

5.3.0

GCC/Compiler version

11.3.0

CUDA/cuDNN version

No response

GPU model and memory

No response

Current Behaviour?

TF build fails due to an issue with stablehlo integration.

$ bazel build //tensorflow/tools/pip_package:build_pip_package


g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uday@polymage-gpu-laptop:~/csa/courses/e0255/2023/e0255-asst-2/tensorflow$ bazel build //tensorflow/tools/pip_package:build_pip_package
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=146
INFO: Reading rc options for 'build' from /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/uday/csa/courses/e0255/2023/e0255-asst-2/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 --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/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'build' from /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.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 /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --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/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Build options --copt and --linkopt have changed, discarding analysis cache.
INFO: Repository stablehlo instantiated at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: in <toplevel>
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:83:14: in _initialize_third_party
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/stablehlo/workspace.bzl:11:20: in repo
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>
INFO: Repository 'stablehlo' used the following cache hits instead of downloading the corresponding file.
 * Hash '1295d499727ed77e34f8c3c82f7fc68d95ca6044da82579ac9d51b510c5b2cd7' for https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip
If the definition of 'stablehlo' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'stablehlo':
   Traceback (most recent call last):
	File "/home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip to /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916: /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/stablehlo/testdata/vmap_dot_general_batch_dimensions_lhs_float32_8_4_3_3_4__rhs_float32_4_8_3_4_2__dimensionnumbers____4_3___3_2_____0_1___1_0_dynamic.mlir.0_9_0.bc (File name too long)
ERROR: /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: fetching _tf_http_archive rule //external:stablehlo: Traceback (most recent call last):
	File "/home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip to /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916: /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/stablehlo/testdata/vmap_dot_general_batch_dimensions_lhs_float32_8_4_3_3_4__rhs_float32_4_8_3_4_2__dimensionnumbers____4_3___3_2_____0_1___1_0_dynamic.mlir.0_9_0.bc (File name too long)
ERROR: /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: fetching _tf_http_archive rule //external:stablehlo: Traceback (most recent call last):
	File "/home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip to /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916: /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/stablehlo/testdata/vmap_dot_general_batch_dimensions_lhs_float32_8_4_3_3_4__rhs_float32_4_8_3_4_2__dimensionnumbers____4_3___3_2_____0_1___1_0_dynamic.mlir.0_9_0.bc (File name too long)
INFO: Repository icu instantiated at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: in <toplevel>
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:72:8: in _initialize_third_party
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/icu/workspace.bzl:8:20: in repo
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>
INFO: Repository go_sdk instantiated at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:23:14: in <toplevel>
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace0.bzl:135:20: in workspace
  /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:36:27: in grpc_extra_deps
  /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/io_bazel_rules_go/go/private/sdk.bzl:431:28: in go_register_toolchains
  /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/io_bazel_rules_go/go/private/sdk.bzl:130:21: in go_download_sdk
Repository rule _go_download_sdk defined at:
  /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/io_bazel_rules_go/go/private/sdk.bzl:117:35: in <toplevel>
INFO: Repository XNNPACK instantiated at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: in <toplevel>
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:144:20: in _tf_repositories
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>
INFO: Repository boringssl instantiated at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: in <toplevel>
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:972:21: in workspace
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:565:20: in _tf_repositories
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>
ERROR: /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/tools/pip_package/BUILD:192:10: //tensorflow/tools/pip_package:licenses depends on @stablehlo//:LICENSE in repository @stablehlo which failed to fetch. no such package '@stablehlo//': java.io.IOException: Error extracting /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip to /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916: /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/stablehlo/testdata/vmap_dot_general_batch_dimensions_lhs_float32_8_4_3_3_4__rhs_float32_4_8_3_4_2__dimensionnumbers____4_3___3_2_____0_1___1_0_dynamic.mlir.0_9_0.bc (File name too long)
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: 
INFO: Elapsed time: 1.345s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 4299 targets configured)
$ java --version
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)


### Standalone code to reproduce the issue

```shell
Clone official TF repo at 1dce1ddd62b4d9f7434bffa347defe0ad286bfab (Mar 26):

Use default configure:

$ bazel build //tensorflow/tools/pip_package:build_pip_package

Relevant log output

g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uday@polymage-gpu-laptop:~/csa/courses/e0255/2023/e0255-asst-2/tensorflow$ bazel build //tensorflow/tools/pip_package:build_pip_package
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=146
INFO: Reading rc options for 'build' from /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/uday/csa/courses/e0255/2023/e0255-asst-2/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 --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/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/lib/python3/dist-packages --python_path=/usr/bin/python3
INFO: Reading rc options for 'build' from /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.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 /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --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/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Build options --copt and --linkopt have changed, discarding analysis cache.
INFO: Repository stablehlo instantiated at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: in <toplevel>
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:965:28: in workspace
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/tensorflow/workspace2.bzl:83:14: in _initialize_third_party
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/stablehlo/workspace.bzl:11:20: in repo
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl:89:35: in <toplevel>
INFO: Repository 'stablehlo' used the following cache hits instead of downloading the corresponding file.
 * Hash '1295d499727ed77e34f8c3c82f7fc68d95ca6044da82579ac9d51b510c5b2cd7' for https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/stablehlo/archive/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip
If the definition of 'stablehlo' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'stablehlo':
   Traceback (most recent call last):
	File "/home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip to /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916: /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/stablehlo/testdata/vmap_dot_general_batch_dimensions_lhs_float32_8_4_3_3_4__rhs_float32_4_8_3_4_2__dimensionnumbers____4_3___3_2_____0_1___1_0_dynamic.mlir.0_9_0.bc (File name too long)
ERROR: /home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/WORKSPACE:15:14: fetching _tf_http_archive rule //external:stablehlo: Traceback (most recent call last):
	File "/home/uday/csa/courses/e0255/2023/e0255-asst-2/tensorflow/third_party/repo.bzl", line 73, column 33, in _tf_http_archive_impl
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916/ef7a111784a2a5574de0b1165e3bdfc5397dce5a.zip to /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/temp12753699981416543916: /home/uday/.cache/bazel/_bazel_uday/77f8878d03275bdd27457b5be533415a/external/stablehlo/stablehlo/testdata/vmap_dot_general_batch_dimensions_lhs_float32_8_4_3_3_4__rhs_float32_4_8_3_4_2__dimensionnumbers____4_3___3_2_____0_1___1_0_dynamic.mlir.0_9_0.bc (File name too long)
</details>

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (12 by maintainers)

Most upvoted comments

I ran into the same issue, the filename length is 146 char, which is larger than what cryptfs supports (143 chars). This fs is used at least by some linux distros when using an encrypted home directory. A simple workaround is to symlink $HOME/.cache/bazel to a directory on a standard ext4 partition, tensorflow should then build correctly.