You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../../src/mi/backtrace.c:72:7: error: no member named 'mc_gpregs' in 'struct __mcontext'
unw_getcontext (&uc);
^~~~~~~~~~~~~~~~~~~~
../include/libunwind-common.h:127:29: note: expanded from macro 'unw_getcontext'
#define unw_getcontext(uc) unw_tdep_getcontext(uc)
^~~~~~~~~~~~~~~~~~~~~~~
../../include/libunwind-aarch64.h:251:3: note: expanded from macro 'unw_tdep_getcontext'
UNW_BASE \
^~~~~~~~
../../include/libunwind-aarch64.h:242:95: note: expanded from macro 'UNW_BASE'
# define UNW_BASE register uint64_t unw_base __asm__ ("x0") = (uint64_t) unw_ctx->uc_mcontext.mc_gpregs.gp_x;
~~~~~~~~~~~~~~~~~~~~ ^
Third error
--- aarch64/Los-freebsd.lo ---
In file included from ../../src/aarch64/Los-freebsd.c:4:
In file included from ../../src/aarch64/Gos-freebsd.c:33:
In file included from ../../src/aarch64/unwind_i.h:33:
../../include/libunwind_i.h:240:12: warning: cast from provenance-free integer type to pointer type will give pointer that can not be dereferenced [-Wcheri-capability-misuse]
return (void *)ret;
^
In file included from ../../src/aarch64/Los-freebsd.c:4:
In file included from ../../src/aarch64/Gos-freebsd.c:33:
In file included from ../../src/aarch64/unwind_i.h:33:
In file included from ../../include/libunwind_i.h:422:
In file included from ../include/tdep/libunwind_i.h:7:
../../include/tdep-aarch64/libunwind_i.h:138:11: warning: cast from provenance-free integer type to pointer type will give pointer that can not be dereferenced [-Wcheri-capability-misuse]
*val = *(unw_fpreg_t *) DWARF_GET_LOC (loc);
^
../../include/tdep-aarch64/libunwind_i.h:147:4: warning: cast from provenance-free integer type to pointer type will give pointer that can not be dereferenced [-Wcheri-capability-misuse]
*(unw_fpreg_t *) DWARF_GET_LOC (loc) = val;
^
../../include/tdep-aarch64/libunwind_i.h:156:11: warning: cast from provenance-free integer type to pointer type will give pointer that can not be dereferenced [-Wcheri-capability-misuse]
*val = *(unw_word_t *) DWARF_GET_LOC (loc);
^
../../include/tdep-aarch64/libunwind_i.h:165:4: warning: cast from provenance-free integer type to pointer type will give pointer that can not be dereferenced [-Wcheri-capability-misuse]
*(unw_word_t *) DWARF_GET_LOC (loc) = val;
^
In file included from ../../src/aarch64/Los-freebsd.c:4:
../../src/aarch64/Gos-freebsd.c:53:24: warning: cast from provenance-free integer type to pointer type will give pointer that can not be dereferenced [-Wcheri-capability-misuse]
ucontext_t *uc = (ucontext_t *)(c->sigcontext_sp + offsetof(struct sigframe, sf_uc));
^
../../src/aarch64/Gos-freebsd.c:56:25: error: no member named 'mc_gpregs' in 'struct __mcontext'
uc->uc_mcontext.mc_gpregs.gp_x[0] = c->dwarf.eh_args[0];
~~~~~~~~~~~~~~~ ^
../../src/aarch64/Gos-freebsd.c:58:25: error: no member named 'mc_gpregs' in 'struct __mcontext'
uc->uc_mcontext.mc_gpregs.gp_x[1] = c->dwarf.eh_args[1];
~~~~~~~~~~~~~~~ ^
../../src/aarch64/Gos-freebsd.c:60:25: error: no member named 'mc_gpregs' in 'struct __mcontext'
uc->uc_mcontext.mc_gpregs.gp_x[2] = c->dwarf.eh_args[2];
~~~~~~~~~~~~~~~ ^
6 warnings and 3 errors generated.
Is this issue still relevant? I haven't tried FreeBSD 14.0 but I'm able to build current libunwind master on aarch64-unknown-freebsd14.1 without issue. I get a few warnings, but no errors:
aarch64/Gstep.c:719:40: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
./Gtest-nomalloc.c:49:16: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
Most tests pass as well, except for G/Larm64-test-sve-signal (skipped) and check-namespace.sh (fails).
Code fails to build from source.
First error
Second error
Third error
Fourth error
make.log
The text was updated successfully, but these errors were encountered: