google / google/magika

Cross platform build failures

Open
#824 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.2k
Avg merge
3d 12h
Merged PRs (30d)
20

Description

We have a cross platform build job for our rust app, it builds on the following targets but fails on windows and linux after I started to use the magika crate.

- ❌ **x86_64-pc-windows-gnu**
- **Image:** `ghcr.io/cross-rs/x86_64-pc-windows-gnu:main`
- **Error**: `downloaded binaries not available for target x86_64-pc-windows-gnu`
- ✅ **x86_64-apple-darwin**
- **Image:** `joseluisq/rust-linux-darwin-builder:1.82.0`
- ✅ **x86_64-unknown-linux-gnu**
- **Image:** `joseluisq/rust-linux-darwin-builder:1.82.0`

According to the [platform support](https://ort.pyke.io/setup/platforms) page there should be precompiled binaries for all platforms. But I assume they are not for the windows-gnu variant then. For windows-gnu https://github.com/pykeio/ort/issues/189) says there is no support but I should be able to use the msvc binaries.

Where can I find these and how do I use them?

Contributor guide

Open the contributing guide

Research direction

Start with the cross-platform build job and the ort platform-support page linked in the issue, then inspect how the magika crate selects downloaded binaries for x86_64-pc-windows-gnu. Determine whether compatible MSVC binaries exist and how they could be used for the Windows target; document the supported path or confirm the limitation with a reproducible build result.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.