clock_gettime not found on macOS
I'm trying to build on macOS, but since the latest librt changes (39dba4cd) I'm not able to.
Checking for function "clock_gettime" : NO
Library rt found: NO
Checking for function "clock_gettime" with dependency -lrt: NO
tools/meson.build:39:12: ERROR: Problem encountered: clock_gettime not found
I'm targeting OS X 10.10, where I don't believe clock_gettime()
is available.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Janne Grunau mentioned in merge request !724 (merged)
mentioned in merge request !724 (merged)
- Maintainer
Please try !724 (merged)
- Janne Grunau assigned to @janne
assigned to @janne
- Author
Made it passed meson this time, but during compilation I get:
[71/106] Compiling C object 'tools/f9d35d4@@dav1d@exe/dav1d.c.o'. FAILED: tools/f9d35d4@@dav1d@exe/dav1d.c.o cc -Itools/f9d35d4@@dav1d@exe -Itools -I../src/dav1d-git/tools -I. -I../src/dav1d-git/ -Iinclude/dav1d -I../src/dav1d-git/include/dav1d -Iinclude -I../src/dav1d-git/include -Xclang -fcolor-diagnostics -DNDEBUG -pipe -Wall -Winvalid-pch -Wextra -std=c99 -O3 -D_POSIX_C_SOURCE=200112L -fvisibility=hidden -Wundef -Werror=vla -Wno-missing-field-initializers -Wno-unused-parameter -Werror=missing-prototypes -Wshorten-64-to-32 -fomit-frame-pointer -ffast-math -MD -MQ 'tools/f9d35d4@@dav1d@exe/dav1d.c.o' -MF 'tools/f9d35d4@@dav1d@exe/dav1d.c.o.d' -o 'tools/f9d35d4@@dav1d@exe/dav1d.c.o' -c ../src/dav1d-git/tools/dav1d.c ../src/dav1d-git/tools/dav1d.c:69:12: error: unknown type name 'mach_timebase_info_data_t' static mach_timebase_info_data_t info; ^ ../src/dav1d-git/tools/dav1d.c:71:9: warning: implicit declaration of function 'mach_timebase_info' is invalid in C99 [-Wimplicit-function-declaration] mach_timebase_info(&info); ^ ../src/dav1d-git/tools/dav1d.c:73:12: warning: implicit declaration of function 'mach_absolute_time' is invalid in C99 [-Wimplicit-function-declaration] return mach_absolute_time() * info.numer / info.denom; ^
Without looking through the code or the build files, I'd say
#include <mach/mach_time.h>
is missing.Edited by Helmut K. C. Tessarek- Janne Grunau closed via merge request !724 (merged)
closed via merge request !724 (merged)
- Janne Grunau closed via commit 79e4a5f7
closed via commit 79e4a5f7
- Henrik Gramner mentioned in merge request !755 (merged)
mentioned in merge request !755 (merged)
- Jean-Baptiste Kempf changed milestone to %0.4.0 - Cheetah
changed milestone to %0.4.0 - Cheetah
- Author
This seems to have reappeared, as I'm no longer able to compile on macOS with clang 11.
This looks related to a52459b3
Collapse replies - Author
The error is during cmake this time:
Checking for function "clock_gettime" : NO Library rt found: NO Checking for function "clock_gettime" with dependency -lrt: NO (cached) meson.build:128:12: ERROR: Problem encountered: clock_gettime not found
- Developer
I guess the
clock_gettime
checks at https://code.videolan.org/videolan/dav1d/blob/master/meson.build#L123 should be placed inside anif host_machine.system() != 'darwin'
block.Edited by Henrik Gramner - Developer
@Zeranoe can you confirm if !853 (closed) (patch) fixes it?
Edited by Henrik Gramner - Author
It does, thank you for the quick assistance.
- Please register or sign in to reply
- Kyle Schwarz reopened
reopened
- Henrik Gramner mentioned in merge request !853 (closed)
mentioned in merge request !853 (closed)
- Janne Grunau mentioned in merge request !854 (merged)
mentioned in merge request !854 (merged)
- Jean-Baptiste Kempf closed via merge request !854 (merged)
closed via merge request !854 (merged)