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

arm64 build error #59

Open
Pukka922 opened this issue Apr 2, 2023 · 1 comment
Open

arm64 build error #59

Pukka922 opened this issue Apr 2, 2023 · 1 comment

Comments

@Pukka922
Copy link

Pukka922 commented Apr 2, 2023

Getting Build errors when I try to build my project for arm64

CGO_ENABLED is enabled. The Build Command:

env GOOS=linux GOARCH=arm64 go build -o build/app-arm64

The Error:

$ env GOOS=linux GOARCH=arm64 go build -o build/app-arm64 90# runtime/cgo 91gcc_arm64.S: Assembler messages: 92gcc_arm64.S:30: Error: no such instruction: stp x29,x30,[sp,' 93gcc_arm64.S:34: Error: too many memory references for mov'
94gcc_arm64.S:36: Error: no such instruction: stp x19,x20,[sp,'
95gcc_arm64.S:39: Error: no such instruction: stp x21,x22,[sp,'
96gcc_arm64.S:42: Error: no such instruction: stp x23,x24,[sp,'
97gcc_arm64.S:45: Error: no such instruction: stp x25,x26,[sp,'
98gcc_arm64.S:48: Error: no such instruction: stp x27,x28,[sp,'
99gcc_arm64.S:52: Error: too many memory references for mov'
100gcc_arm64.S:53: Error: too many memory references for mov'
101gcc_arm64.S:54: Error: too many memory references for mov'
102gcc_arm64.S:56: Error: no such instruction: blr x20'
103gcc_arm64.S:57: Error: no such instruction: blr x19'
104gcc_arm64.S:59: Error: no such instruction: ldp x27,x28,[sp,'
105gcc_arm64.S:62: Error: no such instruction: ldp x25,x26,[sp,'
106gcc_arm64.S:65: Error: no such instruction: ldp x23,x24,[sp,'
107gcc_arm64.S:68: Error: no such instruction: ldp x21,x22,[sp,'
108gcc_arm64.S:71: Error: no such instruction: ldp x19,x20,[sp,'
109gcc_arm64.S:74: Error: no such instruction: ldp x29,x30,[sp],'`

@sndnvaps
Copy link

@Pukka922
have you set $CC=arm64-none-gnu-linux-gcc $CXX=arm64-none-gnu-linux-g++ before build the project

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

2 participants