Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
emidoots opened this issue Nov 21, 2021 · 0 comments · Fixed by #10215
Closed

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

emidoots opened this issue Nov 21, 2021 · 0 comments · Fixed by #10215
Labels
bug Observed behavior contradicts documented or intended behavior os-macos
Milestone

Comments

@emidoots
Copy link

emidoots commented Nov 21, 2021

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

@emidoots emidoots added the bug Observed behavior contradicts documented or intended behavior label Nov 21, 2021
@andrewrk andrewrk added this to the 0.9.0 milestone Nov 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Observed behavior contradicts documented or intended behavior os-macos
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants