-
Notifications
You must be signed in to change notification settings - Fork 220
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 Report] Unable to compile trace/trace.go for arm64 #453
[Bug Report] Unable to compile trace/trace.go for arm64 #453
Comments
Thanks for opening this issue! |
Same issue here, failed to build. I'm on amd64 machine!
|
@hero-intelligent it looks more like a successful build to me. Can you check your local file, I think there is a dae binary. |
@douglarek What error did you see when building on arm64? |
https://github.com/daeuniverse/dae/actions/runs/7768012231/job/21185471106#step:8:181 The issue here is not whether we can build the DAE binary; the issue is that we cannot compile trace/trace.go on arm64 |
@douglarek Got it. This is because arm64 requires vmlinux-arm.h. I'll create a PR for it. Also will make #435 (comment) happen. |
I forgot to check if there is a dae binary, but I noticed the difference of the output of previous commit, the commit right before
|
@hero-intelligent If you want to build dae with trace module, you have to specify |
OK, I see. I'll modify the Dockerfile, for that's the best tutorial and the most convenient way for most of people to approach. |
My problem may be easily solved without modifying Dockerfile. 5b4f9e0 This early commit has deleted GOARCH variable for some reason, and somehow didn't come back until now. |
ci(Makefile): add back `GOARCH ?=$(shell go env GOARCH)` to enable trace module by default daeuniverse#453 (comment)
Checks
Current Behavior
#435 The implemented dae trace functionality seems unable to achieve cross-platform compilation. For example, it cannot compile packages for the arm64 architecture on amd64, and even fails to compile arm64 packages on arm64.
I found that the arm64 package compiled in GitHub Actions also encounters errors when compiling trace/trace.go, but it is simply skipped.
Expected Behavior
Is this the intended behavior? However, according to the instructions in #435, it should support the arm64 architecture.
Steps to Reproduce
GOARCH=arm64 make
Environment
dae --version
): the latest main branchcat /etc/os-release
): x86_64 linuxuname -a
): 6.7.2Anything else?
No response
The text was updated successfully, but these errors were encountered: