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

fix: Fix wasp-cli building on Apple Silicon #3061

Closed
wants to merge 2 commits into from

Conversation

howjmay
Copy link
Member

@howjmay howjmay commented Nov 8, 2023

The following erorr is returned

go/1.21.1/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
ld: unknown option: -z

solution from:
https://developer.arm.com/documentation/100068/0617/Migrating-from-armasm-to-the-armclang-Integrated-Assembler/Migration-of-assembler-command-line-options-from-armasm-to-the-armclang-integrated-assembler

@howjmay howjmay marked this pull request as ready for review November 8, 2023 14:12
@howjmay howjmay force-pushed the fix-wasp-cli-z branch 12 times, most recently from 79f56f2 to f3a4c7a Compare November 9, 2023 23:15
@Juliusan
Copy link
Contributor

Is there a gcc linker for arm64? There should be one. Could you use it for your build? I've tried --noexecstack on my side and obtained "running gcc failed" error:

$ make
cd tools/wasp-cli && go mod tidy && go build -ldflags "-X=github.com/iotaledger/wasp/components/app.Version=v1.0.1-rc.10-30-g49309d840 -extldflags \"--noexecstack\"" -o ../../
# github.com/iotaledger/wasp/tools/wasp-cli
/home/julius/Leidikliai/Go/go-1.21.3/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
gcc: error: unrecognized command-line option ‘--noexecstack’

make: *** [Makefile:31: build-cli] Error 1

Maybe it's not a matter of amd64 vs arm64 but rather a matter of cc vs gcc?

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

Successfully merging this pull request may close these issues.

3 participants