rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.55k stars 57 forks source link

[Question] failing cargo install in docker container #90

Closed kameshsampath closed 1 year ago

kameshsampath commented 1 year ago

@messense thank you so much for making this project.

I am rust-lang newbie, trying to install cargo install cargo-zigbuild in alpine:3.17 docker container. The cargo install fails technically getting killed, I also don't see any logs :( . the same steps works on a arm64 setup.

any thoughts here is appreciated.

messense commented 1 year ago

trying to install cargo install cargo-zigbuild in alpine:3.17 docker container.

the same steps works on a arm64 setup.

What architecture is the alpine:3.17 docker container and what's your system cpu architecture?

cargo-zigbuild does cross compilation so you shouldn't install it in a QEMU emulated docker container.