Skip to content

Conversation

@imnotpoz
Copy link

@imnotpoz imnotpoz commented Nov 9, 2025

$ make
gcc -std=gnu99 -D_DEFAULT_SOURCE -fPIC -DPIC -ggdb3 -O2 -Wall -Iinclude -Iarch/aarch64 -Iarch/common -Iarch/common/include -DFORCE_SOFT_FLOAT -DEXPORT_UNPREFIXED -c -o arch/aarch64/makecontext.o arch/aarch64/makecontext.c
arch/aarch64/makecontext.c: In function ‘libucontext_makecontext’:
arch/aarch64/makecontext.c:48:14: error: assignment to ‘long unsigned int *’ from incompatible pointer type ‘long long unsigned int *’ [-Wincompatible-pointer-types]
   48 |         regp = &(ucp->uc_mcontext.regs[0]);
      |              ^
make: *** [Makefile:155: arch/aarch64/makecontext.o] Error 1

this both fixes the build error and fixes the rest of mcontext_t to be compatible with glibc

built on top of the work done in #59 as that patch can't be applied anymore

```
$ make
gcc -std=gnu99 -D_DEFAULT_SOURCE -fPIC -DPIC -ggdb3 -O2 -Wall -Iinclude -Iarch/aarch64 -Iarch/common -Iarch/common/include -DFORCE_SOFT_FLOAT -DEXPORT_UNPREFIXED -c -o arch/aarch64/makecontext.o arch/aarch64/makecontext.c
arch/aarch64/makecontext.c: In function ‘libucontext_makecontext’:
arch/aarch64/makecontext.c:48:14: error: assignment to ‘long unsigned int *’ from incompatible pointer type ‘long long unsigned int *’ [-Wincompatible-pointer-types]
   48 |         regp = &(ucp->uc_mcontext.regs[0]);
      |              ^
make: *** [Makefile:155: arch/aarch64/makecontext.o] Error 1
```

this both fixes the build error and fixes the rest of mcontext_t to be
compatible with glibc

built on top of the work done in kaniini#59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant