https://osmocom.org/https://osmocom.org/favicon.ico?16647414092018-12-09T00:49:55ZOpen Source Mobile Communicationslibosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=128662018-12-09T00:49:55Zpespin
<ul></ul><p>Some related threads:</p>
<p><a class="external" href="https://gitlab.com/esr/cvs-fast-export/issues/17">https://gitlab.com/esr/cvs-fast-export/issues/17</a><br /><a class="external" href="https://github.com/sysrepo/sysrepo/issues/840">https://github.com/sysrepo/sysrepo/issues/840</a><br /><a class="external" href="https://projects.universe-factory.net/issues/239">https://projects.universe-factory.net/issues/239</a></p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=128672018-12-09T00:51:39Zpespin
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>90</i></li></ul><p>I submitted following patch which I hope should fix the issue:</p>
<p><a class="external" href="https://gerrit.osmocom.org/#/c/libosmocore/+/12210">https://gerrit.osmocom.org/#/c/libosmocore/+/12210</a> timer: Fix clockid_t undefined on MacOS < 10.12</p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=128682018-12-09T09:20:31ZMic92
<ul></ul><p>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.<br />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.<br />The macOS version installed on the builder should not matter since the nixpkgs buildsystem is isolated from that.<br />After we applied: <a class="external" href="https://github.com/NixOS/nixpkgs/blob/21dd6419f7d12daa0cb644b14caac6279b205206/pkgs/applications/misc/libosmocore/darwin-clockid_t.patch">https://github.com/NixOS/nixpkgs/blob/21dd6419f7d12daa0cb644b14caac6279b205206/pkgs/applications/misc/libosmocore/darwin-clockid_t.patch</a><br />we got the following error: <a class="external" href="https://gist.github.com/Mic92/06c8872657e306f2ac9500e9ecf57b5d">https://gist.github.com/Mic92/06c8872657e306f2ac9500e9ecf57b5d</a><br />I also contacted the contributor that enabled the package build on the macOS: <a class="external" href="https://github.com/NixOS/nixpkgs/pull/51742#issuecomment-445522194">https://github.com/NixOS/nixpkgs/pull/51742#issuecomment-445522194</a></p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=128722018-12-10T10:01:28Zpespin
<ul></ul><p>Hi, you can try applying this one on top and trying again:<br /><a class="external" href="https://gerrit.osmocom.org/#/c/libosmocore/+/12212">https://gerrit.osmocom.org/#/c/libosmocore/+/12212</a> stats.h: Fix build on MacOS</p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=132112019-02-01T09:22:30Zosmith
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-3 priority-2 priority-default closed" href="/issues/3725">Bug #3725</a>: Jenkins isn't using the credentials store for uploading to rita.osmocom.org</i> added</li></ul> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=132132019-02-01T09:22:51Zosmith
<ul><li><strong>Related to</strong> deleted (<i><a class="issue tracker-1 status-3 priority-2 priority-default closed" href="/issues/3725">Bug #3725</a>: Jenkins isn't using the credentials store for uploading to rita.osmocom.org</i>)</li></ul> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=139912019-04-15T13:50:55Zpespin
<ul></ul><p>Catched up regarding this issue in <a class="external" href="https://github.com/NixOS/nixpkgs/pull/54778">https://github.com/NixOS/nixpkgs/pull/54778</a></p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=140802019-04-22T17:57:52Zpespin
<ul></ul><p>Investigation continued here: <a class="external" href="https://github.com/NixOS/nixpkgs/pull/57038">https://github.com/NixOS/nixpkgs/pull/57038</a></p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=160452019-09-20T10:38:38Zpespin
<ul></ul><p>Reached back NixOS guys in <a class="external" href="https://github.com/NixOS/nixpkgs/pull/66954">https://github.com/NixOS/nixpkgs/pull/66954</a> to know current status regarding issues related to this ticket.</p> libosmocore - Bug #3722: osmo_clock_gettime broke build on MacOShttps://osmocom.org/issues/3722?journal_id=164992019-11-21T16:54:45Zpespin
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>90</i> to <i>100</i></li></ul><p>Apparently guys from NixOS are not building libosmocore for MacOS systems anymore, see <a class="external" href="https://github.com/NixOS/nixpkgs/pull/66954#issuecomment-544105848">https://github.com/NixOS/nixpkgs/pull/66954#issuecomment-544105848</a></p>
<p>Closing the ticket. Anybody can re-open it or open a new one with a specific issue again when trying to build against MacOS.</p>