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

MacOS Failure in Running 'Hello, World!' Tutorial Example #2969

Open
1 of 11 tasks
aidenzepp opened this issue Apr 26, 2024 · 2 comments
Open
1 of 11 tasks

MacOS Failure in Running 'Hello, World!' Tutorial Example #2969

aidenzepp opened this issue Apr 26, 2024 · 2 comments

Comments

@aidenzepp
Copy link

aidenzepp commented Apr 26, 2024

Ebitengine Version

2

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

1.22

What steps will reproduce the problem?

Following the steps of the 'Hello, World!' tutorial (https://ebitengine.org/en/tour/hello_world.html):

  1. mkdir foo
  2. cd foo
  3. go mod init foo
  4. go get github.com/hajimehoshi/ebiten/v2
  5. touch main.go
  6. Copy-paste the example (see the link above) into main.go
  7. go mod tidy
  8. go run main.go

What is the expected result?

A screen with the text "Hello, World!" (see the link above).

What happens instead?

A set of (41) error messages is outputted:

# github.com/hajimehoshi/ebiten/v2/internal/glfw
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:26:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:20:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h:138:5: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
    CFAttributedStringRef attrString ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:26:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:21:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:102:5: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
    CFAttributedStringRef string ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:26:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:21:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:129:5: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
    CFAttributedStringRef string,
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:26:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:82:5: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
    CFAttributedStringRef attrString ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:35:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbar.h:26:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Menus.h:882:3: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
  CFAttributedStringRef  attributedText;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIView.h:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Controls.h:477:5: error: unknown type name 'IconRef'
    IconRef             iconRef;
    ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:39:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIView.h:30:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:1470:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *                   outShape)                    AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:1881:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *                 outShape)                      AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:2216:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *        outShape)                               AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:2262:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *        outShape)                               AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:2302:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *                outShape)                       AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:2341:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *                outShape)                       AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:2901:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *                  outThumbShape)                AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h:3541:3: error: unknown type name 'HIShapeRef'
  HIShapeRef *                   outShape)                    AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
  ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:39:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIView.h:561:5: error: unknown type name 'IconRef'
    IconRef             iconRef;
    ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:83:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Dialogs.h:702:3: error: unknown type name 'IconRef'
  IconRef             icon;
  ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/OpenScripting.framework/Headers/OpenScripting.h:30:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/OpenScripting.framework/Headers/OSA.h:676:3: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
  CFAttributedStringRef *  result)                            __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/OpenScripting.framework/Headers/OpenScripting.h:30:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/OpenScripting.framework/Headers/OSA.h:1183:3: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'?
  CFAttributedStringRef *  result)                            __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef;
                                                                     ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:36:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/CommonPanels.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:139:3: error: unknown type name 'CMProfileRef'
  CMProfileRef        profile;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:140:3: error: unknown type name 'CMColor'
  CMColor             color;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:328:3: error: unknown type name 'CMProfileRef'
  CMProfileRef        dstProfile;             /* Currently ignored */
  ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:36:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/CommonPanels.h:37:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/CMCalibrator.h:54:3: error: unknown type name 'CMDisplayIDType'
  CMDisplayIDType     displayID;              /* Contains an hDC on Win32 */
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/CMCalibrator.h:56:3: error: unknown type name 'CMProfileLocation'
  CMProfileLocation * profileLocationPtr;     /* For returning the profile */
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/CMCalibrator.h:61:55: error: unknown type name 'CMDisplayIDType'
typedef CALLBACK_API( Boolean , CanCalibrateProcPtr )(CMDisplayIDType displayID, Str255 errMessage);
                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/CMCalibrator.h:154:3: error: unknown type name 'CMDisplayIDType'
  CMDisplayIDType  displayID,
  ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:56:3: error: unknown type name 'AFPServerSignature'; did you mean 'CFSocketSignature'?
  AFPServerSignature *  serverSignature,
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h:110:3: note: 'CFSocketSignature' declared here
} CFSocketSignature;
  ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:63:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *           item)                  /* can be NULL */ AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:87:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *   item)                 /* can be NULL */       AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:112:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *   item)                 /* can be NULL */       AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:132:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *   item)                 /* can be NULL */       AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:148:11: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
KCAddItem(KCItemRef item)                                     AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:165:3: error: unknown type name 'KCRef'
  KCRef       keychain,       /* can be NULL */
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:183:3: error: unknown type name 'KCRef'
  KCRef *     keychain)       /* can be NULL */               AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:198:18: error: unknown type name 'KCRef'
KCChangeSettings(KCRef keychain)                              AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:214:3: error: unknown type name 'KCRef'
  KCRef         keychain,       /* can be NULL */
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:232:3: error: unknown type name 'KCRef'
  KCRef *       keychain)       /* can be NULL */             AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:248:3: error: unknown type name 'AFPServerSignature'; did you mean 'CFSocketSignature'?
  AFPServerSignature *  serverSignature,
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h:110:3: note: 'CFSocketSignature' declared here
} CFSocketSignature;
  ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:255:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *           item)                  /* can be NULL */ AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:279:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *   item)                 /* can be NULL */       AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:304:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *   item)                 /* can be NULL */       AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
In file included from ../../../../go/pkg/mod/github.com/hajimehoshi/ebiten/v2@v2.7.2/internal/glfw/api_darwin.go:7:
In file included from ./internal_unix.h:94:
In file included from ./cocoa_platform_darwin.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:44:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/SecurityHI.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers/KeychainHI.h:324:3: error: unknown type name 'KCItemRef'; did you mean 'MDItemRef'?
  KCItemRef *   item)                 /* can be NULL */       AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6;
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h:67:47: note: 'MDItemRef' declared here
typedef struct CF_BRIDGED_TYPE(id) __MDItem * MDItemRef;
                                              ^
41 errors generated.

Anything else you feel useful to add?

  • Using Macbook Air 2020 w/ Apple M1 (ARM) chip and MacOS Sonoma v14.4.1.
  • Downloaded Go via the official website (https://go.dev/dl/).
  • Clang is installed.
  • Running xcode-select --install outputs xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates.
  • Checking 'Software Update' in System Settings shows that no updates are available.
  • Running softwareupdate --install -a outputs that no updates are available.
@hajimehoshi
Copy link
Owner

Thanks, I'll take a look.

@alterae
Copy link

alterae commented May 19, 2024

I was having this same issue. At the time, I had llvm 14 installed via homebrew and high on my PATH. Removing it from my PATH seems to have fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants