Opened 4 months ago

Last modified 2 months ago

#65626 assigned defect

llvm-devel @20220731: build fails on < 10.10 due to lack of <pthread/qos.h>

Reported by: kencu (Ken) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: llvm-devel llvm-15


This llvm commit brought in new thread priority functions for Apple systems:

the features used include those in <pthread/qos.h>, which is available from from macOS 10.10 onward.

Change History (6)

comment:1 Changed 4 months ago by kencu (Ken)

Owner: set to cjones051073
Status: newassigned

comment:2 Changed 2 months ago by cjones051073 (Chris Jones)

llvm-15 is now also affected by this.

comment:3 Changed 2 months ago by cjones051073 (Chris Jones)

Port: llvm-15 added

comment:4 Changed 2 months ago by kencu (Ken)

this one looks fixable for older systems, but would require modest effort to ifdef around.

I don’t know how easy it might be to add an implementation of this to older systems, using what they can provide to mimic <pthread/qos.h>. That effort might be generally more useful.

comment:5 Changed 2 months ago by cjones051073 (Chris Jones)

That would I guess be something for legacy-support ...

comment:6 Changed 2 months ago by Chris Jones <jonesc@…>

In fb913acd1caef94ad238305f082fa5889dce852c/macports-ports (master):

LLVM 15: Restrict (at least for now) to macOS 10.10 and newer
See: #65626

Note: See TracTickets for help on using tickets.