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
Image generation failed. Exit code: 1 - Ubuntu 18.04 #6884
Comments
Can you please execute Thanks |
Hi. Thanks for feedback. Output: vinicius@vinicius-HP-EliteBook-840-G1:~/Documentos/projects/servicos-testes-pocs/code-with-quarkus-testegraalvm$ ./mvnw -e package -Pnative
Caused by: java.lang.RuntimeException: Failed to build native image |
There is some interesting info there:
See this for more information about what you need on your system to build a native image. You probably need something like:
Can you try than and close the issue if this works? |
Hi. I executed following the instructions here. My last action was executing the application inside directory where jar was generate with this command native-image java -jar my-jar.jar And this is my new output: Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing io.quarkus.runtime.configuration.ExpandingConfigSource.isExpanding()
Caused by: org.graalvm.compiler.java.BytecodeParser$BytecodeParserError: com.oracle.svm.core.util.VMError$HostedError: Accessed VMThreadLocal is not a compile time constant: io.quarkus.runtime.configuration.Substitutions$Target_ExpandingConfigSource.isExpanding(Substitutions.java:60) - node 6|LoadField#notExpanding |
What version of GraalVM are you using? Also, what does your |
My GraalVM: My pom.xml |
|
1 - GraalVM 19.3.1 the Java 8 version or the Java 11 version? pom.xml:
|
Thanks for the info. |
@geoand, thanks for help me!!! Yes, i execute: My last action was running: ./mvnw package -Pnative |
Excellent, glad to hear it! |
@vinicius-pereiradeoliveira so what was the fix that eventually lead to success for you? I am running into exactly the same issue here and don't know how to fix it... :-/ |
Hi. My last action was: Execute: |
Describe the bug
I can't run native executable with Graalvm.
I'm execute ./mvnw package -Pnative following this guide - https://quarkus.io/guides/building-native-image
I just need to create a native executable for demonstrating Quarkus. The code was obtained from Starting Code as an example.
Expected behavior
Run a native executable.
Actual behavior
I'm execute ./mvnw package -Pnative and my log return this error:
Environment (please complete the following information):
uname -a
orver
: Ubuntu 18.04java -version
:openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment GraalVM CE 19.3.1 (build 11.0.6+9-jvmci-19.3-b07)
OpenJDK 64-Bit Server VM GraalVM CE 19.3.1 (build 11.0.6+9-jvmci-19.3-b07, mixed mode, sharing)
I configured GRAALVM_HOME, JAVA_HOME and PATH in my O.S.
Additional context
I searched the web for Exit code: 1, but the answers are not conclusive.
The text was updated successfully, but these errors were encountered: