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

Unable to install wrk2 using brew on Apple Silicon (AArch64 /arm64) #6

Open
sbathineni opened this issue Mar 24, 2022 · 4 comments
Open

Comments

@sbathineni
Copy link

sbathineni commented Mar 24, 2022

I am using new macbook with apple chip. While trying to install wrk2 using brew I am receiving below error.

Apple M1 Max and Mac OS Monterey

Last 15 lines from /Users/sbathineni/Library/Logs/Homebrew/wrk2/01.make:
#error "Need at least GCC 4.3 or newer"
^
3 errors generated.
lj_arch.h:55:2: error: "No support for this architecture (yet)"
#error "No support for this architecture (yet)"
^
lj_arch.h:279:2: error: "No target architecture defined"
#error "No target architecture defined"
^
lj_arch.h:302:2: error: "Need at least GCC 4.3 or newer"
#error "Need at least GCC 4.3 or newer"
^
3 errors generated.
Makefile:231: *** Unsupported target architecture. Stop.
make: *** [deps/luajit/src/libluajit.a] Error 2

@jabley
Copy link
Owner

jabley commented Nov 15, 2022

Got an Apple M1 now, so I can try to push this forwards.

As a workaround, the intel build still works and you can build it via something like https://noahpeeters.de/posts/apple-silicon/homebrew-setup/

@jabley
Copy link
Owner

jabley commented Nov 16, 2022

Reminder: this is a HEAD formula that clones the wrk2 repo and tries to build the binary. Longer term, it would be good to make this a bottle.

For now, it looks like wrk2 does not build on Apple Silicon because it vendors luajit 2.0.x giltene/wrk2#104 giltene/wrk2#106 giltene/wrk2#110 giltene/wrk2#111 giltene/wrk2#121 giltene/wrk2#124 giltene/wrk2#128 . That version of luajit doesn't build on Apple Silicon. wrk2 has got various open PRs to update to luajit-2.1.x, but this will be blocked until there is progress with wrk2.

@jabley jabley changed the title Unable to install wrk2 using brew Unable to install wrk2 using brew on Apple Silicon (AArch64 /arm64) Nov 16, 2022
@tekumara
Copy link

tekumara commented Oct 7, 2023

See also giltene/wrk2#120

@PauloMigAlmeida
Copy link

another one giltene/wrk2#145

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

4 participants