Skip to content

jpeg.BUILD: Use --cpu instead of --android_cpu - #17508

Merged
gunan merged 1 commit into
tensorflow:masterfrom
meteorcloudy:fix_jpeg_config_setting
Mar 13, 2018
Merged

gunan merged 1 commit into
tensorflow:masterfrom
meteorcloudy:fix_jpeg_config_setting

Conversation

@meteorcloudy

@meteorcloudy meteorcloudy commented Mar 7, 2018 •

Copy link
Copy Markdown
Member
ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/70f524e03685b9df645342d13a051faa/external/jpeg/BUILD:126:12: Illegal ambiguous match on configurable attribute "deps" in @jpeg//:jpeg:
--
  | @jpeg//:k8
  | @jpeg//:armeabi-v7a

TF build is broken with Bazel@HEAD, see https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/141#ca77fce7-7ea1-4427-a49b-1ab1305f6bfb

Issue bazelbuild/bazel#4652

The reason is, we recently change default value of --android_cpu to armeabi-v7a. bazelbuild/bazel@fc30733

That results two config_setting enabled at the same time in jpeg.BUILD.

We should better use --cpu instead of --android_cpu to select for architecture.
@jart @gregestren
FYI, @buchgr

@meteorcloudy

Copy link
Copy Markdown
Member Author

@gunan Can you take a look or reassign to others?

@gunan

gunan commented Mar 11, 2018

Copy link
Copy Markdown
Contributor

Do we need to edit any existing android build configs?

@meteorcloudy

Copy link
Copy Markdown
Member Author

@angerson

Copy link
Copy Markdown
Contributor

Looks good to me. Bazel's config_setting rules don't actually change the way things are built -- they're a way to trigger a conditional, which then can affect anything that pays attention to config rules, like bazel.rc or select() rules.

AFAIK, we've always built by using --config= directly, so this change should be fine.

@Mukundan314

Copy link
Copy Markdown

Please merge this to other branches(r1.7, r1.6, r1.5) to fix #18450.

@gunan

gunan commented Apr 30, 2018

Copy link
Copy Markdown
Contributor

While it will be useful, it is not a priority for us as the earlier releases are done, and users of those would be using tags mostly. Merging this to branches would not get the benefits if we merged this without a release.

permutohedra pushed a commit to permutohedra/tensorflow that referenced this pull request Sep 25, 2018
(DBX note: This cherry-pick from upstream fixes building TF on newer versions of Bazel.)
copybara-service Bot pushed a commit that referenced this pull request Sep 24, 2024
The missing tag was making the dependency violation presubmit check fail.

Fixes #17508

PiperOrigin-RevId: 678087136
copybara-service Bot pushed a commit that referenced this pull request Sep 24, 2024
The missing tag was making the dependency violation presubmit check fail.

Fixes #17508

PiperOrigin-RevId: 678100814
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants