<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Jaikiran<div><br></div><div><blockquote type="cite">If you cannot use any other XCode other than 16.3, then you can build the JDK by using the "--disable-warnings-as-errors" configure option (more details here https://github.com/openjdk/jdk/blob/master/doc/building.md#problems-with-the-build-environment). Another user has reported previously that this option allowed them to successfully build with XCode 16.3.</blockquote><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium;">I was able to successfully compile using this method. Thank you.</span><br><div><br><blockquote type="cite"><div>2025/04/27 16:34、Jaikiran Pai <jai.forums2013@gmail.com>のメール:</div><br class="Apple-interchange-newline"><div><div>A previous report too suggests that the JDK build fails (due to compiler warnings) when using 16.3 of Xcode on macos. Do you have access to a 15.4 version of Xcode instead? If so, then you can use "--with-xcode-path" during configure to point to that installation of Xcode and build the JDK (more details in the documentation here https://github.com/openjdk/jdk/blob/master/doc/building.md#apple-xcode). I believe that version should be fine.<br><br>If you cannot use any other XCode other than 16.3, then you can build the JDK by using the "--disable-warnings-as-errors" configure option (more details here https://github.com/openjdk/jdk/blob/master/doc/building.md#problems-with-the-build-environment). Another user has reported previously that this option allowed them to successfully build with XCode 16.3.<br><br>Long term, the warnings from that part of the code will have to be investigated in the JDK.<br><br>-Jaikiran<br><br>On 27/04/25 11:30 am, mitani@daisuke2.com wrote:<br><blockquote type="cite">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></blockquote></div></div></blockquote></div><br></div></body></html>