ERROR: failed to solve: wasi-vfs
kyleconroy opened this issue · 3 comments
kyleconroy commented
I'm building from source on an M1 Mac, using commit 31f6db8.
make
./out/c2w ubuntu:22.04 out.wasm
It appears there is an issue with was-vfs
?
#70 [busybox-amd64-dev 6/11] RUN make CROSS_COMPILE=x86_64-linux-gnu- LDFLAGS=--static -j$(nproc)
#70 CANCELED
------
> [bochs-dev-common 6/25] RUN git clone https://github.com/kateinoigakukun/wasi-vfs.git --recurse-submodules && cd wasi-vfs && git checkout "v0.3.0" && cargo build --target wasm32-unknown-unknown && cargo build --package wasi-vfs-cli && mkdir -p /tools/wasi-vfs/ && mv target/debug/wasi-vfs target/wasm32-unknown-unknown/debug/libwasi_vfs.a /tools/wasi-vfs/ && cargo clean:
5.436 info: downloading component 'rust-std' for 'wasm32-wasi'
6.074 info: downloading component 'rust-std'
7.041 info: downloading component 'rustc'
9.959 info: installing component 'cargo'
11.87 info: installing component 'rust-std' for 'wasm32-unknown-unknown'
15.58 info: installing component 'rust-std' for 'wasm32-wasi'
19.38 info: installing component 'rust-std'
25.25 info: installing component 'rustc'
41.87 Updating crates.io index
92.07 Killed
------
Dockerfile:425
--------------------
424 | WORKDIR /work/
425 | >>> RUN git clone https://github.com/kateinoigakukun/wasi-vfs.git --recurse-submodules && \
426 | >>> cd wasi-vfs && \
427 | >>> git checkout "${WASI_VFS_VERSION}" && \
428 | >>> cargo build --target wasm32-unknown-unknown && \
429 | >>> cargo build --package wasi-vfs-cli && \
430 | >>> mkdir -p /tools/wasi-vfs/ && \
431 | >>> mv target/debug/wasi-vfs target/wasm32-unknown-unknown/debug/libwasi_vfs.a /tools/wasi-vfs/ && \
432 | >>> cargo clean
433 |
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone https://github.com/kateinoigakukun/wasi-vfs.git --recurse-submodules && cd wasi-vfs && git checkout \"${WASI_VFS_VERSION}\" && cargo build --target wasm32-unknown-unknown && cargo build --package wasi-vfs-cli && mkdir -p /tools/wasi-vfs/ && mv target/debug/wasi-vfs target/wasm32-unknown-unknown/debug/libwasi_vfs.a /tools/wasi-vfs/ && cargo clean" did not complete successfully: exit code: 137
exit status 1
ktock commented
kyleconroy commented
Yep, thanks for the debugging help. It was always dying on the same line so I didn't realize it was just a coincidence.