Skip to content

[Bug] Cross-compile fails with mingw-w64 for Windows GNU target #464

@samcarey

Description

@samcarey

Describe the bug

Cross compiling for the windows-gnu toolchain fails for the currently locked version of librocksdb-sys = "=0.17.1".

It fails on both my development Mac and on my Debian CI container.

On my Mac, I patched it to librocksdb-sys = "=0.17.3" in zenoh-backend-rocksdb and zenoh-pinned-deps-1-75 and then it compiled fine.

It would be really awesome to get this fixed because this is the only reason I have to run my CI builds for Windows on a Windows server (for the MSVC toolchain) instead of just doing a GNU build in a Linux container.

To reproduce

On MacOS (M2):

brew install mingw-w64
rustup target add x86_64-pc-windows-gnu
cargo build --target=x86_64-pc-windows-gnu

System info

Apple M2, MacOS 15.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions