Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Build OSX Cocoa application with go_1_{18,19} will failed #210558

Open
junchih opened this issue Jan 13, 2023 · 5 comments
Open

Build OSX Cocoa application with go_1_{18,19} will failed #210558

junchih opened this issue Jan 13, 2023 · 5 comments
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: golang

Comments

@junchih
Copy link

junchih commented Jan 13, 2023

Describe the bug

Building Cocoa application will fail if with go_1_{18,19}, other golang version was not tested. And if I remove the golang dependency, it will just work.

Steps To Reproduce

# default.nix
{ pkgs ? import <nixpkgs> { }
, ...
}:
pkgs.stdenv.mkDerivation {
  pname = "cocoa_nix";
  version = "0.0";
  src = ./.;
  buildInputs = with pkgs; [
    clang
    go_1_19
    darwin.apple_sdk.frameworks.QuartzCore
    darwin.apple_sdk.frameworks.Cocoa
  ];
  buildPhase = ''
    clang -x objective-c -framework Cocoa -framework QuartzCore blabla.c
  '';
  installPhase = ''
    mkdir -p "$out"
    mv a.out "$out/"
  '';
}
// blabla.c
#import <Cocoa/Cocoa.h>
#import <QuartzCore/CAMetalLayer.h>

int main() {
}

Expected behavior

nix-build command should be success

Metadata

Host, macOS Ventura 13.1

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 22.2.0, macOS 10.16`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.12.0`
 - channels(jack): `"nixpkgs"`
 - nixpkgs: `/Users/jack/.nix-defexpr/channels/nixpkgs`
@junchih junchih added the 0.kind: bug Something is broken label Jan 13, 2023
@junchih
Copy link
Author

junchih commented Jan 13, 2023

And my error log,

this derivation will be built:
  /nix/store/9fyz1fhr909chcjvh5rsh1p6d3kmym8v-cocoa_nix-0.0.drv
building '/nix/store/9fyz1fhr909chcjvh5rsh1p6d3kmym8v-cocoa_nix-0.0.drv'...
unpacking sources
unpacking source archive /nix/store/sapgqvcp0jhr6lr9lsyvy56saa20nfxg-cocoa_nix
source root is cocoa_nix
patching sources
configuring
no configure script, doing nothing
building
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:26:51: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncGenericGrayProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);          /* com.apple.ColorSync.GenericGray  */
                                                  ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:27:58: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncGenericGrayGamma22Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);   /* com.apple.ColorSync.GenericGrayGamma2.2  */
                                                         ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:28:50: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncGenericRGBProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);           /* com.apple.ColorSync.GenericRGB   */
                                                 ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:29:51: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncGenericCMYKProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);          /* com.apple.ColorSync.GenericCMYK  */
                                                  ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:30:49: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncDisplayP3Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);            /* com.apple.ColorSync.DisplayP3 */
                                                ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:31:44: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncSRGBProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);                 /* com.apple.ColorSync.sRGB         */
                                           ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:32:52: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncAdobeRGB1998Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);         /* com.apple.ColorSync.AdobeRGB1998 */
                                                   ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:33:50: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncGenericLabProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);           /* com.apple.ColorSync.GenericLab */
                                                 ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:34:50: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncGenericXYZProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);           /* com.apple.ColorSync.GenericXYZ */
                                                 ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:36:52: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncACESCGLinearProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);         /* com.apple.ColorSync.ACESCGLinear */
                                                   ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:37:45: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncDCIP3Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);                /* com.apple.ColorSync.DCIP3 */
                                            ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:38:47: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncITUR709Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);              /* com.apple.ColorSync.ITUR709 */
                                              ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:39:48: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncITUR2020Profile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);             /* com.apple.ColorSync.ITUR2020 */
                                               ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:40:47: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncROMMRGBProfile CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);              /* com.apple.ColorSync.ROMMRGB */
                                              ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:42:46: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncProfileHeader CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);      /* com.apple.ColorSync.ProfileHeader */
                                             ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:43:45: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncProfileClass CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);       /* com.apple.ColorSync.ProfileClass */
                                            ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:44:50: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncProfileColorSpace CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);  /* com.apple.ColorSync.ProfileColorSpace */
                                                 ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:45:43: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncProfilePCS CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);         /* com.apple.ColorSync.PCS */
                                          ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
In file included from blabla.c:1:
In file included from /nix/store/5nnmx7flyahmkkwbg3ki5s98qd34n571-apple-framework-Cocoa/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:158:
In file included from /nix/store/jwfrmvkvgqxqcb4a2w92nsyg2lj0gkxn-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8:
In file included from /nix/store/8xhpgk4vbpjyfns9r5hkpyv1mfhfaisa-apple-framework-ApplicationServices/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:31:
In file included from /nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:11:
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h:46:43: error: expected ';' after top level declarator
CSEXTERN CFStringRef kColorSyncProfileURL CS_AVAILABLE_PUBLIC_STARTING(10.4, CS_UNAVAILABLE_PUBLIC_EMBEDDED);         /* com.apple.ColorSync.ProfileURL */
                                          ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:99:71: note: expanded from macro 'CS_AVAILABLE_PUBLIC_STARTING'
#define CS_AVAILABLE_PUBLIC_STARTING(_1,_2) CS_AVAILABLE_STARTING(_1) CS_UNAVAILABLE_EMBEDDED
                                                                      ^
/nix/store/p2ki2y00pb3n53046wds8pplydkgvrr4-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:96:69: note: expanded from macro 'CS_UNAVAILABLE_EMBEDDED'
#define CS_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos, macCatalyst)
                                                                    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: builder for '/nix/store/9fyz1fhr909chcjvh5rsh1p6d3kmym8v-cocoa_nix-0.0.drv' failed with exit code 1

@junchih junchih closed this as completed Jan 13, 2023
@junchih junchih reopened this Jan 13, 2023
@junchih junchih closed this as completed Jan 13, 2023
@junchih junchih changed the title How to build OSX Cocoa application with nix-build Build OSX Cocoa application with go_1_{18,19} will failed Jan 13, 2023
@junchih
Copy link
Author

junchih commented Jan 13, 2023

Sorry for the close/open operating. I've tested a lot with my own complicated default.nix. And when I try to abstract to a simple project to submit an issue. I just got my brain messed, LOL.

@junchih junchih reopened this Jan 13, 2023
@wegank
Copy link
Member

wegank commented Jan 13, 2023

Does it work with pkgs.darwin.apple_sdk_11_0.stdenv.mkDerivation and darwin.apple_sdk_11_0.frameworks?

@junchih
Copy link
Author

junchih commented Jan 14, 2023

Thanks, @wegank , that seems work for me. Also additionally, we should remove clang dependency, seems apple_sdk_11_0.stdenv got the right clang wrapped.

And do we have any idea of the root cause? My original build file only needs to remove an unnecessary and useless go_1_19 package, that's weird.

@wegank
Copy link
Member

wegank commented Jan 14, 2023

I guess some Apple frameworks from macOS 11 SDK were propagated from Go (00336e2), while x86_64-darwin still defaults to those from 10.12, so we got the SDKs mixed up.

This type of issue will not occur again once #101229 is resolved.

@alyssais alyssais added 6.topic: darwin Running or building packages on Darwin 6.topic: golang labels Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: golang
Projects
None yet
Development

No branches or pull requests

3 participants