[MacPorts] #61808: redis @6.0.9: fail building on M1
MacPorts
noreply at macports.org
Fri Dec 11 23:16:28 UTC 2020
#61808: redis @6.0.9: fail building on M1
-----------------------+--------------------
Reporter: shibukawa | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: arm64 | Port: redis
-----------------------+--------------------
{{{
: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.
--
Ticket URL: <https://trac.macports.org/ticket/61808>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list