-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Bug]: Compilation failure due to missing bazel platforms support #1573
Comments
I don't doubt that something doesn't work. Can you give us an example command? |
See my steps in f0rmiga/gcc-toolchain#155 |
To reproduce, use the cross compiler from aspect-build gcc-toolchain which uses the new bazel platforms.
You should see the errors because the cpu type was not properly selected. |
+1 for this, the problem is in
if using platforms this should be written:
|
The proposed solution doesn't support MSVC. It makes the assumption that all compilers for that CPU support the GCC-style flags. |
The correct solution is to use the settings in this file instead of OS settings (plus |
Yes, that is part of the solution. How do I get the cross product of compiler and cpu? |
One option would be to use skylib's selects.config_setting_group to define selectable targets for each combination in the cross product. |
Yeah, nobody can build absl-cpp with a recent Bazel without this. And nobody could for quite a while. Is this thing even alive? |
Describe the issue
bazel is migrating to use the new "platforms" to support multi architectures: https://bazel.build/concepts/platforms
As more and more people start to use the new bazel and the platforms rules, we will see more compilation errors such as:
#1210
#1227
Can abseil update to support that?
Steps to reproduce the problem
Use bazel "platforms" to cross compile for non-x86 target, you will see the errors.
What version of Abseil are you using?
latest as of Nov 19, 2023.
What operating system and version are you using?
Host Debian 12 am64, target arm64.
What compiler and version are you using?
gcc cross compiler.
What build system are you using?
bazel 6.4.0
Additional context
No response
The text was updated successfully, but these errors were encountered: