Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266248

Compilation failure in PLATFORM_API_MacOSX_MidiUtils.c with Xcode 12.5

XMLWordPrintable

    • b21
    • aarch64
    • os_x

        Dmitry reports:

        After upgrade to macOS 11.3 on aarch64 and with XCode 12.5 consistently getting the following for 'make images'

        src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c:258:31: error: cast to smaller integer type 'MIDIClientRef' (aka 'unsigned int') from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
        static MIDIClientRef client = (MIDIClientRef) NULL;
                                      ^~~~~~~~~~~~~~~~~~~~
        /jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c:259:29: error: cast to smaller integer type 'MIDIPortRef' (aka 'unsigned int') from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
        static MIDIPortRef inPort = (MIDIPortRef) NULL;
                                    ^~~~~~~~~~~~~~~~~~
        /jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c:260:30: error: cast to smaller integer type 'MIDIPortRef' (aka 'unsigned int') from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
        static MIDIPortRef outPort = (MIDIPortRef) NULL;
                                     ^~~~~~~~~~~~~~~~~~
        /jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c:466:32: error: cast to smaller integer type 'MIDIEndpointRef' (aka 'unsigned int') from 'void *' [-Werror,-Wvoid-pointer-to-int-cast]
            MIDIEndpointRef endpoint = (MIDIEndpointRef) NULL;
                                       ^~~~~~~~~~~~~~~~~~~~~~
        4 errors generated.
        make[3]: *** [/jdk/build/macosx-aarch64-server-release/support/native/java.desktop/libjsound/PLATFORM_API_MacOSX_MidiUtils.o] Error 1
        make[3]: *** Waiting for unfinished jobs....
        make[2]: *** [java.desktop-libs] Error 2
        make[2]: *** Waiting for unfinished jobs....
        ERROR: Build failed for targets 'clean all' in configuration 'macosx-aarch64-server-release' (exit code 2)

              serb Sergey Bylokhov
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: