Project

General

Profile

Bug #3722

osmo_clock_gettime broke build on MacOS

Added by pespin 8 months ago. Updated 3 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
libosmocore
Target version:
-
Start date:
12/09/2018
Due date:
% Done:

90%

Spec Reference:

History

#2 Updated by pespin 8 months 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 8 months 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 8 months 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

#5 Updated by osmith 6 months ago

  • Related to Bug #3725: Jenkins isn't using the credentials store for uploading to rita.osmocom.org added

#6 Updated by osmith 6 months ago

  • Related to deleted (Bug #3725: Jenkins isn't using the credentials store for uploading to rita.osmocom.org)

#7 Updated by pespin 3 months ago

Catched up regarding this issue in https://github.com/NixOS/nixpkgs/pull/54778

#8 Updated by pespin 3 months ago

Investigation continued here: https://github.com/NixOS/nixpkgs/pull/57038

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)