-
Notifications
You must be signed in to change notification settings - Fork 10
fatal error: 'libDER/DERItem.h' file not found #2
Comments
Hmm I think this may be because I am running on macOS 10.15.7 (Catalina) and you were running on Big Sur. My hunch is that we ideally want to be running fetch-them-macos-headers on the minimum supported macOS version - which is currently 10.13 but soon to be bumped to 10.14. The idea here is that macOS binaries will continue to execute after an OS upgrade, which means if you target the earlier version, it will still work on the later version, but not vice versa. ideally ideally we would have the headers depend on the minimum target OS version in the zig target OS version range. But that might incur more complication than we intend to bear. |
remove libDER header include. that appears to be introduced with Big Sur. See #2
See ziglang/fetch-them-macos-headers#2 for more details. The path forward looks like one of the following: * Ony provide headers for the oldest supported macOS (currently 10.13 but soon to be bumped to 10.14). * Provide headers for multiple versions, and select based on the Zig target OS version range minimum. * Don't try to provide macOS headers. If we don't tackle the version problem, we would have to re-introduce the ability to detect and depend on native system headers if we wanted to support C/C++ code that used newer OS definitions. This patch also adds support for `#include <mach/mach_time.h>`. Also related: #5236
I'm seeing this with current head of zig as well on Big Sur arm64. Error shows the following:
|
The header 'libDER/DERItem.h' is in the macOS-SDK's usr/include subdirectory:
The path to the macOS SDK can be queried with
I fixed this by adding the PS for reference: |
Not related to zig, but if anyone stumbles on this issue with macOS's clang and CommandLineTools on a 10.15 machine, my fix is to run clang / cmake / whatever build tool is used with :
(replace MacOSX11.1.sdk with whatever's the latest on your machine, but for me, with Xcode 12, the 10.15 SDK gives me that error even if I'm on a 10.15 machine so I guess there's a bug in some internal Xcode or macOS thing) |
This is addressed by the new strategy now of shipping multiple versions via the "layers" system. Upstream issue: ziglang/zig#10215 |
what do you have to have installed for this to be present?
The text was updated successfully, but these errors were encountered: