https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90808
--- Comment #7 from Jürgen Reuter <juergen.reuter at desy dot de> --- Yes, there two things. The missing library comes from the fact that I didn't install the system header and libraries under /usr/. I copied the files, now I get these warnings (but everything works): ld: warning: text-based stub file /usr/lib/system/libsystem_notify.tbd and library file /usr/lib/system/libsystem_notify.dylib are out of sync. Falling back to library file for linking. ld: warning: text-based stub file /usr/lib/system/libsystem_sandbox.tbd and library file /usr/lib/system/libsystem_sandbox.dylib are out of sync. Falling back to library file for linking. ... etc.