ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

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

Open aidenzepp opened this issue 9 months ago • 2 comments

Ebitengine Version

2

Operating System

  • [ ] Windows
  • [X] 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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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.

aidenzepp avatar Apr 26 '24 16:04 aidenzepp

Thanks, I'll take a look.

hajimehoshi avatar Apr 26 '24 16:04 hajimehoshi

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.

alterae avatar May 19 '24 16:05 alterae

I also encountered a similar issue. On macOS 15 beta, running a "hello world" program works fine, but when I try to use GoLand's debug feature or run the program with dlv, I get an error.

Error message:

Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.
Exiting.
could not launch process: could not read debug info (decoding dwarf section info at offset 0x0: too short) and could not read go symbol table (could not find rodata struct member)

bcocgs21494 avatar Jul 05 '24 09:07 bcocgs21494

I also encountered a similar issue. On macOS 15 beta, running a "hello world" program works fine, but when I try to use GoLand's debug feature or run the program with dlv, I get an error.

Error message:

Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.
Exiting.
could not launch process: could not read debug info (decoding dwarf section info at offset 0x0: too short) and could not read go symbol table (could not find rodata struct member)

What version of Goland are you using? I was able to debug with Goland 2024.1.4 and MacOS Sonoma 14.5 with an M1 chip. If you have the latest Goland I wonder if it's related to the beta mac version?

sgerhardt avatar Jul 15 '24 14:07 sgerhardt

Probably it is not a fixable issue if you use LLVM from Homebrew. We would like to make Ebitengine pure Go for macOS, and this should fix the issue in the future. #1162

hajimehoshi avatar Jul 25 '24 17:07 hajimehoshi