You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bazel HEAD breaks Tensorflow and tensorflow/serving. #4652
This error only happens with Bazel from head (2a2aa7a). Works with 10.1.
ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/e276c88c2550e615b3487b1506ef1c36/external/jpeg/BUILD:126:12: Illegal ambiguous match on configurable attribute "deps" in @jpeg//:jpeg:
--
| [2018-02-18T17:53:11Z] @jpeg//:armeabi-v7a
| [2018-02-18T17:53:11Z] @jpeg//:k8
| [2018-02-18T17:53:11Z] Multiple matches are not allowed unless one is unambiguously more specialized.
changed the title [-]Bazel head breaks tensorflow and tensorflow serving.[/-][+]Bazel HEAD breaks Tensorflow and tensorflow/serving.[/+]on Feb 18, 2018
I don't know specifically what's going on, but since @jpeg//:k8 and @jpeg//:armeabi-v7a trigger on --cpu and --android_cpu respectively, it's perfectly easy to trigger both at the same time, producing the above error:
As for why this only affects Bazel at head, this could easily be related to changes in Android rule configuration transition logic. Will dig in more...
@buchgr: how important is it that @jpeg://armeabi-v7a triggers on android_cpu? The relationship between android_cpu and cpu is subtle and confusing, but most of the time when you want to trigger an architecture-dependent library you're better off using cpu.
Is there someone on Tensorflow who can consider this?
O had the same problem while compiling TF as a shared library: bazel build //tensorflow:libtensorflow.so --cpu=k8
WARNING: /home/bardo91/.cache/bazel/_bazel_bardo91/650966360851c5a6b9fcb8e658f1efec/external/protobuf_archive/WORKSPACE:1: Workspace name in /home/bardo91/.cache/bazel/_bazel_bardo91/650966360851c5a6b9fcb8e658f1efec/external/protobuf_archive/WORKSPACE (@com_google_protobuf) does not match the name given in the repository's definition (@protobuf_archive); this will cause a build error in future versions
ERROR: /home/bardo91/.cache/bazel/_bazel_bardo91/650966360851c5a6b9fcb8e658f1efec/external/jpeg/BUILD:415:11: Illegal ambiguous match on configurable attribute "cmd" in @jpeg//:configure:
@jpeg//:k8
@jpeg//:armeabi-v7a
Multiple matches are not allowed unless one is unambiguously more specialized.
ERROR: Analysis of target '//tensorflow:libtensorflow.so' failed; build aborted:
/home/bardo91/.cache/bazel/_bazel_bardo91/650966360851c5a6b9fcb8e658f1efec/external/jpeg/BUILD:415:11: Illegal ambiguous match on configurable attribute "cmd" in @jpeg//:configure:
@jpeg//:k8
@jpeg//:armeabi-v7a
Multiple matches are not allowed unless one is unambiguously more specialized.
INFO: Elapsed time: 0.926s
FAILED: Build did NOT complete successfully (25 packages loaded)
I removed all the references of "armeabi-v7a" in the file thirdparty/jpeg/jpeg.BUILD and now it seems to work, but I am not quite sure how bazel works. Is it a bug?
Activity
[-]Bazel head breaks tensorflow and tensorflow serving.[/-][+]Bazel HEAD breaks Tensorflow and tensorflow/serving.[/+]gregestren commentedon Feb 20, 2018
I don't know specifically what's going on, but since @jpeg//:k8 and @jpeg//:armeabi-v7a trigger on
--cpuand--android_cpurespectively, it's perfectly easy to trigger both at the same time, producing the above error:As for why this only affects Bazel at head, this could easily be related to changes in Android rule configuration transition logic. Will dig in more...
katre commentedon Feb 20, 2018
Marking as a release blocker while @gregestren checks for the root cause. Might need to cherry-pick this into #3959.
gregestren commentedon Feb 20, 2018
This is due to fc30733, which changes the default value of
--android_cputoarmeabi-v7a.@katre found a minimal repro:
@buchgr: how important is it that @jpeg://armeabi-v7a triggers on
android_cpu? The relationship betweenandroid_cpuandcpuis subtle and confusing, but most of the time when you want to trigger an architecture-dependent library you're better off usingcpu.Is there someone on Tensorflow who can consider this?
7 remaining items
buchgr commentedon Mar 7, 2018
The error is still happening: https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/141#82dedeac-aa58-46f9-99bf-d03d8da5a03e
xingao267 commentedon Mar 19, 2018
We are seeing this error in our tensorflow remote tests using Bazel 0.12.0rc1 or HEAD. It is ok with Bazel 0.11.1.
https://sponge.corp.google.com/target?id=b099f31b-f2ac-40a5-ba50-88503ffae0f7&target=alphasource-toolchains%2Fnightly%2Fremotebuild-test%2Ftensorflow-host_xenial-exec_debian8-clang-bazel_0120&searchFor=
and here https://kokoro.corp.google.com/job/alphasource-toolchains/job/nightly/job/remotebuild-test/ (search tensorflow)
meteorcloudy commentedon Mar 20, 2018
@xingao267 Are you building TensorFlow@HEAD, tensorflow/tensorflow#17508 should have fixed the problem.
xingao267 commentedon Mar 20, 2018
@meteorcloudy Thanks for the pointer. Indeed, we are building TF at a commit before the fix.
lfpino commentedon Mar 26, 2018
This is still happening according to https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/177#10f9cdaa-75bc-416a-b635-633153fa1e8b, @meteorcloudy can you please follow up?
meteorcloudy commentedon Mar 27, 2018
Sure, filed an issue to TensorFlow_serving, following up at tensorflow/serving#825
Bardo91 commentedon Apr 23, 2018
O had the same problem while compiling TF as a shared library:
bazel build //tensorflow:libtensorflow.so --cpu=k8I removed all the references of "armeabi-v7a" in the file thirdparty/jpeg/jpeg.BUILD and now it seems to work, but I am not quite sure how bazel works. Is it a bug?