Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

alpine cannot build rust agent #386

Closed
yyyeerbo opened this issue Dec 5, 2019 · 3 comments
Closed

alpine cannot build rust agent #386

yyyeerbo opened this issue Dec 5, 2019 · 3 comments
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.

Comments

@yyyeerbo
Copy link
Contributor

yyyeerbo commented Dec 5, 2019

alpine doesn't support x86_64-unknown-linux-gnu

It only support x86_64-unknown-linux-musl. Even worse,

it doesn't support proc-macro, which is needed for serde_derive

@yyyeerbo yyyeerbo added bug Incorrect behaviour needs-review Needs to be assessed by the team. labels Dec 5, 2019
@liubin
Copy link
Member

liubin commented Aug 18, 2020

rust-lang/rust#69519

@liubin
Copy link
Member

liubin commented Aug 18, 2020

May be fixed by 1.44 rust-lang/rust#40174 (comment) and rust-lang/rust#40174 (comment)

@liubin
Copy link
Member

liubin commented Aug 18, 2020

I have tried this and verified that 1.45 has resolved this issue.

$ docker run -it --rm -v `pwd`/kata-containers:/kc  rust:1.45.2-alpine3.12 sh
# cd /kc
# apk add --no-cache musl-dev
# cargo build

devimc pushed a commit to kata-containers/kata-containers that referenced this issue Sep 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.
Projects
None yet
Development

No branches or pull requests

3 participants