kaniini / libucontext

ucontext implementation featuring glibc-compatible ABI
Other
106 stars 41 forks source link

Cannot compile on macOS #29

Closed ronaaron closed 2 years ago

ronaaron commented 3 years ago

Trying to build on Mojave, get a ton of errors:

make ARCH=x86_64 FREESTANDING=yes
Makefile:135: warning: overriding commands for target `_clean'
Makefile:132: warning: ignoring old commands for target `_clean'
cc -std=gnu99 -D_BSD_SOURCE -fPIC -DPIC -ggdb3 -O2 -Wall -DFREESTANDING -Iinclude -Iarch/x86_64 -Iarch/common -c -o arch/x86_64/makecontext.o arch/x86_64/makecontext.c
In file included from arch/x86_64/makecontext.c:19:
include/libucontext/libucontext.h:7:29: error: unknown type name 'libucontext_ucontext_t'
int  libucontext_getcontext(libucontext_ucontext_t *);

etc.

kaniini commented 3 years ago

you probably need gmake. we use meson for building on macs