Project

General

Profile

Actions

Bug #3722

closed

osmo_clock_gettime broke build on MacOS

Added by pespin over 5 years ago. Updated over 4 years ago.

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

100%

Spec Reference:

Actions #2

Updated by pespin over 5 years 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

Actions #3

Updated by Mic92 over 5 years 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

Actions #4

Updated by pespin over 5 years 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

Actions #5

Updated by osmith about 5 years ago

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

Updated by osmith about 5 years ago

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

Updated by pespin almost 5 years ago

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

Actions #8

Updated by pespin almost 5 years ago

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

Actions #9

Updated by pespin over 4 years ago

Reached back NixOS guys in https://github.com/NixOS/nixpkgs/pull/66954 to know current status regarding issues related to this ticket.

Actions #10

Updated by pespin over 4 years ago

  • 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.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)