Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build native image #2

Open
dadoonet opened this issue May 28, 2019 · 1 comment
Open

Can not build native image #2

dadoonet opened this issue May 28, 2019 · 1 comment

Comments

@dadoonet
Copy link
Contributor

Was trying to build this project and generate the native image but got this:

[INFO] --- quarkus-maven-plugin:0.15.0:native-image (default) @ QuarkusHipster ---
[INFO] [io.quarkus.creator.phase.nativeimage.NativeImagePhase] Running Quarkus native-image plugin on OpenJDK GraalVM CE 1.0.0-rc16
[INFO] [io.quarkus.creator.phase.nativeimage.NativeImagePhase] /Users/dpilato/.sdkman/candidates/java/1.0.0-rc-13-grl/bin/native-image -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy$BySpaceAndTime -jar QuarkusHipster-1.0-SNAPSHOT-runner.jar -J-Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:+PrintAnalysisCallTree -H:-AddAllCharsets -H:EnableURLProtocols=https --enable-all-security-services -H:-SpawnIsolates -H:+JNI --no-server -H:-UseServiceLoaderFeature -H:+StackTrace
Error: Could not find option 'FallbackThreshold'. Use -H:PrintFlags= to list all available options.
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image building with exit status 1

Note that when I ran:

$ gu install native-image

I got:

Downloading: Component catalog
Error: Unknown component: native-image

Although native-image seems to be available:

> ~/Documents/Elasticsearch/dev/tests/quarkusHipster/backend (master) $ native-image --help

GraalVM native-image building tool

This tool can be used to generate an image that contains ahead-of-time compiled Java code.

Usage: native-image [options] class [imagename]
           (to build an image for a class)
   or  native-image [options] -jar jarfile [imagename]
           (to build an image for a jar file)
...

So I guess I already installed it or it's part of the "standard" distribution???

Might be a bug to report in Quarkus though.

@fdelbrayelle
Copy link

It seems native-image has been removed natively from GraalVM 19.0.

It got the same error when trying to install "native-image" in v19.2.0 :

$GRAALVM_HOME/bin/gu install native-image
Skipping ULN EE channels, no username provided.
Downloading: Component catalog from www.graalvm.org
Downloading: Component catalog from www.graalvm.org
Error: Unknown component: native-image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants