Opened 8 weeks ago

Closed 5 weeks ago

#62061 closed defect (fixed)

mesa @19.0.8 build failure on 10.11: clock_gettime unavailable

Reported by: dbl001 (dbl) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: mascguy (Christopher Nielsen), DaveStrickland (Dave Strickland), chrstphrchvz (Christopher Chavez)
Port: mesa

Description

OS X 10.11.6

$ port list mesa
mesa                           @19.0.8         x11/mesa

../include/c11/threads_posix.h:391:23: error: use of undeclared identifier 'CLOCK_REALTIME'
:info:build         clock_gettime(CLOCK_REALTIME, ts);

Attachments (2)

main.log (53.1 KB) - added by dbl001 (dbl) 8 weeks ago.
wireshark3-patch-fix-clock_realtime.diff (976 bytes) - added by mascguy (Christopher Nielsen) 7 weeks ago.

Download all attachments as: .zip

Change History (12)

Changed 8 weeks ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 8 weeks ago by jmroot (Joshua Root)

Keywords: Mesa removed
Owner: set to jeremyhu
Port: mesa added; mesa-19.0.8_0 removed
Status: newassigned
Summary: Error: Failed to build mesa: command execution failedmesa @19.0.8 build failure on 10.11: clock_gettime unavailable

comment:2 Changed 7 weeks ago by mascguy (Christopher Nielsen)

Cc: mascguy added

Changed 7 weeks ago by mascguy (Christopher Nielsen)

comment:3 Changed 7 weeks ago by mascguy (Christopher Nielsen)

This should be relatively simple to fix.

You can either adapt the wireshark3 patch I created (attached), or alternatively, the MacPorts legacysupport library might also work.

comment:4 Changed 7 weeks ago by DaveStrickland (Dave Strickland)

Cc: DaveStrickland added

comment:5 Changed 7 weeks ago by chrstphrchvz (Christopher Chavez)

This ticket was opened shortly after I submitted https://github.com/macports/macports-ports/pull/9715, which was merged: [aa73b0f964/macports-ports]. Should this ticket be closed?

comment:6 Changed 7 weeks ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:7 Changed 7 weeks ago by kencu (Ken)

dunno. did the commit fix anything?

comment:8 Changed 7 weeks ago by dbl001 (dbl)

It's working now:

 port upgrade outdated
(base) MacBook-Pro:clamav-devel davidlaxer$ sudo port upgrade outdated
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for mesa
--->  Fetching archive for mesa
--->  Attempting to fetch mesa-19.0.8_0+osmesa+python27.darwin_15.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/mesa
--->  Attempting to fetch mesa-19.0.8_0+osmesa+python27.darwin_15.x86_64.tbz2 from https://kmq.jp.packages.macports.org/mesa
--->  Attempting to fetch mesa-19.0.8_0+osmesa+python27.darwin_15.x86_64.tbz2 from https://mse.uk.packages.macports.org/mesa
--->  Fetching distfiles for mesa
--->  Verifying checksums for mesa
--->  Extracting mesa
--->  Applying patches to mesa
--->  Configuring mesa
--->  Building mesa
--->  Staging mesa into destroot
--->  Installing mesa @19.0.8_0+osmesa+python27
--->  Cleaning mesa
--->  Computing dependencies for mesa
--->  Deactivating mesa @17.3.9_0+osmesa+python27
--->  Cleaning mesa
--->  Activating mesa @19.0.8_0+osmesa+python27
--->  Cleaning mesa

comment:9 Changed 7 weeks ago by chrstphrchvz (Christopher Chavez)

Builders now report success on 10.7 and later: https://ports.macports.org/port/mesa/builds

comment:10 Changed 5 weeks ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.