-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Difference between CROSSTOOL and CROSSTOOL.tpl #2381
Comments
Hi @fieldtest, you almost definitely want to edit cc_configure.bzl and CROSSTOOL.tpl. I'm not sure CROSSTOOL is used for anything outside of tests. I'll take a look next week. |
Hi Thanks for your reply. To give some further background on my approach
https://github.com/fieldtest/bazel_example
bazel build --spawn_strategy=standalone --verbose_failures :hw on the other hand running bazel build --spawn_strategy=standalone --verbose_failures --cpu=armeabi-v7a :hw Hope this helps to clarify. I tried playing with the CROSSTOOL file but to no success. Thanks |
Hi @fieldtest, so you downloaded latest bazel, then updated cc_configure.bzl and CROSSTOOL.tpl to add armeabi-v7a toolchain, then compiled bazel, and you still see the error? You can see that the toolchain uses /bin/false instead of a compiler, so you want to fix that. Note that in order to use builtin auto-detection, you always have to recompile bazel. What you might find faster for debugging is to create your own CROSSTOOL or a repository similar to cc_configure.bzl. We have some instructions here: and there is a very similar issue being investigated over at: Let me know if you get stuck somewhere. |
@mhlopko are u in slack Tensorflow group? I need some help regarding TF Build, I am using bazel-0.3.2 from sources and getting following eror "ERROR: tensorflow/core/BUILD:853:1: undeclared inclusion(s) in rule '//tensorflow/core:lib_internal': |
Nope, but feel free to ask the question on StackOverflow, both Bazel and Tensorflow teams monitor StackOverflow and answer questions there. And you'll help building user knowledge base. |
@mhlopko did u get a chance to look into my issue? |
Nope, will eventually do once you post it to StackOverflow. But I would start by upgrading bazel, 0.3.2 is quite old. |
Hi Yes with latest Bazel version I am getting the error as ERROR: /tensorflow/tensorflow.bzl:528:19: name 'DATA_CFG' is not defined. |
This issue got fixed. |
The static crosstool will be removed by #8546, so the confusion will be gone :) |
Hi
What is the difference between /usr/local/src/bazel/tools/cpp/CROSSTOOL and /usr/local/src/bazel/tools/cpp/CROSSTOOL.tpl files ?
Which one should I modify to change my tool chain i.e to cross compile a solution building in bazel to another platform ?
Thanks
The text was updated successfully, but these errors were encountered: