sys/ucontext.h will try to define REG_R8 which is already defined by libucontext/bits.h which blows up. Not sure if there's a way to accomodate this. Currently getting around it by overriding sys/ucontext.h on my end so we never try to include the glibc sys/ucontext.h when building with libucontext