rust-lang/libm

Cargo test fails in x86_64-pc-windows-msvc target

Mec-iS opened this issue · 1 comments

Hi, thanks for your work.

This error popped up today on our CI (see full log)

Run actions-rs/cargo@v1
C:\Users\runneradmin\.cargo\bin\cargo.exe test --all-features
   Compiling autocfg v1.1.0
   Compiling libm v0.2.5
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
Error: `-Csplit-debuginfo=unpacked` is unstable on this platform
error: could not compile `libm` due to previous error
Error: warning: build failed, waiting for other jobs to finish...
error: could not compile `autocfg` due to previous error
Error: The process 'C:\Users\runneradmin\.cargo\bin\cargo.exe' failed with exit code 101

The library compiles successfully but when running tests this errors is displayed.

EDIT: I think this is from upgrade to Rust 1.65.0, see release notes. Also the workflow is working for i686-pc-windows-msvc but fails on x86_64.

We fixed this by removing split-debuginfo = "unpacked" from our [profile.test]