There's a merged pull request on the void-packages repository openjdk9-bootstrap: fix build with gcc12 https://github.com/void-linux/void-packages/pull/39963 Description: #### Testing the changes - I tested the changes in this PR: **briefly** https://github.com/void-linux/void-packages/issues/39809