-
Notifications
You must be signed in to change notification settings - Fork 6
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
i386 image faild #16
Comments
It seems that this image can only be used under 32-bit. If I want to use 32-bit compilation under x64, what should I do? |
@boy-hack that image can be used under 64-bit (I built it on 64-bit machine). This image is based on docker's official golang image for i386 architecture - https://hub.docker.com/r/i386/golang. i386 instruction set is well supported by Intel chips and 32-bit binaries can be run on x86_64. What king of mac are you using? (macOS version and model)
I tried to run this on MacBook Pro mid 2015 with macOS Big Sur and unable to reproduce your issue: |
@boy-hack I changed approach a bit. Now it's a single image as it was before but based on Debian Bullseye which provides Mingw toolchain for both amd64 and i386. Use docker run --rm -it -e GOARCH=386 -v /YourPackageSrc:/go/work \
-w /go/work \
x1unix/go-mingw go build . |
Thank you, the new version solves my problem very well |
I am running under mac, but I get an error when I execute go version
The text was updated successfully, but these errors were encountered: