Skip to content

Fix native build#152

Open
diegolovison wants to merge 1 commit into
Hyperfoil:mainfrom
diegolovison:fix_native_build
Open

Fix native build#152
diegolovison wants to merge 1 commit into
Hyperfoil:mainfrom
diegolovison:fix_native_build

Conversation

@diegolovison

@diegolovison diegolovison commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #129

dlovison:h5m$ java -version
openjdk version "25.0.2" 2026-01-20
OpenJDK Runtime Environment GraalVM CE 25.0.2+10.1 (build 25.0.2+10-jvmci-b01)
OpenJDK 64-Bit Server VM GraalVM CE 25.0.2+10.1 (build 25.0.2+10-jvmci-b01, mixed mode, sharing)
mvn clean package -Pcli

dlovison:h5m$ java -version
openjdk version "25.0.3" 2026-04-21 LTS
OpenJDK Runtime Environment Temurin-25.0.3+9 (build 25.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-25.0.3+9 (build 25.0.3+9-LTS, mixed mode, sharing)
mvn clean package -Pcli -Dh5m.cli.native=false

@diegolovison
diegolovison requested a review from stalep June 23, 2026 17:22
@diegolovison diegolovison changed the title Fxi native build Fix native build Jun 23, 2026
Comment thread pom.xml
<dependencies>
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is using this dependency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quarkus registers the ZipArchiveInputStream class for strict build-time linking. This forces GraalVM to thoroughly inspect every line of bytecode and every method within it during compilation.

When the GraalVM analyzer reached the createZstdInputStream method, it encountered a reference to the com.github.luben.zstd.ZstdInputStream class. Since the zstd-jni library was missing from the project, GraalVM could not validate the structure of that method.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, should that be reported as a Quarkus bug?

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

Successfully merging this pull request may close these issues.

Build failure on Java 25 due to Truffle BaseFeature IllegalAccessError (jdk.internal.vm.ci)

3 participants