Package Details: native-image-jdk11-bin 20.0.0-1

Git Clone URL: https://aur.archlinux.org/native-image-jdk11-bin.git (read-only, click to copy)
Package Base: native-image-jdk11-bin
Description: Plugin to turn GraalVM-based applications into native binary images (Java 11 version)
Upstream URL: https://github.com/oracle/graal
Licenses: custom
Submitter: lucaswerkmeister
Maintainer: lucaswerkmeister
Last Packager: lucaswerkmeister
Votes: 3
Popularity: 1.32
First Submitted: 2019-11-25 00:21
Last Updated: 2020-02-19 22:53

Latest Comments

lucaswerkmeister commented on 2019-12-04 20:23

Indeed, thanks a lot! I’ve updated that package.

mcescher commented on 2019-12-04 10:23

Adding options=('staticlibs') to jdk11-graalvm-bin's PKGBUILD resolves the issue.

mcescher commented on 2019-12-04 10:12

I think the problem is that in jdk11-graalvm-bin files are missing, namely lib/*.a.

During installation those files are apparently removed, maybe in this step:

==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...

In order to verify this I've renamed /usr/lib/jvm/java11-graalvm and extracted the distribution archive manually into /usr/lib/jvm/java11-graalvm and retried running native-image and then it worked

lucaswerkmeister commented on 2019-11-25 00:34

Note: this package isn’t functional yet, but I didn’t have the time to make it work (and wanted to publish it together with the other parts of GraalVM 19.3.0).

Error: Building images for org.graalvm.nativeimage.Platform$LINUX_AMD64 requires static JDK libraries.
Use JDK from https://github.com/graalvm/openjdk8-jvmci-builder/releases or https://github.com/graalvm/labs-openjdk-11/releases
Missing libraries:java, nio, net, zip
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1

I’ll try to look into this soon, but if you figure out how to make it work, please let me know!