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: Arm build debug #1243

Open
weizihua opened this issue Oct 17, 2024 · 1 comment
Open

bug: Arm build debug #1243

weizihua opened this issue Oct 17, 2024 · 1 comment

Comments

@weizihua
Copy link

export GOOS=linux GOARCH=arm64
export CGO_ENABLES=0

make build

linux_syscall.c:67:13: error: call to undeclared function 'setresgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
linux_syscall.c:67:13: note: did you mean 'setregid'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:593:6: note: 'setregid' declared here
linux_syscall.c:73:13: error: call to undeclared function 'setresuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
linux_syscall.c:73:13: note: did you mean 'setreuid'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:595:6: note: 'setreuid' declared here
make: *** [build] Error 1

How to support arm64 architecture compilation?

@chair28980 chair28980 added this to Waku Oct 17, 2024
@chaitanyaprem
Copy link
Collaborator

looking at your output it looks like you are trying to build on mac env.
i have a mac myself and i see that i am able to build without any issues.

can you give more details as to which command you are trying to run?

export GOOS=linux GOARCH=arm64
export CGO_ENABLES=0

are you setting these in your shell? you don't need to set these params explicitly

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

No branches or pull requests

2 participants