-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rustfmt 1.5.2 runtime failure #5675
Comments
This isn't really a build failure. It looks like the just-built On the one hand, that seems like a reasonable requirement. On the other, it wasn't there before, and seems to make |
Thanks for the report. This ultimately stems from some upstream changes that we're reliant upon. I don't think there's a clear path on how it will be resolved yet, nor how long such a resolution could take, so in the interim I'd recommend either using the version of rustfmt that ships with a toolchain, or if you need to continue to build from source to do so with the prior v1.5.1 version |
Looks like the best workaround available if you are building rustfmt from source is going to be to set
fwiw I think this has already been the case for several years, certainly since we had to switch to consuming the rustc internals from the sysroot. I haven't confirmed, but my assumption is that even with an older version of rustfmt you would still get the same runtime error if you nuked the associated toolchain + sysroot. What's really changed here is that some upstream changes have resulted in no longer being able to find/determine the correct sysroot. I'm going to mark this as blocked for now because I suspect it will need, or at least will hopefully receive, an upstream resolution, and I don't think there's much that we can/should attempt to do on our end just yet. |
I actually think this might be the same cause for pyoxidizer 0.24.0 cc @messense |
This works on Linux, but will not work on macOS. macOS does have Relying on
I don't think this is correct. At Homebrew, we build and distribute a We can see this by looking at the libraries linked to
In 1.5.2:
We can see that the linkage to the Rust toolchain is new in 1.5.2. ( |
Does
I appreciate the extra info, but I don't really think there's much to be gained from any debate in this issue. As I stated previously, this comes from upstream changes that are outside of our control (and yes there's a resultant dynamic linking that's now happening on rustc_driver as part of those changes, so I was indeed wrong on that part). There's references to the upstream issues providing greater detail on those changes, why those changes were made, and the benefits those changes provide in the greater context. I'm not sure why you folks are building your own rustfmt binary, and while we don't directly support those types of scenarios, all I can tell you is that if you want to use the newer version of rustfmt then you're going to have to pivot to either:
Ultimately this remains blocked. We're not going to attempt to change anything on our end, build process or otherwise, while we wait to see how things shake out upstream. Similarly, I do not anticipate we'll attempt to support nor even document things beyond what I've shared here; we simply don't have the bandwidth for it |
👋 trying to build the latest release, but run into some build issue. The error log is as below:
runtime issue
full build log, https://github.com/Homebrew/homebrew-core/actions/runs/4001984607/jobs/6868829982
relates to Homebrew/homebrew-core#121441
The text was updated successfully, but these errors were encountered: