kata-containers/osbuilder

alpine cannot build rust agent

yyyeerbo opened this issue · 3 comments

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

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