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

compile-no-fork failed: Version to check #644

Closed
koutheir opened this issue Nov 26, 2024 · 2 comments
Closed

compile-no-fork failed: Version to check #644

koutheir opened this issue Nov 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@koutheir
Copy link

Building a native image fails with the following error. Can you please provide a way to opt out of this version check?

$ mvn -Pnative package
...
[ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.10.3:compile-no-fork (build-native) on project spring-boot-initial: Execution build-native of goal org.graalvm.buildtools:native-maven-plugin:0.10.3:compile-no-fork failed: Version to check 'native-image 23.0.1 2024-10-15
[ERROR] Java(TM) SE Runtime Environment MicroDoc GraalVM Embedded 23.0.1+11.1 (build 23.0.1+11-microdoc-p111200-t20241029n1-evaluation-linux-amd64-le-gcc11.2-gnu-glibc-jvmci-b01)
[ERROR] Java HotSpot(TM) 64-Bit Server VM MicroDoc GraalVM Embedded 23.0.1+11.1 (build 23.0.1+11-microdoc-p111200-t20241029n1-evaluation-linux-amd64-le-gcc11.2-gnu-glibc-jvmci-b01, mixed mode)' can't be parsed.

And for reference, here is the version reported by our native-image:

$ $JAVA_HOME/bin/native-image --version
native-image 23.0.1 2024-10-15
Java(TM) SE Runtime Environment MicroDoc GraalVM Embedded 23.0.1+11.1 (build 23.0.1+11-microdoc-p111200-t20241029n1-evaluation-linux-amd64-le-gcc11.2-gnu-glibc-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM MicroDoc GraalVM Embedded 23.0.1+11.1 (build 23.0.1+11-microdoc-p111200-t20241029n1-evaluation-linux-amd64-le-gcc11.2-gnu-glibc-jvmci-b01, mixed mode)

And here is an excerpt of pom.xml:

...
<profiles>
    <profile>
        <id>native</id>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.graalvm.buildtools</groupId>
                    <artifactId>native-maven-plugin</artifactId>
                    <version>0.10.3</version>
                    <executions>
                        <execution>
                            <id>build-native</id>
                            <goals>
                                <goal>compile-no-fork</goal>
                            </goals>
                            <phase>package</phase>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>
</profiles>

System Info

  • OS: Debian Linux 6.11.9-amd64.
  • GraalVM Version: 23.0.1 EE
  • Java Version: 23.0.1
  • Plugin version: native-gradle-plugin:0.10.3
@koutheir koutheir added the bug Something isn't working label Nov 26, 2024
@vjovanov
Copy link
Member

vjovanov commented Dec 2, 2024

We will discuss this in our next bi-weekly meeting and treat it with priority. Thanks for reporting!

@vjovanov
Copy link
Member

vjovanov commented Dec 9, 2024

This has been fixed by @brunocaballero so we can close. Thanks @brunocaballero!

@vjovanov vjovanov closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants