You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this code (on Arch Linux, as well as in GitHub CI using "ubuntu-latest"):
git clone https://github.com/VorpalBlade/ini-merge.git
cd ini-merge
git checkout 0f4696241825c17faf4d63f2e19bdccabc1ccc51
cross test --target x86_64-pc-windows-gnu # This works, rustc 1.76
cross +nightly test --target x86_64-pc-windows-gnu # This fails with the error below.
I expected to see this happen: explanation
The build to work. Note that plain "build" still works, it is just "test" and "test --no-run" that no longer works on nightly.
Instead, this happened: explanation
= note: /usr/bin/x86_64-w64-mingw32-ld: cannot find -lsynchronization
collect2: error: ld returned 1 exit status
(full log from CI run where this happened attached: mingw-broken.txt)
Meta
rustc --version --verbose:
$ rustc --version --verboserustc 1.78.0-nightly (46b180ec2 2024-03-08)binary: rustccommit-hash: 46b180ec2452d388c5d9c14009442e2e0beb01d7commit-date: 2024-03-08host: x86_64-unknown-linux-gnurelease: 1.78.0-nightlyLLVM version: 18.1.0
$ cross +nightly --version --verbosecross 0.2.5+ cargo +nightly metadata --format-version 1+ rustc --print sysroot+ rustup toolchain list[cross] warning: using newer rustc `1.78.0-nightly (46b180ec2 2024-03-08)` for the target. Current active rustc on the host is `rustc 1.76.0 (07dca489a 2024-02-04)`. > Update with `rustup update`+ rustup target list --toolchain nightly-x86_64-unknown-linux-gnu+ rustup component list --toolchain nightly-x86_64-unknown-linux-gnu[cross] note: Falling back to `cargo` on the host.+ cargo +nightly --version --verbosecargo 1.78.0-nightly (a4c63fe53 2024-03-06)release: 1.78.0-nightlycommit-hash: a4c63fe5388beaa09e5f91196c86addab0a03580commit-date: 2024-03-06host: x86_64-unknown-linux-gnulibgit2: 1.7.2 (sys:0.18.2 vendored)libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)ssl: OpenSSL 1.1.1w 11 Sep 2023os: Arch Linux Rolling Release [64-bit]
Backtrace
This doesn't seem applicable?
The text was updated successfully, but these errors were encountered:
I don't know for sure if this is a rustc bug, a cross bug or a bug with mingw. But since the only variable I'm changing is rustc version, I'm inclined to believe it is a rustc bug.
It looks like a regression from #121317.
It might be a cross bug because the library has been present in mingw-w64 and Rust's rust-mingw component for years. I'll test it later.
I tried this code (on Arch Linux, as well as in GitHub CI using "ubuntu-latest"):
I expected to see this happen: explanation
The build to work. Note that plain "build" still works, it is just "test" and "test --no-run" that no longer works on nightly.
Instead, this happened: explanation
(full log from CI run where this happened attached: mingw-broken.txt)
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: