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

Unsupported target architecture - arm64 M1 Mac #120

Closed
tekumara opened this issue Feb 17, 2022 · 4 comments
Closed

Unsupported target architecture - arm64 M1 Mac #120

tekumara opened this issue Feb 17, 2022 · 4 comments

Comments

@tekumara
Copy link

When building on an arm64 M1 Mac

==> 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
@eecheng87
Copy link

eecheng87 commented Mar 1, 2022

Check out this discussion: #104
wrk2 for aarch64 also can be found in the repo:
https://github.com/AmpereTravis/wrk2-aarch64
https://github.com/kinvolk/wrk2

@tekumara tekumara closed this as completed Mar 1, 2022
@tekumara
Copy link
Author

tekumara commented Mar 1, 2022

Thanks @eecheng87 I've closed this issue as it's a duplicate.

@orefalo
Copy link

orefalo commented Jun 6, 2022

well none of those are compiling on my Mac M1

@orefalo
Copy link

orefalo commented Jun 21, 2022

kinvolk: I get (after update include and lib path to openssl3)

CC src/script.c
src/script.c:486:5: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    gettimeofday(&tv, NULL);
    ^
1 error generated.
make: *** [obj/script.o] Error 1

wrk2 on  master [!]
✗  make
CC src/wrk.c
src/wrk.c:156:29: warning: format specifies type 'int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
                            cfg.threads, (time_us() - thread_init) / 1000);
                            ^~~~~~~~~~~
src/wrk.c:156:42: warning: format specifies type 'int' but the argument has type 'unsigned long long' [-Wformat]
                            cfg.threads, (time_us() - thread_init) / 1000);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wrk.c:606:13: warning: enumeration value 'READ_EOF' not handled in switch [-Wswitch]
    switch (sock.connect(c, cfg.host)) {
            ^
src/wrk.c:606:13: note: add missing switch cases
    switch (sock.connect(c, cfg.host)) {
            ^
src/wrk.c:663:13: warning: enumeration value 'READ_EOF' not handled in switch [-Wswitch]
    switch (sock.write(c, buf, len, &n)) {
            ^
src/wrk.c:663:13: note: add missing switch cases
    switch (sock.write(c, buf, len, &n)) {
            ^
src/wrk.c:873:13: warning: unused function 'print_stats_latency' [-Wunused-function]
static void print_stats_latency(stats *stats) {
            ^
5 warnings generated.
CC src/net.c
CC src/ssl.c
src/ssl.c:13:13: warning: unused function 'ssl_lock' [-Wunused-function]
static void ssl_lock(int mode, int n, const char *file, int line) {
            ^
src/ssl.c:22:22: warning: unused function 'ssl_id' [-Wunused-function]
static unsigned long ssl_id() {
                     ^
2 warnings generated.
CC src/aprintf.c
CC src/stats.c
CC src/script.c
src/script.c:486:5: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    gettimeofday(&tv, NULL);
    ^
1 error generated.

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

3 participants