GraalVM Native Images on ARM

Loïc Lefèvre
1 min readJul 6, 2021

The DRAGON Stack Manager comes as native images ready to download and use for several operating systems: Windows, Linux, and MAC OS.

With the latest Oracle Cloud Infrastructure announcements; e.g. now supporting ARM Ampere shapes; it was important to build a new DRAGON image.

Having Oracle Linux as the supported Operating System already helps a lot but sometimes minor changes have to be done, especially in order to get this GraalVM Native Image built on ARM Ampere architecture.

Problem: running the usual mvn verify command to build the project produced several errors such as:

/usr/bin/ld: cannot find -lstdc++collect2: error: ld returned 1 exit status

or later

/usr/bin/ld: cannot find -lzcollect2: error: ld returned 1 exit status

The solution was to install static versions of the missing libraries:

sudo yum -y install libstdc++-static glibc-static zlib-static

Now the build process is successful!

(For additional information about dependencies, you can check this link, thanks Oleg!!)

Result of mvn verify on ARM Ampere

--

--