XMLWordPrintable

      Current JDK11+GraalVM+Gradle+c/c++ image doesn't yet support native compilation:

      https://github.com/redhat-developer/codeready-workspaces/pull/223

      As Stevan has said that native compilation isn't something we NEED for 2.1, I'm openingthis issue to track this as new feature for 2.2 or future.

      Failure details from vsvydenk:

      @nickboldt
      I tried native compilation in this devfile and got an error

      log
      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.1.1.Final:native-image (default) on project getting-started: Failed to generate a native image: Failed to augment application classes: Build failure: Build failed due to errors
      [ERROR]         [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.IllegalStateException: Unsupported version of GraalVM detected: GraalVM Version 19.3.1 CE. Please use GraalVM 19.2.1.
      

      In https://github.com/quarkusio/quarkus/wiki/Migration-Guide-1.3 As I see GraalVM JDK 11 is a tech preview for now. So probably it isn't stable right now.
      Also I found related issue https://github.com/quarkusio/quarkus/issues/5682
      And Quarkus guide says that we need GraalVM version 19.2.1 - https://quarkus.io/guides/building-native-image#prerequisites.

      So probably for now we have to use Java-8 and GraalVM-19.2.1 to provide native compilation

              vsvydenk Valerii Svydenko
              nickboldt Nick Boldt
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: