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

Compilation failure in PLATFORM_API_MacOSX_MidiUtils.c with Xcode 12.5

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      aarch64
    • OS:
      os_x

      Backports

        Description

        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)

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: