a-azqueta commented on issue #5503: URL: https://github.com/apache/openwhisk/issues/5503#issuecomment-3258228412
Hi, I'm trying to build openwhisk from github repository to create arm64 images, as I can't find them on the docker hub repository. Here I'm adding the link to the invoker component repository where you can see that no arm64 architecture is available: https://hub.docker.com/r/openwhisk/invoker/tags I'm using openjdk 17 to build the images using the command `./gradlew distDocker` and I'm getting the following error: ```bash FAILURE: Build failed with an exception. * Where: Settings file 'openwhisk/settings.gradle' * What went wrong: Could not compile settings file 'openwhisk/settings.gradle'. > startup failed: General error during semantic analysis: Unsupported class file major version 61 ``` Same openjdk used in an amd64 arch machine and the `./gradlew distDocker` command works. I've also tried to compile for both architectures from the amd64 arch machine using the following command, but a docker.gradle check produces an error: ```bash ./gradlew distDocker -PdockerBinary='docker buildx' -PdockerBuildArgs='--platform linux/amd64,linux/arm64' Build using Scala 2.12 Scala sub-project 'gatling_tests' doesn't have Scoverage applied and will be ignored in parent project aggregation > Task :common:scala:distDocker FAILED Fri Sep 05 14:34:59 CEST 2025: Executing 'docker buildx build --build-arg - --build-arg - --build-arg p --build-arg l --build-arg a --build-arg t --build-arg f --build-arg o --build-arg r --build-arg m --build-arg --build-arg l --build-arg i --build-arg n --build-arg u --build-arg x --build-arg / --build-arg a --build-arg m --build-arg d --build-arg 6 --build-arg 4 --build-arg , --build-arg l --build-arg i --build-arg n --build-arg u --build-arg x --build-arg / --build-arg a --build-arg r --build-arg m --build-arg 6 --build-arg 4 -f openwhisk/common/scala/Dockerfile -t scala openwhisk/common/scala' > Task :common:scala:tagImage FAILED FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * Where: Script 'openwhisk/gradle/docker.gradle' line: 149 * What went wrong: Execution failed for task ':common:scala:distDocker'. > java.io.IOException: Cannot run program "docker buildx": error=2, No such file or directory * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ============================================================================== 2: Task failed with an exception. ----------- * Where: Script 'openwhisk/gradle/docker.gradle' line: 122 * What went wrong: Execution failed for task ':common:scala:tagImage'. > java.io.IOException: Cannot run program "docker buildx": error=2, No such file or directory * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ============================================================================== * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 877ms 2 actionable tasks: 2 executed ``` This is due in docker.gradle' at line 122 it is checking the docker version, however as I've modified the dockerBinary binary from 'docker' to 'docker buildx' it is not possible to get the docker version. Also, I've tried to modify the docker.gradle file but the `General error during semantic analysis: Unsupported class file major version 61` appears with any simple modification, even adding a new blank line. Is there any solution to compile the components for arm64 arch? Any approach works for me, I can build the components for different architectures using 'docker buildx' command or I can build them on my mac M4. Thank you in advance, Ainhoa -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
