Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build tensorflow-text 2.17.0 on Jetson Orin AGX: "The repository '@local_config_cuda' could not be resolved" #1360

Open
SteffenBauer opened this issue Jan 31, 2025 · 1 comment

Comments

@SteffenBauer
Copy link

SteffenBauer commented Jan 31, 2025

I want to build tensorflow-text from source on a Jetson Orin AGX platform. Using v2.17.0, because tensorflow 2.18 is not yet available for that platform.

Environment:

tensorflow 2.17.0 compiled from source, successfully and works with Keras example scripts.
bazel 6.5.0 for ARM64
CUDA 12.6 CUDNN 9.3,, both provided by Jetson Linux

Trying to build tensorflow-text with ./oss_scripts/run_build.sh, but breaks with The repository '@local_config_cuda' could not be resolved

Compilation of tensorflow-text for earlier versions (v2.16) worked.

I also tried to uninstall the locally compiled tensorflow. Build of tensorflow-text then loads from pypi and installs tensorflow-v2.17.0. Build breaks with exactly the same error.

Relevant snippet from build log:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    85  100    85    0     0     66      0  0:00:01  0:00:01 --:--:--    66
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 54128  100 54128    0     0   172k      0 --:--:-- --:--:-- --:--:--  172k
TF_VERSION=
$TEST_TMPDIR defined: output root default is '/tmp/bazel_cache/' and max_idle_secs default is '15'.
Starting local Bazel server and connecting to it...
WARNING: ignoring LD_PRELOAD in environment.
INFO: Reading 'startup' options from /tmp/workspace/text/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=173
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited '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 --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: Found applicable config definition build:short_logs in file /tmp/workspace/text/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tmp/workspace/text/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /tmp/workspace/text/.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 /tmp/workspace/text/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
DEBUG: Rule 'org_tensorflow' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "bec9d55ab89a4fa45a1a26d6cf1c3909208e8b5b3ead8dc87499646846d88ef7"
DEBUG: Repository org_tensorflow instantiated at:
  /tmp/workspace/text/WORKSPACE:57:13: in <toplevel>
Repository rule http_archive defined at:
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/py/python_repo.bzl:107:10: Using hermetic Python 3.10
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:132:14: 
Warning: skipping import of repository 'icu' because it already exists.
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:132:14: 
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Analyzed target //oss_scripts/pip_package:requirements.update (79 packages loaded, 3927 targets configured).
INFO: Found 1 target...
Target //oss_scripts/pip_package:requirements.update up-to-date:
  bazel-bin/oss_scripts/pip_package/_requirements.update
INFO: Elapsed time: 51.251s, Critical Path: 0.30s
INFO: 7 processes: 7 internal.
INFO: Build completed successfully, 7 total actions
INFO: Running command line: bazel-bin/oss_scripts/pip_package/requirements.update release_or_nightly/requirements.in org_tensorflow_text/oss_scripts/pip_package/requirements_lock_3_10.txt //oss_scripts/pip_package:requirements.update '--resolver=backtracking' --allow-unsafe --generate-hashes --allow-unsafe --build-isolation --rebuild --upgrade
Checking org_tensorflow_text/oss_scripts/pip_package/requirements_lock_3_10.txt
WARNING: --strip-extras is becoming the default in version 8.0.0. To silence this warning, either use --strip-extras to opt into the new default or use --no-strip-extras to retain the existing behavior.

[...]

$TEST_TMPDIR defined: output root default is '/tmp/bazel_cache/' and max_idle_secs default is '15'.
Starting local Bazel server and connecting to it...
WARNING: ignoring LD_PRELOAD in environment.
INFO: Reading 'startup' options from /tmp/workspace/text/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited '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 --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: Found applicable config definition build:short_logs in file /tmp/workspace/text/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tmp/workspace/text/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /tmp/workspace/text/.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 /tmp/workspace/text/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
Loading: 
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/py/python_repo.bzl:107:10: Using hermetic Python 3.10
Loading: 
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:132:14: 
Warning: skipping import of repository 'icu' because it already exists.
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:132:14: 
Warning: skipping import of repository 'pybind11' because it already exists.
Loading: 
Loading: 0 packages loaded
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (1 packages loaded, 0 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (51 packages loaded, 201 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (62 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (62 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (63 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (63 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (70 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (75 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (83 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (84 packages loaded, 2952 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (85 packages loaded, 16649 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (85 packages loaded, 16649 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (96 packages loaded, 17756 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (97 packages loaded, 17834 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (99 packages loaded, 18264 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (100 packages loaded, 18264 targets configured)
INFO: Analyzed target //oss_scripts/pip_package:tensorflow_build_info (100 packages loaded, 18358 targets configured).
INFO: Found 1 target...
[0 / 4] [Prepa] Expanding template oss_scripts/pip_package/tensorflow_build_info
[4 / 4] checking cached actions
Target //oss_scripts/pip_package:tensorflow_build_info up-to-date:
  bazel-bin/oss_scripts/pip_package/tensorflow_build_info
INFO: Elapsed time: 43.590s, Critical Path: 1.13s
INFO: 4 processes: 4 internal.
INFO: Build completed successfully, 4 total actions
INFO: Running command line: bazel-bin/oss_scripts/pip_package/tensorflow_build_info abi
$TEST_TMPDIR defined: output root default is '/tmp/bazel_cache/' and max_idle_secs default is '15'.
INFO: Reading 'startup' options from /tmp/workspace/text/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited '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 --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 --action_env TF_CXX11_ABI_FLAG=1
INFO: Found applicable config definition build:short_logs in file /tmp/workspace/text/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tmp/workspace/text/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /tmp/workspace/text/.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 /tmp/workspace/text/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
Loading: 
Loading: 
Loading: 0 packages loaded
INFO: Build option --action_env has changed, discarding analysis cache.
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (0 packages loaded, 0 targets configured)
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (62 packages loaded, 2952 targets configured)
INFO: Analyzed target //oss_scripts/pip_package:tensorflow_build_info (99 packages loaded, 18358 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
Target //oss_scripts/pip_package:tensorflow_build_info up-to-date:
  bazel-bin/oss_scripts/pip_package/tensorflow_build_info
INFO: Elapsed time: 5.236s, Critical Path: 0.68s
INFO: 2 processes: 2 internal.
INFO: Build completed successfully, 2 total actions
INFO: Running command line: bazel-bin/oss_scripts/pip_package/tensorflow_build_info version
Updating setup.nightly.py to version 2.18.0
Updating __init__.py to version 2.18.0
Querying commit SHA
$TEST_TMPDIR defined: output root default is '/tmp/bazel_cache/' and max_idle_secs default is '15'.
INFO: Reading 'startup' options from /tmp/workspace/text/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited '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 --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 --action_env TF_CXX11_ABI_FLAG=1
INFO: Found applicable config definition build:short_logs in file /tmp/workspace/text/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tmp/workspace/text/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /tmp/workspace/text/.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 /tmp/workspace/text/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
Loading: 
Loading: 
Loading: 0 packages loaded
Analyzing: target //oss_scripts/pip_package:tensorflow_build_info (0 packages loaded, 0 targets configured)
INFO: Analyzed target //oss_scripts/pip_package:tensorflow_build_info (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
Target //oss_scripts/pip_package:tensorflow_build_info up-to-date:
  bazel-bin/oss_scripts/pip_package/tensorflow_build_info
INFO: Elapsed time: 0.637s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/oss_scripts/pip_package/tensorflow_build_info git_version
Found tensorflow commit sha: 6550e4bd802
Updating WORKSPACE file to use TensorFlow commit 6550e4bd80223cdb8be6c3afd1f81e86a4d433c3
$TEST_TMPDIR defined: output root default is '/tmp/bazel_cache/' and max_idle_secs default is '15'.
INFO: Reading 'startup' options from /tmp/workspace/text/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=173
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'run' from /tmp/workspace/text/.bazelrc:
  Inherited '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 --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 --action_env TF_CXX11_ABI_FLAG=1
INFO: Found applicable config definition build:short_logs in file /tmp/workspace/text/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tmp/workspace/text/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /tmp/workspace/text/.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 /tmp/workspace/text/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/py/python_repo.bzl:107:10: Using hermetic Python 3.10
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:132:14: 
Warning: skipping import of repository 'icu' because it already exists.
DEBUG: /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:132:14: 
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Build option --enable_runfiles has changed, discarding analysis cache.
INFO: Repository build_bazel_rules_android instantiated at:
  /tmp/workspace/text/WORKSPACE:133:14: in <toplevel>
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/tensorflow/workspace2.bzl:946:21: in workspace
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/tensorflow/workspace2.bzl:727:20: in _tf_repositories
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/third_party/repo.bzl:89:35: in <toplevel>
INFO: Repository rules_java instantiated at:
  /tmp/workspace/text/WORKSPACE:137:14: in <toplevel>
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/tensorflow/workspace0.bzl:135:20: in workspace
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:29:18: in grpc_extra_deps
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/com_google_protobuf/protobuf_deps.bzl:68:24: in protobuf_deps
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/com_google_protobuf/protobuf_deps.bzl:19:17: in _github_archive
Repository rule http_archive defined at:
  /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: /tmp/workspace/text/oss_scripts/pip_package/BUILD:27:10: error loading package 'tensorflow_text': at /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/tensorflow/lite/build_def.bzl:4:6: at /tmp/bazel_cache/_bazel_steffen/cf43a7396b71fa8084cec7d6db462663/external/org_tensorflow/tensorflow/tensorflow.bzl:13:5: Unable to find package for @local_config_cuda//cuda:build_defs.bzl: The repository '@local_config_cuda' could not be resolved: Repository '@local_config_cuda' is not defined. and referenced by '//oss_scripts/pip_package:build_pip_package'
ERROR: Analysis of target '//oss_scripts/pip_package:build_pip_package' failed; build aborted: Analysis failed
INFO: Elapsed time: 3.200s
INFO: 0 processes.
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (5 packages loaded, 8 targets configured)
    currently loading: tensorflow_text
    Fetching repository @local_config_tensorrt; Restarting.
    Fetching repository @local_config_rocm; Restarting.
    Fetching repository @local_config_remote_execution; Restarting.
    Fetching https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_android/archive/v0.1.1.zip
    Fetching https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.zip
@SteffenBauer
Copy link
Author

Update: I just right now managed to compile Tensorflow V2.18.0 successfully for the Jetson Orin platform.
With this locally build tensorflow v2.18.0 version, tensorflow-text 2.18.1 builds and installs without problems.

So the issue seems to be something in V2.17.0 specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant