-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Building native executables when using deps that does not have native binaries on arm platform not working #37455
Comments
This is a product issue - the artifact does not contains the libraries. It works with the upstream. |
Changing the version of the |
What do you mean by changing the version? Is their a pure upstream reproducer? |
zstd-jni is the artifact that has the missing native libs. |
@cescoffier the issue is that our unit code fail on optional feature. You already did one attempt on avoiding this. Yes the jar that triggers this is in product but the code that is not lenient is in quarkus community core. |
Not really, we check the presence or absence of the jar already. Fixing this would mean that every time we touch a resource or a class we need to check the existence of that resource. That is feasible in theory, but would require massive substitutions, and not only - we would need to change many things in the Quarkus extensions (because what's happen here, could happen anywhere). Trying to load the native lib in the substitution is somewhat possible but some applications will break because of this tainted jar (that will be the case for Kafka for example, as the upstream code also check the optionality, code we cannot change or substitute). The only sane fixes are: get a product jar containing at least the same native libs than the upstream, or exclude that jar and use the upstream one instead. |
Also, loading the native lib at build time would require that the system contains all the dependant libs at the right location (replicating the prod file system). (Zlib is standalone enough if I remember correctly, but if we do something for this one we need to do it everywhere) |
Looks like this has been resolved as of 3.8. |
Describe the bug
Reporting this per @maxandersen. This is to report that the changes made in #36628 do not seem to work.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
Follow these steps to reproduce on a Mac M1 (or any other ARM machine):
cd
intorest-fights
.pom.xml
by adding the Red Hat Maven repo:pom.xml
by adding the following dependency:./mvnw clean package -DskipTests -Pnative
Output of
uname -a
orver
Darwin edeandrea-m1pro 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64
Output of
java -version
Mandrel or GraalVM version (if different from Java)
Quarkus version or git rev
3.6.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional information
No response
The text was updated successfully, but these errors were encountered: