<div dir="ltr"><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">XCode 16.2 worked fine for me. I also see the same warnings with XCode 16.3.</div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">You can manually download XCode via <a href="http://developer.apple.com/download/all/?q=Xcode">http://developer.apple.com/download/all/?q=Xcode</a>. XCode 16.2 is still there right now. Downloading it, unzipping it and putting elsewhere other than /Applications might work if used alongside the `<span style="font-family:Arial,Helvetica,sans-serif">--with-xcode-path` flag Jaikiran mentioned.</span>  </div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I've kept it simple and went with `<span style="font-family:Arial,Helvetica,sans-serif">--disable-warnings-as-errors`, although I can easily swap my nix-shell to using the XCode 16.2 I still have lying around in the Nix store.</span></div></div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks</div></div><div dir="ltr">Galder</div></div></div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Apr 27, 2025 at 9:35 AM Jaikiran Pai <<a href="mailto:jai.forums2013@gmail.com">jai.forums2013@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A previous report too suggests that the JDK build fails (due to compiler <br>
warnings) when using 16.3 of Xcode on macos. Do you have access to a <br>
15.4 version of Xcode instead? If so, then you can use <br>
"--with-xcode-path" during configure to point to that installation of <br>
Xcode and build the JDK (more details in the documentation here <br>
<a href="https://github.com/openjdk/jdk/blob/master/doc/building.md#apple-xcode" rel="noreferrer" target="_blank">https://github.com/openjdk/jdk/blob/master/doc/building.md#apple-xcode</a>). <br>
I believe that version should be fine.<br>
<br>
If you cannot use any other XCode other than 16.3, then you can build <br>
the JDK by using the "--disable-warnings-as-errors" configure option <br>
(more details here <br>
<a href="https://github.com/openjdk/jdk/blob/master/doc/building.md#problems-with-the-build-environment" rel="noreferrer" target="_blank">https://github.com/openjdk/jdk/blob/master/doc/building.md#problems-with-the-build-environment</a>). <br>
Another user has reported previously that this option allowed them to <br>
successfully build with XCode 16.3.<br>
<br>
Long term, the warnings from that part of the code will have to be <br>
investigated in the JDK.<br>
<br>
-Jaikiran<br>
<br>
On 27/04/25 11:30 am, <a href="mailto:mitani@daisuke2.com" target="_blank">mitani@daisuke2.com</a> wrote:<br>
> I have just compiled in the master branch. As a result, I am struggling with the following compilation errors.<br>
><br>
> Configuration summary:<br>
> * Name:           macosx-aarch64-server-release<br>
> * Debug level:    release<br>
> * HS debug level: product<br>
> * JVM variants:   server<br>
> -n * JVM features:<br>
> -n server: 'cds compiler1 compiler2 dtrace epsilongc g1gc jfr jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc'<br>
><br>
> * OpenJDK target: OS: macosx, CPU architecture: aarch64, address length: 64<br>
> * Version string: 25-internal-adhoc.mitani.jdk (25-internal)<br>
> * Source date:    1745733212 (2025-04-27T05:53:32Z)<br>
><br>
> Tools summary:<br>
> * Boot JDK:       openjdk version "24.0.1" 2025-04-15 OpenJDK Runtime Environment Corretto-24.0.1.9.1 (build 24.0.1+9-FR) OpenJDK 64-Bit Server VM Corretto-24.0.1.9.1 (build 24.0.1+9-FR, mixed mode, sharing) (at /Library/Java/JavaVirtualMachines/amazon-corretto-24.jdk/Contents/Home)<br>
> * Toolchain:      clang (clang/LLVM from Xcode 16.3)<br>
> * Sysroot:        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk<br>
> * C Compiler:     Version 17.0.0 (at /usr/bin/clang)<br>
> * C++ Compiler:   Version 17.0.0 (at /usr/bin/clang++)<br>
><br>
><br>
><br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 127 | AudioDeviceID devices[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:126:21: note: declared here<br>
> 126 | int count = size/sizeof(AudioDeviceID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 151 | AudioObjectID controlIDs[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:150:21: note: declared here<br>
> 150 | int count = size / sizeof(AudioObjectID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:483:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 483 | AudioObjectID controlIDs[mixer->deviceControlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:483:38: note: read of non-constexpr variable 'mixer' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:458:16: note: declared here<br>
> 458 | PortMixer *mixer = (PortMixer *)id;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:527:34: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 527 | AudioControl* volumeControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:527:34: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:524:9: note: declared here<br>
> 524 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:32: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 529 | AudioControl* muteControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:32: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:524:9: note: declared here<br>
> 524 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:775:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 775 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:775:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:772:18: note: declared here<br>
> 772 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:824:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 824 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:824:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:818:18: note: declared here<br>
> 818 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> 7 errors generated.<br>
> make[3]: *** [git/jdk/build/macosx-aarch64-server-release/support/native/java.desktop/libjsound/PLATFORM_API_MacOSX_Ports.o] Error 1<br>
> make[3]: *** Waiting for unfinished jobs....<br>
> make[2]: *** [java.desktop-libs] Error 2<br>
> make[2]: *** Waiting for unfinished jobs....<br>
><br>
> ERROR: Build failed for target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release' (exit code 2)<br>
> Stopping javac server<br>
><br>
> === Output from failing command(s) repeated here ===<br>
> * For target support_native_java.desktop_libjsound_PLATFORM_API_MacOSX_Ports.o:<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 127 | AudioDeviceID devices[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:126:21: note: declared here<br>
> 126 | int count = size/sizeof(AudioDeviceID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 151 | AudioObjectID controlIDs[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:150:21: note: declared here<br>
> 150 | int count = size / sizeof(AudioObjectID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:483:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> ... (rest of output omitted)<br>
><br>
> * All command lines available in git/jdk/build/macosx-aarch64-server-release/make-support/failure-logs.<br>
> === End of repeated output ===<br>
><br>
> No indication of failed target found.<br>
> HELP: Try searching the build log for '] Error'.<br>
> HELP: Run 'make doctor' to diagnose build problems.<br>
><br>
> make[1]: *** [main] Error 2<br>
> make: *** [default] Error 2<br>
> make<br>
> Building target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release'<br>
> Creating support/modules_libs/java.desktop/libjsound.dylib from 1 file(s)<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:152:42: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 152 | AudioObjectID controlIDs[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:152:42: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:21: note: declared here<br>
> 151 | int count = size / sizeof(AudioObjectID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:484:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 484 | AudioObjectID controlIDs[mixer->deviceControlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:484:38: note: read of non-constexpr variable 'mixer' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:459:16: note: declared here<br>
> 459 | PortMixer *mixer = (PortMixer *)id;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:528:34: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 528 | AudioControl* volumeControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:528:34: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:525:9: note: declared here<br>
> 525 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:530:32: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 530 | AudioControl* muteControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:530:32: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:525:9: note: declared here<br>
> 525 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:776:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 776 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:776:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:773:18: note: declared here<br>
> 773 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:825:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 825 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:825:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:819:18: note: declared here<br>
> 819 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> 6 errors generated.<br>
> make[3]: *** [git/jdk/build/macosx-aarch64-server-release/support/native/java.desktop/libjsound/PLATFORM_API_MacOSX_Ports.o] Error 1<br>
> make[3]: *** Waiting for unfinished jobs....<br>
> ld: warning: reducing alignment of section __DATA,__common from 0x8000 to 0x4000 because it exceeds segment maximum alignment<br>
> make[2]: *** [java.desktop-libs] Error 2<br>
><br>
> ERROR: Build failed for target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release' (exit code 2)<br>
><br>
> === Output from failing command(s) repeated here ===<br>
> * For target support_native_java.desktop_libjsound_PLATFORM_API_MacOSX_Ports.o:<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:152:42: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 152 | AudioObjectID controlIDs[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:152:42: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:21: note: declared here<br>
> 151 | int count = size / sizeof(AudioObjectID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:484:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 484 | AudioObjectID controlIDs[mixer->deviceControlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:484:38: note: read of non-constexpr variable 'mixer' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:459:16: note: declared here<br>
> 459 | PortMixer *mixer = (PortMixer *)id;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:528:34: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> ... (rest of output omitted)<br>
><br>
> * All command lines available in git/jdk/build/macosx-aarch64-server-release/make-support/failure-logs.<br>
> === End of repeated output ===<br>
><br>
> No indication of failed target found.<br>
> HELP: Try searching the build log for '] Error'.<br>
> HELP: Run 'make doctor' to diagnose build problems.<br>
><br>
> make[1]: *** [main] Error 2<br>
> make: *** [default] Error 2<br>
> make<br>
> Building target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release'<br>
> Creating support/modules_libs/java.desktop/libjsound.dylib from 1 file(s)<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:154:87: error: use of undeclared identifier 'controlIDs'<br>
> 154 | kAudioObjectPropertyOwnedObjects, count * sizeof(AudioObjectID), &controlIDs, 1);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:160:74: error: use of undeclared identifier 'controlIDs'<br>
> 160 | if (ctrl->audioControls[i]->controlID == controlIDs[j]) {<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:485:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 485 | AudioObjectID controlIDs[mixer->deviceControlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:485:38: note: read of non-constexpr variable 'mixer' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:460:16: note: declared here<br>
> 460 | PortMixer *mixer = (PortMixer *)id;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:34: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 529 | AudioControl* volumeControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:34: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:526:9: note: declared here<br>
> 526 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:531:32: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 531 | AudioControl* muteControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:531:32: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:526:9: note: declared here<br>
> 526 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:777:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 777 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:777:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:774:18: note: declared here<br>
> 774 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:826:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 826 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:826:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:820:18: note: declared here<br>
> 820 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> 7 errors generated.<br>
> make[3]: *** [git/jdk/build/macosx-aarch64-server-release/support/native/java.desktop/libjsound/PLATFORM_API_MacOSX_Ports.o] Error 1<br>
> make[3]: *** Waiting for unfinished jobs....<br>
> make[2]: *** [java.desktop-libs] Error 2<br>
><br>
> ERROR: Build failed for target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release' (exit code 2)<br>
><br>
> === Output from failing command(s) repeated here ===<br>
> * For target support_native_java.desktop_libjsound_PLATFORM_API_MacOSX_Ports.o:<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:154:87: error: use of undeclared identifier 'controlIDs'<br>
> 154 | kAudioObjectPropertyOwnedObjects, count * sizeof(AudioObjectID), &controlIDs, 1);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:160:74: error: use of undeclared identifier 'controlIDs'<br>
> 160 | if (ctrl->audioControls[i]->controlID == controlIDs[j]) {<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:485:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 485 | AudioObjectID controlIDs[mixer->deviceControlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:485:38: note: read of non-constexpr variable 'mixer' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:460:16: note: declared here<br>
> 460 | PortMixer *mixer = (PortMixer *)id;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:34: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 529 | AudioControl* volumeControls[totalChannels+1]; // 0 - for master channel<br>
> ... (rest of output omitted)<br>
><br>
> * All command lines available in git/jdk/build/macosx-aarch64-server-release/make-support/failure-logs.<br>
> === End of repeated output ===<br>
><br>
> No indication of failed target found.<br>
> HELP: Try searching the build log for '] Error'.<br>
> HELP: Run 'make doctor' to diagnose build problems.<br>
><br>
> make[1]: *** [main] Error 2<br>
> make: *** [default] Error 2<br>
> git reset --hard<br>
> HEAD is now at 898d4798003 8355077: Compiler error at splashscreen_gif.c due to unterminated string initialization<br>
> make<br>
> Building target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release'<br>
> Creating support/modules_libs/java.desktop/libjsound.dylib from 1 file(s)<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 127 | AudioDeviceID devices[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:126:21: note: declared here<br>
> 126 | int count = size/sizeof(AudioDeviceID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 151 | AudioObjectID controlIDs[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:150:21: note: declared here<br>
> 150 | int count = size / sizeof(AudioObjectID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:483:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 483 | AudioObjectID controlIDs[mixer->deviceControlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:483:38: note: read of non-constexpr variable 'mixer' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:458:16: note: declared here<br>
> 458 | PortMixer *mixer = (PortMixer *)id;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:527:34: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 527 | AudioControl* volumeControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:527:34: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:524:9: note: declared here<br>
> 524 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:32: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 529 | AudioControl* muteControls[totalChannels+1]; // 0 - for master channel<br>
> | ^~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:529:32: note: read of non-const variable 'totalChannels' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:524:9: note: declared here<br>
> 524 | int totalChannels = GetChannelCount(mixer->deviceID, port->scope == kAudioDevicePropertyScopeOutput ? 1 : 0);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:775:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 775 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:775:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:772:18: note: declared here<br>
> 772 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:824:24: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 824 | Float32 subVolumes[control->controlCount];<br>
> | ^~~~~~~~~~~~~~~~~~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:824:24: note: read of non-constexpr variable 'control' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:818:18: note: declared here<br>
> 818 | PortControl *control = (PortControl *)controlIDV;<br>
> | ^<br>
> 7 errors generated.<br>
> make[3]: *** [git/jdk/build/macosx-aarch64-server-release/support/native/java.desktop/libjsound/PLATFORM_API_MacOSX_Ports.o] Error 1<br>
> make[3]: *** Waiting for unfinished jobs....<br>
> make[2]: *** [java.desktop-libs] Error 2<br>
><br>
> ERROR: Build failed for target 'default (exploded-image)' in configuration 'macosx-aarch64-server-release' (exit code 2)<br>
><br>
> === Output from failing command(s) repeated here ===<br>
> * For target support_native_java.desktop_libjsound_PLATFORM_API_MacOSX_Ports.o:<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 127 | AudioDeviceID devices[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:126:21: note: declared here<br>
> 126 | int count = size/sizeof(AudioDeviceID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> 151 | AudioObjectID controlIDs[count];<br>
> | ^~~~~<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:151:42: note: read of non-const variable 'count' is not allowed in a constant expression<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:150:21: note: declared here<br>
> 150 | int count = size / sizeof(AudioObjectID);<br>
> | ^<br>
> git/jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:483:38: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]<br>
> ... (rest of output omitted)<br>
><br>
> * All command lines available in git/jdk/build/macosx-aarch64-server-release/make-support/failure-logs.<br>
> === End of repeated output ===<br>
><br>
> No indication of failed target found.<br>
> HELP: Try searching the build log for '] Error'.<br>
> HELP: Run 'make doctor' to diagnose build problems.<br>
><br>
> make[1]: *** [main] Error 2<br>
> make: *** [default] Error 2<br>
<br>
</blockquote></div>