-
Notifications
You must be signed in to change notification settings - Fork 12.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
Fix thin archive reading #107360
Fix thin archive reading #107360
Conversation
r? @cjgillot (rustbot has picked a reviewer for you, use r? to override) |
@bors try to provide a toolchain that can be used for testing if this indeed fixed it. This will build a linux toolchain, if necessary I can do a windows toolchain after that. |
⌛ Trying commit de363d5 with merge 87b60fa8c61c1fc5243bb1bce530da8f3f694d4d... |
☀️ Try build successful - checks-actions |
This indeed fixes reading thin archives. At least on Linux: $ rustup-toolchain-install-master 87b60fa8c61c1fc5243bb1bce530da8f3f694d4d
[...]
$ echo | rustc - --emit obj --crate-type lib # create dummy object file
$ ar rsT libthin.a rust_out.o # create thin archive
$ echo | rustc +stable -l static=thin - --crate-type staticlib -L .
error: failed to add native library ./libthin.a: Unsupported archive identifier
error: aborting due to previous error
$ echo | rustc +87b60fa8c61c1fc5243bb1bce530da8f3f694d4d -l static=thin - --crate-type staticlib -L .
$ echo $?
0 Going to do a windows try build too as most reports are coming from windows. @bors try |
⌛ Trying commit 3020ac1d605aabca87a39d218cdbc67c910f4f22 with merge e65225bb3f98a0001676c0cc139656e7209590c2... |
☀️ Try build successful - checks-actions |
@jdm, @sagudev, @jpalus and @kanerogers can you try if this fixes the regression for you? You can use Edit: after that you also need to set it as default toolchain using |
3020ac1
to
de363d5
Compare
Thanks for testing! |
Thanks so much for the quick turnaround @bjorn3! I can confirm that |
☀️ Test successful - checks-actions |
Finished benchmarking commit (2527416): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
Discussed in today's T-compiler triage meeting. @rustbot label: beta-accepted stable-accepted beta backport is PR #107609 stable backport is PR #107611 (I still would like to try to make regression tests, but that need not block the backports.) |
…crum Release 1.67.1 - Revert back to LlvmArchiveBuilder on all platforms rust-lang#107360 - 🚨 fix unsoundness in bootstrap cache code rust-lang#105624 - Mark uninlined_format_args as pedantic rust-lang/rust-clippy#10265 - Revert "switch to the macos-12-xl builder" rust-lang#107574 r? `@Mark-Simulacrum`
…n-archive-reading-for-1-68-beta, r=cuviper Backport reverts to fix thin archive reading for 1 68 beta This is a backport of PR rust-lang#107360 aimed at beta. cc rust-lang#107162, rust-lang#107334 and google/shaderc-rs#133
Pkgsrc changes: * checksums only. Upstream changes: Version 1.67.1 (2023-02-09) =========================== - [Fix interoperability with thin archives.] (rust-lang/rust#107360) - [Fix an internal error in the compiler build process.] (rust-lang/rust#105624) - [Downgrade `clippy::uninlined_format_args` to pedantic.] (rust-lang/rust-clippy#10265)
This includes a revert of #105221 to restore fat archive reading with LlvmArchiveBuilder.
Should fix #107162, #107334 and google/shaderc-rs#133