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

[Bazel CI] Bazel build error: Target '//tensorflow/tools/pip_package:build_pip_package' contains an error with Bazel@HEAD #65220

Open
sgowroji opened this issue Apr 8, 2024 · 1 comment
Assignees
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype:bazel Bazel related Build_Installation issues type:build/install Build and install issues

Comments

@sgowroji
Copy link

sgowroji commented Apr 8, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/2004#018eb729-e4a7-46e0-b68c-4b90fcac20cc

Platform: Ubuntu

Logs:

ERROR: �[0m/var/lib/buildkite-agent/builds/bk-docker-f8l9/bazel-org-repo-root/tensorflow/tensorflow/python/BUILD:465:27: //tensorflow/python:_pywrap_tfcompile.so: no such attribute 'licenses' in 'cc_shared_library' rule
ERROR: �[0m/var/lib/buildkite-agent/builds/bk-docker-f8l9/bazel-org-repo-root/tensorflow/tensorflow/python/BUILD:513:27: //tensorflow/python:_pywrap_py_exception_registry.so: no such attribute 'licenses' in 'cc_shared_library' rule
ERROR: �[0m/var/lib/buildkite-agent/builds/bk-docker-f8l9/bazel-org-repo-root/tensorflow/tensorflow/python/BUILD:1189:27: //tensorflow/python:_pywrap_tfe.so: no such attribute 'licenses' in 'cc_shared_library' rule
ERROR: �[0m/var/lib/buildkite-agent/builds/bk-docker-f8l9/bazel-org-repo-root/tensorflow/tensorflow/tools/pip_package/BUILD:255:10: Target '//tensorflow/python:distributed_framework_test_lib' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:build_pip_package'
ERROR: �[0mAnalysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed

Culprit:

Steps:

git clone https://github.com/tensorflow/tensorflow
git reset f12154def538a7093598c870be9dbb374b86bbe3  --hard
export USE_BAZEL_VERSION=3f9d80c35d88a280c2d53682f3d201b4733a3fff
bazel build //tensorflow/tools/pip_package:build_pip_package 

CC Greenteam @meteorcloudy

@sgowroji
Copy link
Author

/cc @learning-to-play,  @vam-google, @chsigg

@sushreebarsa sushreebarsa added stat:awaiting tensorflower Status - Awaiting response from tensorflower type:build/install Build and install issues subtype:bazel Bazel related Build_Installation issues labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype:bazel Bazel related Build_Installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants