osmo_clock_gettime broke build on MacOS
#2 Updated by pespin about 1 year ago
- 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
#3 Updated by Mic92 about 1 year ago
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
#4 Updated by pespin about 1 year ago
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
- Status changed from Feedback to Closed
- % Done changed from 90 to 100
Apparently guys from NixOS are not building libosmocore for MacOS systems anymore, see https://github.com/NixOS/nixpkgs/pull/66954#issuecomment-544105848
Closing the ticket. Anybody can re-open it or open a new one with a specific issue again when trying to build against MacOS.