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

ERROR: No toolchain found for cpu 'armeabi-v7a'. #5

Closed
alexweili opened this issue Aug 16, 2015 · 5 comments
Closed

ERROR: No toolchain found for cpu 'armeabi-v7a'. #5

alexweili opened this issue Aug 16, 2015 · 5 comments

Comments

@alexweili
Copy link

I encountered this during build:
bazel build examples/...:all
.................
ERROR: No toolchain found for cpu 'armeabi-v7a'.

I am building on x86, why do I need arm?

@jeremyje
Copy link

Workaround: Delete the tools/cpp directory.

I think I know what happened here. The //tools/cpp/... directory was copied from an older version of https://github.com/google/bazel/tree/master/tools/cpp. The copy went out of date.

Not sure what this impacts and if there were any patches applied to it.

@alexweili
Copy link
Author

Cool, I saw your other reply.

Can you show me how you configured this in .blazerc file? I think that it is needed to compile this correctly.

@jeremyje
Copy link

What I've done so far is a bit screwed up.

  1. I have a docker file with these run commands. Should work normally.

git clone --recursive https://github.com/google/bazel bazel
&& cd bazel/
&& ./compile.sh
&& ./output/bazel build //scripts:bazel-complete.bash
&& cp bazel-bin/scripts/bazel-complete.bash /etc/bash_completion.d
&& echo export PATH="$PATH:${PWD}/output/" >> /etc/bash.bashrc
&& ./output/bazel fetch //third_party/... //examples/... //src/...

git clone --recursive https://github.com/mzhaom/trunk.git bazel_trunk

  1. Delete the tools/cpp from the trunk.
  2. Create a new workspace where I'll put my code in. Copy the contents of the trunk/WORKSPACE into the new WORKSPACE file.
  3. ~/.bazelrc should have the trunk workspace in the path.
    Mine looks like:

cat ~/.bazelrc
build --package_path %workspace%:/home/jeremyje/development/trunk:/home/jeremyje/development/bazel/base_workspace
fetch --package_path %workspace%:/home/jeremyje/development/trunk:/home/jeremyje/development/bazel/base_workspace
query --package_path %workspace%:/home/jeremyje/development/trunk:/home/jeremyje/development/bazel/base_workspace

@alexweili
Copy link
Author

Thanks, this worked!

@mzhaom
Copy link
Member

mzhaom commented Aug 28, 2015

Thanks for the report and suggested fix! I integrated tools/cpp from bazel upstream, which should fix the issue now. The reason I kept another copy was I would like to extend the crosstool definition to cover other compilers like LRTE, which I'm working as another project.

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

3 participants