Removing "lang/sbcl/files/patch-src_runtime_x86-64-bsd-os.c" patch produced the error:
bsd-os.c:292:50: warning: incompatible function pointer types passing '__siginfohandler_t *' (aka 'void (*)(int, struct __siginfo *, void *)') to parameter of type 'interrupt_handler_t' (aka 'void (*)(int, struct __siginfo *, struc t __ucontext *)') [-Wincompatible-function-pointer-types] (__siginfohandler_t *) ^~~~~~~~~~~~~~~~~~~~~~ ./interrupt.h:124:64: note: passing argument to parameter 'handler' here extern void ll_install_handler(int signal, interrupt_handler_t handler); ^ 1 warning generated. cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o x86-64-bsd-os.o x86-64-bsd-os.c cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o fullcgc.o fullcgc.c cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o gencgc.o gencgc.c cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o traceroot.o traceroot.c cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o immobile-space.o immobile-space.c cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o elf.o elf.c cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-frame-pointer -I. -c -o x86-64-assem.o x86-64-assem.S cc -g -Wl,--export-dynamic -o sbcl alloc.o backtrace.o breakpoint.o coalesce.o coreparse.o dynbind.o funcall.o gc-common.o globals.o hopscotch.o interr.o interrupt.o largefile.o main.o monitor.o murmur_hash.o os-common.o parse.o pr int.o purify.o regnames.o runtime.o safepoint.o save.o sc-offset.o search.o thread.o time.o validate.o var-io.o vars.o wrap.o run-program.o x86-64-arch.o bsd-os.o x86-64-bsd-os.o fullcgc.o gencgc.o traceroot.o immobile-space.o elf. o x86-64-assem.o -lutil -lthr -lm ld: error: undefined symbol: arch_os_load_ldt >>> referenced by thread.h:307 (./thread.h:307) >>> alloc.o:(alloc_code_object) >>> referenced by thread.h:307 (./thread.h:307) >>> backtrace.o:(describe_thread_state) >>> referenced by thread.h:307 (./thread.h:307) >>> backtrace.o:(lisp_backtrace) >>> referenced 62 more times cc: error: linker command failed with exit code 1 (use -v to see invocation)
Removing "lang/sbcl/ files/patch- src_runtime_ x86-64- bsd-os. c" patch produced the error:
bsd-os.c:292:50: warning: incompatible function pointer types passing '__siginfohandler_t *' (aka 'void (*)(int, struct __siginfo *, void *)') to parameter of type 'interrupt_ handler_ t' (aka 'void (*)(int, struct __siginfo *, struc -function- pointer- types]
(__siginfohandl er_t *)
^~~~~~~ ~~~~~~~ ~~~~~~~ ~ h:124:64: note: passing argument to parameter 'handler' here handler( int signal, interrupt_handler_t handler);
^ frame-pointer -I. -c -o x86-64-bsd-os.o x86-64-bsd-os.c frame-pointer -I. -c -o fullcgc.o fullcgc.c frame-pointer -I. -c -o gencgc.o gencgc.c frame-pointer -I. -c -o traceroot.o traceroot.c frame-pointer -I. -c -o immobile-space.o immobile-space.c frame-pointer -I. -c -o elf.o elf.c frame-pointer -I. -c -o x86-64-assem.o x86-64-assem.S dynamic -o sbcl alloc.o backtrace.o breakpoint.o coalesce.o coreparse.o dynbind.o funcall.o gc-common.o globals.o hopscotch.o interr.o interrupt.o largefile.o main.o monitor.o murmur_hash.o os-common.o parse.o pr (alloc_ code_object) o:(describe_ thread_ state) o:(lisp_ backtrace)
t __ucontext *)') [-Wincompatible
./interrupt.
extern void ll_install_
1 warning generated.
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -fno-omit-
cc -g -Wl,--export-
int.o purify.o regnames.o runtime.o safepoint.o save.o sc-offset.o search.o thread.o time.o validate.o var-io.o vars.o wrap.o run-program.o x86-64-arch.o bsd-os.o x86-64-bsd-os.o fullcgc.o gencgc.o traceroot.o immobile-space.o elf.
o x86-64-assem.o -lutil -lthr -lm
ld: error: undefined symbol: arch_os_load_ldt
>>> referenced by thread.h:307 (./thread.h:307)
>>> alloc.o:
>>> referenced by thread.h:307 (./thread.h:307)
>>> backtrace.
>>> referenced by thread.h:307 (./thread.h:307)
>>> backtrace.
>>> referenced 62 more times
cc: error: linker command failed with exit code 1 (use -v to see invocation)