Skip to content

i686 Windows CI is broken #479

@ehuss

Description

@ehuss

The backtrace-rs CI has been broken for a few months because the i686-pc-windows-gnu runner has been failing:

Run cargo test --manifest-path crates/cpp_smoke_test/Cargo.toml
   Compiling cpp_smoke_test v0.1.0 (D:\a\backtrace-rs\backtrace-rs\crates\cpp_smoke_test)
    Finished test [unoptimized + debuginfo] target(s) in 13.63s
     Running unittests src\lib.rs (target\debug\deps\cpp_smoke_test-35949726fc43fe32.exe)
error: test failed, to rerun pass '--lib'

Caused by:
  could not execute process `D:\a\backtrace-rs\backtrace-rs\target\debug\deps\cpp_smoke_test-35949726fc43fe32.exe` (never executed)

Cargo is eating the error, but the actual error is ERROR_BAD_EXE_FORMAT (0xC1) usually displayed as %1 is not a valid Win32 application..

My guess is that the GitHub Windows image uses chocolatey to install mingw64. To my understanding, this does not have multilib support and thus isn't properly compiling the 32-bit code. The version reported is:

g++.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.2.0

I can reproduce this locally with that version from chocolatey.

I'm not well versed in using chocolatey, or how to switch to mingw32.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions