-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
New package: bazel-3.5.0 #24978
New package: bazel-3.5.0 #24978
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you show the errors you get when trying to cross compile / compile on other platforms? Their website implies that the bootstrap generates a completely arch independent jar, so I don't think there should be any issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look at why this refuses to build for other architectures but given its a build system, I guess it will need some special tooling because that's how build systems normally work.
Yes, you should bootstrap where possible, it makes it much easier and allows us to do more with it, as long as it isnt absurdly complex (like bootstrapping say Rust).
102dd95
to
1e7a5c4
Compare
I've amended the requested changes and ran the build for I've excluded musl using the ResourcesSome resources I've come across regarding other architectures and bazel: Logs:Ordered by log length. i686:
aarch64:
armv7l
|
Why is it broken for musl? Those errors look like it's trying to execute a cross built file, I think. |
Status? |
@ericonr I just can't get it to work for all architectures yet, which is why it's disabled currently.
It looks like it's downloading something during build, but not quite sure what it is.
@smorimoto unsuccessful. Still facing issues with it. I don't feel I have the knowledge to get this working currently. I have no familiarity with other architectures and their nuances. I thank everyone who has been able to help troubleshoot. |
nix packages have bazel |
I now need this for anki so I'll be getting a patch shortly fixing this. You certinaly need a bazel-bootstrap package and then a real package as per the two parts of the official instructions to get this to cross build, the bootstrap method is extremely hostile to cross compilation. |
Ugh this reallly reallllly sucks. It:
Hence it is executing an absolute metric ton of cross stuff. To work around this I attempted to use binfmts and Furthermore (this is not clearly referenced anywhere) the actual target built when using the bootstrap method is different from the normal method (using a source bazel). However, there were a large number of difficulties I ran into using the bootstrap method to bootstrap the normal method (using a source bazel), notably musl refusing to work at all! One thing that is still very perplexing is how musl works, if it is downloading all these binaries how do they work on musl? They are dynlinked..... My work here is done, I don't have the time or energy to do any more on this, and since it is a build system it works well enough. I might come back to this in a few months, but Ihave already spend wayyy more time than I would have liked on this thing.
Oh, and builds are reproducible now. |
Closing as I'm no longer working on this, and #31382 is active. |
I've strictly followed the instructions on the bazel site: https://docs.bazel.build/versions/3.5.0/install-compile-source.html#bootstrap-bazel
I'm unfamiliar with bazel and only want to use it so I can build something.
I'm sure someone more familiar will be able to help.
closes #24681
A few questions:
x86_64
. Any tips on getting this to work cross architecture?