-
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
Constraints on GLIBC version #16976
Comments
Given that you can add any constraints you want to a custom platform, would you like the auto-generated host platform to contain a constraint for the glibc version of the host? If that is the case, the most maintainable solution would probably be to implement #8766 and then have someone provide this functionality via a Bzlmod module. In this way, Bazel itself wouldn't need to maintain logic to detect glibc versions and the community could contribute to it more easily. @kventinel Would this cover your needs? |
I don't think it should be built into Bazel; what @fmeum said could work. Adding @katre @gregestren for opinions; on the external deps team's side, I think we would probably just close this. |
Agreed. |
Probably not. I want to build tensorflow but change compiler version (or some constrain for compiler) to use glibc not greater than 2.25, because of constraints on cross-compile device. |
That seems possible to do with what Bazel provides today:
Step 2 is probably quite a bit of work, but I don't think Bazel could help much with it. @kventinel Is this going into the right direction? What exactly do you think Bazel should help you with that it can't do today? |
Is glibc version really a fundamental constraint for a platform? Can a single machine ever have multiple glibc versions? Is it possible to build code that would run properly on machines with different glibc versions? |
Also, just to note: constraint values are good for binary features, or enum-style features, but a bad fit for numeric data (like version numbers). Would a build setting be better suited here? You can also use build settings to choose toolchains (using the |
Just want to ask because I've been curious about this for a while: Why are build settings better for numeric features when it comes to toolchain selection? Don't |
For toolchain resolution specifically, you're right: you can't write a I have a dream of someday opening up the config setting system to allow custom drop-in replacements for |
Description of the feature request:
Some times I need some contraints on GLIBC version for cross-platforms build, but currently I think it's impossible to make.
What underlying problem are you trying to solve with this feature?
No response
Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: