Skip to content

[GR-57252] Improve error message when trying to build static image on unsupported platforms #9490

Open
@fniephaus

Description

@fniephaus

Currently, the error message on Linux AArch64 (on which static linking is not supported) looks like this:

[1/8] Initializing... (0.0s @ 0.08GB)
Error: Building images for org.graalvm.nativeimage.Platform$LINUX_AARCH64 (target libc: musl) requires static JDK libraries.
Use most recent JDK from https://github.com/graalvm/labs-openjdk-*/releases
Missing libraries: java, nio, net, zip
(search path: /home/github/actions-runner/_work/_tool/graalvm-jdk-17_linux-aarch64_bin/17.0.0/arm64/graalvm-jdk-17.0.12+8.1/lib/static/linux-aarch64/musl) 

The reference to LabsJDK can be confusing to users as it may suggest you can build on the platform with a different JDK. Instead, the error message should clearly state that static linking is not supported on this platform.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions