Skip to content

Compilation broken on aarch64-freebsd in v1.8.2 #873

@giordano

Description

@giordano

Environment

  • libunwind version: v1.8.2
  • architecture: aarch64
  • OS: FreeBSD (both 14.1 and 15.0)

Description

Version v1.8.2 broke compilation on aarch64-freebsd:

  CC       ptrace/_UPT_ptrauth_insn_mask.lo
ptrace/_UPT_ptrauth_insn_mask.c:32:16: error: variable has incomplete type 'struct iovec'
   32 |   struct iovec iovec;
      |                ^
ptrace/_UPT_ptrauth_insn_mask.c:32:10: note: forward declaration of 'struct iovec'
   32 |   struct iovec iovec;
      |          ^
ptrace/_UPT_ptrauth_insn_mask.c:38:17: error: use of undeclared identifier 'PTRACE_GETREGSET'
   38 |   ret = ptrace (PTRACE_GETREGSET, pid, NT_ARM_PAC_MASK, &iovec);
      |                 ^
ptrace/_UPT_ptrauth_insn_mask.c:38:40: error: use of undeclared identifier 'NT_ARM_PAC_MASK'
   38 |   ret = ptrace (PTRACE_GETREGSET, pid, NT_ARM_PAC_MASK, &iovec);
      |                                        ^
3 errors generated.

Reproduction Steps

./configure
gmake

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions