I am following the build instructions for Ubuntu 20.04 on Ubuntu 21.04 and for some reason it seems TARGET_OS_EMBEDDED is not getting defined. The same error also happened for Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h and I manually removed the if because I know I'm building them for macOS but it seems like quite a few files use TARGET_OS_EMBEDDED.
In file included from /home/stackotter/darling/darling/src/kernel/emulation/linux/unistd/getgroups.c:6:
/home/stackotter/darling/darling/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:200:5: error: 'TARGET_OS_EMBEDDED' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_EMBEDDED
Build Log
I am following the build instructions for Ubuntu 20.04 on Ubuntu 21.04 and for some reason it seems TARGET_OS_EMBEDDED is not getting defined. The same error also happened for
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h
and I manually removed the if because I know I'm building them for macOS but it seems like quite a few files useTARGET_OS_EMBEDDED
.System Information