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/10/26 14:38:09 UTC

[GitHub] [maven-mvnd] gzm55 opened a new issue, #727: build static native image for linux amd64 system

gzm55 opened a new issue, #727:
URL: https://github.com/apache/maven-mvnd/issues/727

   [Static native image](https://www.graalvm.org/22.3/reference-manual/native-image/guides/build-static-executables/) improves the portability between different libc types (glibc or musl) and glibc versions on x64 linux.


-- 
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.apache.org

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


[GitHub] [maven-mvnd] gzm55 commented on issue #727: build static native image for linux amd64 system

Posted by GitBox <gi...@apache.org>.
gzm55 commented on issue #727:
URL: https://github.com/apache/maven-mvnd/issues/727#issuecomment-1293547519

   > Indeed, this would be nice!
   > 
   > @gzm55 do you happen to know how much bigger will the native executable become?
   
   not yet, i will try it at weekend


-- 
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 commented on issue #727: build static native image for linux amd64 system

Posted by GitBox <gi...@apache.org>.
gnodet commented on issue #727:
URL: https://github.com/apache/maven-mvnd/issues/727#issuecomment-1292427698

   Sounds good. 
   This will need to be integrated into https://github.com/apache/maven-mvnd/blob/master/.github/workflows/release.yaml
   Not sure about the cost of building musl during the GitHub release workflow though...


-- 
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] gzm55 commented on issue #727: build static native image for linux amd64 system

Posted by GitBox <gi...@apache.org>.
gzm55 commented on issue #727:
URL: https://github.com/apache/maven-mvnd/issues/727#issuecomment-1295774550

   the preparation of the tool chains are less than 1 minutes, and the increasement of the  image sizes can be ignored, less than 1%.
   
   The problem is that the embedded JNIs still depends on glibc:
   
   ```bash
   $ maven-mvnd-0.9.0-SNAPSHOT-linux-amd64/bin/mvnd --status
   Failed to load native library:jansi-2.4.0-df4a30a9a564804a-libjansi.so. osinfo: Linux/x86_64
   java.lang.UnsatisfiedLinkError: Can't load library: /tmp/jansi-2.4.0-df4a30a9a564804a-libjansi.so
   Exception in thread "main" java.lang.UnsatisfiedLinkError: org.fusesource.jansi.internal.CLibrary.isatty(I)I [symbol: Java_org_fusesource_jansi_internal_CLibrary_isatty or Java_org_fusesource_jansi_internal_CLibrary_isatty__I]
           at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:152)
           at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:53)
           at org.fusesource.jansi.internal.CLibrary.isatty(CLibrary.java)
           at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:95)
   
   ```


-- 
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] ppalaga commented on issue #727: build static native image for linux amd64 system

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #727:
URL: https://github.com/apache/maven-mvnd/issues/727#issuecomment-1293519536

   Indeed, this would be nice! 
   
   @gzm55 do you happen to know how much bigger will the native executable become?


-- 
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] gzm55 commented on issue #727: build static native image for linux amd64 system

Posted by GitBox <gi...@apache.org>.
gzm55 commented on issue #727:
URL: https://github.com/apache/maven-mvnd/issues/727#issuecomment-1293047315

   from graalvm ga [example](https://github.com/graalvm/setup-graalvm/blob/778131f1d6837ccd4b2e91382c31830896a2d56e/.github/workflows/test.yml#L74-L92), it is already integrated with option `native-image-musl`


-- 
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 closed issue #727: build static native image for linux amd64 system

Posted by GitBox <gi...@apache.org>.
gnodet closed issue #727: build static native image for linux amd64 system
URL: https://github.com/apache/maven-mvnd/issues/727


-- 
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