Skip to content

libucontext-1.4 fails to build with clang #78

@Biswa96

Description

@Biswa96

libucontext-1.4 fails to build for i686, arm and x86_64 with clang targeting Android system. Full build log can be found here https://github.com/termux/termux-packages/actions/runs/20125553514

Here are the compiler errors.

  • arm
 ../src/arch/arm/swapcontext.S:27:11: error: unknown token in expression
 ldr r2, =#0x56465001
          ^
../src/arch/arm/getcontext.S:34:13: error: unknown token in expression
 ldrne r2, =#0x56465001
            ^
  • i686
 ../src/arch/x86/makecontext.c:39:55: error: subscripted value is not an array, pointer, or vector
   39 |         ucp->uc_mcontext.fpregs = (void *) &ucp->__fpregs_mem[0];
      |                                             ~~~~~~~~~~~~~~~~~^~
  • x86_64
 ../src/arch/x86_64/makecontext.c:39:55: error: subscripted value is not an array, pointer, or vector
   39 |         ucp->uc_mcontext.fpregs = (void *) &ucp->__fpregs_mem[0];
      |                                             ~~~~~~~~~~~~~~~~~^~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions