mesa: d1edf6e3962e187a1213dd4064ba3b6fb6c3ea4f (master 17.4.0-devel) u_queue.c:173:7: error: implicit declaration of function 'timespec_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration] timespec_get(&ts, TIME_UTC); ^
Created attachment 135413 [details] [review] proposed patch Hi, when building Android, I see a similar error. external/mesa/src/util/u_queue.c:173: error: undefined reference to 'timespec_get' clock_gettime(CLOCK_REALTIME, &ts) is equivalent to timespec_get(&ts, TIME_UTC) but has the advantage that avoids the building error. Proposed patch is in the attachement. Mauro Rossi
See also https://lists.freedesktop.org/archives/mesa-dev/2017-November/176381.html
commit 2e3d0dd6c8f405f27d68b1ac35e928233bf8b89c
Back again with Xcode 11/macOS Catalina. ../src/util/u_queue.c:176:7: error: implicit declaration of function 'timespec_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration] clang --version Apple clang version 11.0.0 (clang-1100.0.32.5) Target: x86_64-apple-darwin19.0.0 Thread model: posix InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Sorry, I broke this again. Here is a fix https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1753 Let me know if it helps, thanks.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1020.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.