goreleaser / goreleaser-cross

Docker image for Golang cross-compiling with CGO
MIT License
146 stars 24 forks source link

Compiler for Windows ARM64 #24

Closed maxgio92 closed 1 year ago

maxgio92 commented 1 year ago

Hi, first of all thanks for this great work which reduces a lot the burden of cross-compilation with CGO :)

The list of supported platforms in the README.md include Windows on ARM64, but it seems that MinGW's clang is not present (/llvm-mingw/llvm-mingw/bin/aarch64-w64-mingw32-gcc) in the published container image.

Am I missing something?

Thank you

troian commented 1 year ago

should be about there. bear in mind /llvm-mingw/llvm-mingw/bin/ is not included in the path.

root@c20e1fcd1089:/# /llvm-mingw/llvm-mingw/bin/aarch64-w64-mingw32-gcc
clang-15: error: no input files
maxgio92 commented 1 year ago

Thanks @troian. Maybe I'm pointing to the wrong needed container image, but for the currently latest v1.19, I'm getting this:

docker run --rm --entrypoint ls goreleaser/goreleaser-cross:v1.19 /llvm-mingw/
ls: cannot access '/llvm-mingw/': No such file or directory

Edit: also:

docker run --rm  --entrypoint find goreleaser/goreleaser-cross:v1.19 -- / -type f -name "*w64-mingw32-gcc"
/var/lib/dpkg/alternatives/i686-w64-mingw32-gcc
/var/lib/dpkg/alternatives/x86_64-w64-mingw32-gcc
troian commented 1 year ago

thats weird, thanks for reporting. you can use v1.19.2 for now, it is for sure there

troian commented 1 year ago

should be all fixed in retagged v1.19.5. Path is /llvm-mingw/bin

maxgio92 commented 1 year ago

Thank you @troian!