Hi; I'm afraid that OSX 10.11 "El Capitan" isn't a supported build platform for QEMU. Our official support policy is that we support the two most recent versions (currently 10.14 Mojave and 10.15 Catalina); QEMU may also run on some earlier OSX versions we don't support, but we don't guarantee that or carry workarounds for missing functionality on those earlier versions. In this particular case, CLOCK_MONOTONIC was added to OSX 10.12 "Sierra".
** Changed in: qemu Status: New => Won't Fix -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1871005 Title: build fails on CLOCK_MONOTONIC Status in QEMU: Won't Fix Bug description: Moc OS X.11.6 El Capitan build fails on this /Users/alba/Downloads/qemu-5.0.0-rc1/include/qemu/timer.h:843:9: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration] clock_gettime(CLOCK_MONOTONIC, &ts); ^ /Users/alba/Downloads/qemu-5.0.0-rc1/include/qemu/timer.h:843:23: error: use of undeclared identifier 'CLOCK_MONOTONIC' clock_gettime(CLOCK_MONOTONIC, &ts); ^ 1 warning and 1 error generated. make: *** [trace/control.o] Error 1 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1871005/+subscriptions