Opened 4 years ago

Closed 4 years ago

#61808 closed defect (fixed)

redis @6.0.9: fail building on M1

Reported by: shibukawa (Yoshiki Shibukawa) Owned by: dgilman (David Gilman)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc:
Port: redis

Description

:info:build debug.c:941:20: error: implicit declaration of function 'arm_thread_state64_get_pc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build     return (void*) arm_thread_state64_get_pc(uc->uc_mcontext->__ss);
:info:build                    ^
:info:build debug.c:941:12: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
:info:build     return (void*) arm_thread_state64_get_pc(uc->uc_mcontext->__ss);
:info:build            ^
:info:build debug.c:1101:25: error: implicit declaration of function 'arm_thread_state64_get_fp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         (unsigned long) arm_thread_state64_get_fp(uc->uc_mcontext->__ss),
:info:build                         ^
:info:build debug.c:1102:25: error: implicit declaration of function 'arm_thread_state64_get_lr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         (unsigned long) arm_thread_state64_get_lr(uc->uc_mcontext->__ss),
:info:build                         ^
:info:build debug.c:1102:25: note: did you mean 'arm_thread_state64_get_fp'?
:info:build debug.c:1101:25: note: 'arm_thread_state64_get_fp' declared here
:info:build         (unsigned long) arm_thread_state64_get_fp(uc->uc_mcontext->__ss),
:info:build                         ^
:info:build debug.c:1103:25: error: implicit declaration of function 'arm_thread_state64_get_sp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         (unsigned long) arm_thread_state64_get_sp(uc->uc_mcontext->__ss),
:info:build                         ^
:info:build debug.c:1103:25: note: did you mean 'arm_thread_state64_get_fp'?
:info:build debug.c:1101:25: note: 'arm_thread_state64_get_fp' declared here
:info:build         (unsigned long) arm_thread_state64_get_fp(uc->uc_mcontext->__ss),
:info:build                         ^
:info:build debug.c:1104:25: error: implicit declaration of function 'arm_thread_state64_get_pc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         (unsigned long) arm_thread_state64_get_pc(uc->uc_mcontext->__ss),
:info:build                         ^
:info:build debug.c:1107:21: warning: cast to 'void **' from smaller integer type 'int' [-Wint-to-pointer-cast]
:info:build     logStackContent((void**) arm_thread_state64_get_sp(uc->uc_mcontext->__ss));
:info:build                     ^
:info:build 2 warnings and 5 errors generated.

I tried to build from source (https://github.com/redis/redis/releases/tag/6.0.9), I could build and all test passed. So upstream source can work on M1.

Attachments (1)

main.log (91.3 KB) - added by shibukawa (Yoshiki Shibukawa) 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by shibukawa (Yoshiki Shibukawa)

Attachment: main.log added

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to dgilman
Status: newassigned

comment:2 Changed 4 years ago by dgilman (David Gilman)

Resolution: fixed
Status: assignedclosed

In eaa0a40711316d86e339a817deafae05e01e79d0/macports-ports (master):

redis: fix compilation on arm64

Closes: #61808

Note: See TracTickets for help on using tickets.