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

Executing genrule @jpeg_archive//:configure failed: bash failed: error executing command #665

Closed
campuslifeceo opened this issue Dec 1, 2015 · 3 comments

Comments

@campuslifeceo
Copy link

bazel build -c opt //tensorflow/cc:tutorials_example_trainer --verbose_failures

INFO: Found 1 target...
INFO: From Executing genrule @jpeg_archive//:configure [for host]:
unshare failed with EINVAL even after 101 tries, giving up.
ERROR: /root/.cache/bazel/_bazel_root/73f6290c46c3f436a04f635e253824f5/external/jpeg_archive/BUILD:67:1: Executing genrule @jpeg_archive//:configure failed: bash failed: error executing command
(cd /root/.cache/bazel/_bazel_root/73f6290c46c3f436a04f635e253824f5/tensorflow &&
exec env -
PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/root/bin
/bin/bash -c 'source tools/genrule/genrule-setup.sh; pushd external/jpeg_archive/jpeg-9a; workdir=$(mktemp -d -t tmp.XXXXXXXXXX); cp -a * $workdir; pushd $workdir; ./configure; popd; popd; cp $workdir/jconfig.h bazel-out/host/genfiles/external/jpeg_archive/jpeg-9a; rm -rf $workdir;'): bash failed: error executing command
(cd /root/.cache/bazel/_bazel_root/73f6290c46c3f436a04f635e253824f5/tensorflow &&
exec env -
PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/root/bin
/bin/bash -c 'source tools/genrule/genrule-setup.sh; pushd external/jpeg_archive/jpeg-9a; workdir=$(mktemp -d -t tmp.XXXXXXXXXX); cp -a * $workdir; pushd $workdir; ./configure; popd; popd; cp $workdir/jconfig.h bazel-out/host/genfiles/external/jpeg_archive/jpeg-9a; rm -rf $workdir;').
Target //tensorflow/cc:tutorials_example_trainer failed to build
INFO: Elapsed time: 23.353s, Critical Path: 22.21s

@damienmg
Copy link
Contributor

damienmg commented Dec 1, 2015

OS?
bazel version?
Did you tried with --spawn_strategy=standalone --genrule_strategy=standalone?

@luong-vinh
Copy link

I use Ubuntu 14.04 and bazel 0.1.1. I got the same error when building the pip package:
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

I added the option "--genrule_strategy=standalone" and it worked again now. I didn't try the option "--spawn_strategy=standalone" (they're the same?). Thanks a lot for the help.

@damienmg
Copy link
Contributor

damienmg commented Dec 2, 2015

genrule_strategy only controls genrule targets whereas spawn_strategy controls other build (like cc builds)

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

No branches or pull requests

3 participants