-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker build error: Cannot find libc6-dev-i386
#2
Comments
Ah.... it took the second error to figure out what was really happening:
I am on a Mac M1. Docker uses ARM64 as the arch on an M1. |
Possibly the solution is to use package |
I tried changing all the things over to using ARM, but there were just too many little nuances. So I went the opposite route and changed the first line of the Dockerfile to this:
And then re-running the $ docker run -it --rm -v $(pwd):$(pwd) --platform linux/amd64 -w $(pwd) wasi-build:latest bash
root@e415ff3c1687:/Users/technosophos/Code/Python/python-wasi# ./run.sh
checking for git... found
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu This got me all the way to where it runs
I'm gonna let it build once more, and if it fails again, I'll stop until tomorrow. |
Alright, well... after fixing one of my own mistakes (something I had mistakenly commented out), I did get to the point where I could kick off the build. But after four tries -- crashing Docker itself every time -- I have given up.
(Note that that list Any chance you can cut an alpha release of the project and post a binary on the releases page? |
It is possible to run the |
Oh, I should give that a try. I think I'd probably just have to change the host target on the cross compile line to use whatever Apple's architecture triplet is. |
Yes, there will be a few modifications that have to be made, but they should be minor. |
I pushed some changes that make it easier to build on Mac. There are still some issues in getting that work because the Mac release of WASI SDK is not for M1 either. I had to brew install llvm, autoconf, and automake to get the builds working without the bundled clang in WASI SDK. |
Yeah, I have had to build wasi-sdk in the past for exactly that reason. I will give things a try again later this afternoon. Thank you! |
We got it all compiled today, though I'd have to defer to @adamreese on how exactly he got the last few steps working. |
Hey @technosophos @adamreese, are you still able to build for M1? I managed to catch up with the above, yet it is not clear how to overcome that error (tried both with sdk 15 and sdk 19):
|
hello, i am having the same issue, you can find them there: |
With a fresh clone of the repo, running the Docker build gives me the following error:
The text was updated successfully, but these errors were encountered: