Opened 5 years ago

Last modified 3 years ago

#59780 assigned defect

cmake fails to build on Leopard 10.5: error: 'shared_mutex' is unavailable: introduced in macOS 10.12

Reported by: rmottola (Riccardo) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc: kencu (Ken), cooljeanius (Eric Gallager)
Port: cmake

Description

I don't understand what fails, I attach the buildlog with clang 5, it fails also clang 7 as well with the default compiler.

Attachments (1)

main.log (1.1 MB) - added by rmottola (Riccardo) 5 years ago.
build on 10.7 with clang 5

Download all attachments as: .zip

Change History (13)

Changed 5 years ago by rmottola (Riccardo)

Attachment: main.log added

build on 10.7 with clang 5

comment:1 Changed 5 years ago by kencu (Ken)

Lots of errors, working on it.

PPC is a long way from fixed.

Even Intel might be trouble:

error: 'shared_mutex' is unavailable: introduced in macOS 10.12

for now, we're going to have to hang back to 3.15 on a number of systems...

Version 0, edited 5 years ago by kencu (Ken) (next)

comment:2 Changed 5 years ago by kencu (Ken)

Owner: set to michaelld
Status: newassigned

comment:3 Changed 5 years ago by kencu (Ken)

Summary: cmake fails to build on Lion 10.5cmake fails to build on Lion 10.5: error: 'shared_mutex' is unavailable: introduced in macOS 10.12

comment:4 Changed 5 years ago by kencu (Ken)

Cc: kencu added

comment:5 Changed 5 years ago by kencu (Ken)

by the way, I think I've mentioned this to you before, but I do keep a reasonably up-to-date set of overlay repos for older systems that pegs (or fixes) these ports when I find them broken and unpegs them when we/I get around to fixing them in MacPorts. There's also a nice version of libsdl2 that works on 10.4 and 10.5 there.

https://github.com/kencu/TigerPorts
https://github.com/kencu/LeopardPorts
https://github.com/kencu/SnowLeopardPorts
https://github.com/kencu/LionPorts

Last edited 5 years ago by kencu (Ken) (previous) (diff)

comment:6 Changed 5 years ago by kencu (Ken)

Summary: cmake fails to build on Lion 10.5: error: 'shared_mutex' is unavailable: introduced in macOS 10.12cmake fails to build on Leopard 10.5: error: 'shared_mutex' is unavailable: introduced in macOS 10.12

comment:7 Changed 5 years ago by kencu (Ken)

Keywords: leopard added

comment:8 Changed 4 years ago by michaelld (Michael Dickens)

cmake 3.18.0 builds cleanly for me on 10.5 PPC(32) using whatever compiler port selects. Please update the ports & see if this fixes the issue.

comment:9 Changed 4 years ago by rmottola (Riccardo)

I just retried today it is version cmake-v3.19.1-64fb825438a2fecb9eab9933d5d1b926bf6f294b I tried on 10.5 Intel(64) and got this error again, did you fix something and the fix got lost? I build using clang-7. I actually wonder why I did not get this issue on 10.6 and 10.7 which I updated a couple of days ago, if the 10.12 message is correct

comment:10 Changed 4 years ago by rmottola (Riccardo)

seems gcc7 works? strange!

comment:11 Changed 4 years ago by kencu (Ken)

I think it has something to do with the __config header in the clang-7.0 libc++ headers. The availability is probably not set right for the new libcxx I install on Leopard i386.

I fixed that in newer clangs, but I think I never got around to backdating that fix to clang-7.0.

see <https://github.com/macports/macports-ports/blob/master/lang/llvm-9.0/files/5005-MacPorts-only-patch-libcxx-includes-disable-availability-tests.diff>.

comment:12 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.