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
Compiling a quarkus-cli
to binary using native-sources
breaks picocli
#25762
Comments
/cc @ebullient, @maxandersen |
I am pretty sure this is not a Quarkus issue, because if you take the sample application and just build it with |
@geoand thanks for looking into it! Using this Running mvn clean package -Dquarkus.package.type=native-sources
cd target/native-sources && native-image $(cat native-image.args) Breaks |
quarkus-cli
application to a static binary breaks picocli
quarkus-cli
to binary using native-sources
breaks picocli
Interesting! I'll take another look soon |
More bisecting, the actual difference is in the instead using The file size is slightly different:
Looks like "something" is missing from the Jar generated with |
The diff shows that there is a difference in the generated Decompiling it shows a bunch of missing But now debugging is a little too steep for my knowledge of Quarkus 🙂 I drop the ball in your court @geoand 🙂 |
Thanks a lot for the analysis! That pretty much confirms what I suspected. It should be an easy fix, but I'll know more tomorrow |
#25803 is the fix. Thanks for reporting! |
Take native-sources build into account for various extensions
Fixes: quarkusio#25762 (cherry picked from commit f814b91)
Describe the bug
Trying to compile a Quarkus Cli application to fully static binaries "breaks"
picocli
.cc. @remkop
Expected behavior
The executable should run in the same way with Java and when compiled.
Actual behavior
How to Reproduce?
quarkus-picocli
branch: https://github.com/andreaTP/test_graal_zig_cc/tree/quarkus-picoclidocker build . -t graal_zigcc --progress=plain
docker run --rm -it graal_zigcc
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
In the reproducer I'm using
zig cc
as a drop in replacement for the compiler to leverage the static binary features.The text was updated successfully, but these errors were encountered: