Skip to content

aarch64-macos-gnu, any-macos-any headers need to be updated for macOS 12.0 Monterey #10200

@emidoots

Description

@emidoots

Zig Version

0.9.0-dev.1696+ff9a44a9f

Steps to Reproduce

I believe we need to regenerate the macOS libc headers to include changes from macOS 12.0 Monterey.


(1) libc headers for aarch64-macos-gnu report only macOS 11.1 being available (12.0 Monterey is the newest), which can cause issues when trying to compile some code. I believe I'm facing this in hexops/mach#84

(2) sys/cdefs.h currently does not define these as empty, which the latest header file from the macOS 12.0 SDK does:

#define __kernel_ptr_semantics
#define __kernel_data_semantics
#define __kernel_dual_semantics

This makes it impossible to supply macOS 12.0 frameworks and compile their headers, as e.g. definitions in IOKit/IOTypes.h become syntactically invalid:

typedef mach_vm_address_t       IOVirtualAddress __kernel_ptr_semantics;

Expected Behavior

The headers reflect macOS 12

Actual Behavior

They do not reflect macOS 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-macosmacOS

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions