Skip to content
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

rwynn/monstache-builder-cache-rel6 is not available for arm64 #734

Open
jschmied opened this issue Oct 14, 2024 · 0 comments
Open

rwynn/monstache-builder-cache-rel6 is not available for arm64 #734

jschmied opened this issue Oct 14, 2024 · 0 comments

Comments

@jschmied
Copy link

jschmied commented Oct 14, 2024

compiling with amd64 version leads to a plugin producing:

Unable to load mapper plugin /tmp/plugin/xxx.so: plugin: not implemented

putting

GOARCH=arm64 GOOS=linux

into monstache/docker/plugin/Dockerfile leads to errors in build:

[8/8] RUN GOARCH=arm64 GOOS=linux go build -buildmode=plugin -o xxx.so xxx.go:
18.04 # command-line-arguments
18.04 loadinternal: cannot find runtime/cgo
18.04 /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
18.04 collect2: fatal error: cannot find 'ld'
18.04 compilation terminated.

adding CGO_ENABLED=1 to the line ends up with:

9.332 gcc_arm64.S: Assembler messages:
9.332 gcc_arm64.S:30: Error: no such instruction: `stp x29,x30,[sp,'

using GOS=darwin also does not work:

[8/8] RUN CGO_ENABLED=1 GOARCH=arm64 GOOS=darwin go build -buildmode=plugin -o xxx.so xxx.go:
4.058 # runtime/cgo
4.058 gcc: error: unrecognized command-line option '-arch'

did anybody succeed building on M3 mac?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant