You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/11/01 04:33:13 UTC

[GitHub] [maven-mvnd] gzm55 opened a new pull request, #730: Build mostly static native image, loose linux glibc requirement to 2.12

gzm55 opened a new pull request, #730:
URL: https://github.com/apache/maven-mvnd/pull/730

   This pr improves native image portability on linux and windows via:
   1. Enable mostly static image switch on linux and windows. on linux, the cost is about 33K file size before compressed, about +0.1%.
   2. Loose linux `glibc` requirement to 2.12. Now the `mvnd` depends on many `JNI`s which are built by `glibc` toolchains, so we cannot easily switch to `musl` toolchains or a fully static image (discussed in #727 ). Whereas a lower glibc requirement adds support for most old linux boxes.
   
   An explicit `glibc` requirement also removes a side effect of changing the build system. When update the build system from ubuntu 18.04 to 20.04, the glibc requirement may also increase to match the new os. On the other hand, glibc 2.12 is required by graal from [21.1](https://github.com/oracle/graal/blob/master/sulong/CHANGELOG.md#version-2110) which invokes the `pthread_setname_np` api. For older graal, the glibc 2.9 is possible.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet merged pull request #730: Build mostly static native image, loose linux glibc requirement to 2.12

Posted by GitBox <gi...@apache.org>.
gnodet merged PR #730:
URL: https://github.com/apache/maven-mvnd/pull/730


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org