-
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
cross compilation error when import both c toolchain and rules_go #12859
Comments
cc @rmohr |
Here is some update for this issue.
|
@katre - at a super-quick glance, does this look like the actual toolchain is missing? Which group seems best to route this to? |
This is an interaction between So, to fix your issue, you need to do the following:
I don't know who is behind coral-crosstool, but the work they need to do isn't difficult, and is very similar to the current This is not a Bazel failure, per se. |
Looking further, looks like coral is already writing |
Thanks @katre , the explanation is pretty clear. I will give it a try and write down solution here in case other guys meet same problem and look for solution. Then I will close this issue. |
Closing on staleness. |
Description of the problem / feature request:
I wirte a test case for cross compile C file for ARM64 on x86_64 and it works well.
However After I put rules go in WORKSPACE, and build the C file again.
It shows
Following is my WORKSPACE and .bazelrc
WORKSPACE
.bazelrc
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Following https://github.com/google-coral/crosstool to apply cross compile toolchain for C/C++ on x86
Following https://github.com/bazelbuild/rules_go to add rule_go into WORKSPACE
Use bazel to build a c file.
What operating system are you running Bazel on?
Ubuntu
Linux ubuntu 5.9.0+ #5 SMP Thu Nov 12 07:40:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
What's the output of
bazel info release
?release 3.7.2
Have you found anything relevant by searching the web?
There are some discuss for same issue in following link, but no answer in it.
bazel-contrib/rules_go#2089
The text was updated successfully, but these errors were encountered: