osmo_clock_gettime broke build on MacOS
- Status changed from New to Feedback
- % Done changed from 0 to 90
I submitted following patch which I hope should fix the issue:
https://gerrit.osmocom.org/#/c/libosmocore/+/12210 timer: Fix clockid_t undefined on MacOS < 10.12
I don't have access to the machines that are building these packages so I can only get the information from the logs and my knowledge.
The sdk version should be 10.11.6. Nixpkgs uses clang 5 at the moment by default, however it could be also swapped out with a different version for a particular build.
The macOS version installed on the builder should not matter since the nixpkgs buildsystem is isolated from that.
After we applied: https://github.com/NixOS/nixpkgs/blob/21dd6419f7d12daa0cb644b14caac6279b205206/pkgs/applications/misc/libosmocore/darwin-clockid_t.patch
we got the following error: https://gist.github.com/Mic92/06c8872657e306f2ac9500e9ecf57b5d
I also contacted the contributor that enabled the package build on the macOS: https://github.com/NixOS/nixpkgs/pull/51742#issuecomment-445522194
Hi, you can try applying this one on top and trying again:
https://gerrit.osmocom.org/#/c/libosmocore/+/12212 stats.h: Fix build on MacOS