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

[BUG] New Strelka Version Fails to build on M1 Apple Silicon #422

Closed
logan-material opened this issue Jan 4, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@logan-material
Copy link

Describe the bug
To be honest, I don't think this is necessarily a bug but I've exhausted a bunch of options to I'm posting here in hope of getting some help with Docker builds.

Since the introduction of the confluent Kafka library, I have not been able to properly build the strelka-frontend docker image on my M1 Macbook Pro. I get the following error from running docker-compose -f build/docker-compose.yaml build

 => ERROR [build 6/6] RUN go mod download &&     CGO_ENABLED=1 go build -tags musl -o /tmp/strelka-frontend cmd/strelka-frontend/main.go                                                                                                     23.2s
------                                                                                                                                                                                                                                             
 > [build 6/6] RUN go mod download &&     CGO_ENABLED=1 go build -tags musl -o /tmp/strelka-frontend cmd/strelka-frontend/main.go:                                                                                                                 
#13 22.98 # github.com/confluentinc/confluent-kafka-go/kafka                                                                                                                                                                                       
#13 22.98 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux.a(rdkafka_error.o): Relocations in generic ELF (EM: 62)                                                                                                                                                                                                                             
#13 22.98 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux.a(rdkafka_error.o): Relocations in generic ELF (EM: 62)
#13 22.98 /usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /go/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/librdkafka_musl_linux.a: error adding symbols: file in wrong format
#13 22.98 collect2: error: ld returned 1 exit status
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod download &&     CGO_ENABLED=1 go build -tags musl -o /tmp/strelka-frontend cmd/strelka-frontend/main.go]: exit code: 2

I found the following issue in the library's GH, and it seems to be an issue with AMD / Apple Silicon compatibility. However none of the suggestions in the thread work for building Strelka, and I'm curious if the env vars + Docker params are not being properly passed through.

This is likely a user error but would be very curious if anyone else has run into this and has uncovered a workaround?

Environment details

  • Operating System: macOS 14.2.1
  • Architecture: ARM / Apple M1
@logan-material logan-material added the bug Something isn't working label Jan 4, 2024
@phutelmyer
Copy link
Contributor

phutelmyer commented Jan 4, 2024

Hi @logan-material - this is not a user error. I ran into the bug yesterday as well. I apologize for the issue here.

That was fixed in a more recent commit. I was able to build the latest on my Apple Silicon just a few minutes ago and am curious if you are still running into this problem on the latest pull. Apologies for that.

@logan-material
Copy link
Author

@phutelmyer Thank you much for the quick turnaround! Always happy to hear it's not me 😏

@phutelmyer
Copy link
Contributor

Gonna close this out @logan-material. Feel free to reopen this if the issue still persists for ya.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants