graalvm

Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to https://github.com/clj-easy/graal-docs and https://github.com/BrunoBonacci/graalvm-clojure. GraalVM slack: https://www.graalvm.org/slack-invitation/.
Crispin 2020-05-28T15:22:00.299200Z

I have mixed news on the building native images on github actions CI nodes.

Crispin 2020-05-28T15:22:49.300Z

I can build the native images fine. Based the config off @plexus and @liquidz.uo github actions

Crispin 2020-05-28T15:23:28.300700Z

but then I added in some debug into the application itself to look at how it was running on a mac (I dont have a mac), and actually ran the resulting binary on the CI nodes

Crispin 2020-05-28T15:24:05.301200Z

both the macos binary and the ubuntu binary fail. I'll get to where in a minute.

Crispin 2020-05-28T15:24:45.302100Z

This was weird because I run ubuntu on my local machine, and the exact same build worked fine there

Crispin 2020-05-28T15:25:36.303200Z

so I tried building and running the mac image on a Circle CI node (where I normally build) and the binary built fine and then ran perfectly

Crispin 2020-05-28T15:42:24.304200Z

so heres the debug run failing on the mac image on github: https://github.com/retrogradeorbit/decloj/runs/717352355

Crispin 2020-05-28T15:42:55.304700Z

and heres the same commit succeeding on circleci: https://app.circleci.com/pipelines/github/retrogradeorbit/decloj/5/workflows/6569ef79-9109-42c4-ae5a-03cef9e345a0/jobs/11

Crispin 2020-05-28T15:44:57.304800Z

build/decloj --load
writing 47160 bytes to /Users/distiller/.decloj/libs/libjnijavacpp.dylib
writing 499428 bytes to /Users/distiller/.decloj/libs/libQt5DBus.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5DBus.dylib to libQt5DBus.5.dylib
writing 6196572 bytes to /Users/distiller/.decloj/libs/libQt5Gui.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5Gui.dylib to libQt5Gui.5.dylib
writing 5989400 bytes to /Users/distiller/.decloj/libs/libQt5Widgets.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5Widgets.dylib to libQt5Widgets.5.dylib
writing 311744 bytes to /Users/distiller/.decloj/libs/libQt5PrintSupport.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5PrintSupport.dylib to libQt5PrintSupport.5.dylib
writing 6439444 bytes to /Users/distiller/.decloj/libs/libQt5Core.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5Core.dylib to libQt5Core.5.dylib
writing 472636 bytes to /Users/distiller/.decloj/libs/libjniQt5Core.dylib
writing 883240 bytes to /Users/distiller/.decloj/libs/libjniQt5Widgets.dylib
writing 1816204 bytes to /Users/distiller/.decloj/libs/libqcocoa.dylib
writing 24096 bytes to /Users/distiller/.decloj/libs/libcocoaprintersupport.dylib
writing 67096 bytes to /Users/distiller/.decloj/libs/libqxdgdesktopportal.dylib
writing 971808 bytes to /Users/distiller/.decloj/libs/libqminimal.dylib
writing 990372 bytes to /Users/distiller/.decloj/libs/libqoffscreen.dylib
writing 39024 bytes to /Users/distiller/.decloj/libs/libqgif.dylib
writing 33072 bytes to /Users/distiller/.decloj/libs/libqico.dylib
writing 424016 bytes to /Users/distiller/.decloj/libs/libqjpeg.dylib
writing 139440 bytes to /Users/distiller/.decloj/libs/libjniQt5Gui.dylib
setting java.library.path to: /Users/distiller/.decloj/libs

resources
=========
"org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib" #object[<http://java.net|java.net>.URL 0x24513d45 "&lt;&lt;resource:org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib" #object[<http://java.net|java.net>.URL 0x7cf22c1c "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib" #object[<http://java.net|java.net>.URL 0x4f4dca57 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib" #object[<http://java.net|java.net>.URL 0x2480fa35 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib" #object[<http://java.net|java.net>.URL 0x6fbaad76 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib" #object[<http://java.net|java.net>.URL 0x1661f8c9 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib" #object[<http://java.net|java.net>.URL 0x3ca00b39 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib" #object[<http://java.net|java.net>.URL 0x34389867 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib" #object[<http://java.net|java.net>.URL 0x76c27667 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib" #object[<http://java.net|java.net>.URL 0x3ef96f67 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib" #object[<http://java.net|java.net>.URL 0x62aff656 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqminimal.dylib" #object[<http://java.net|java.net>.URL 0x24204f31 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqminimal.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib" #object[<http://java.net|java.net>.URL 0x2da5ea65 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqgif.dylib" #object[<http://java.net|java.net>.URL 0xc21010c "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqgif.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqico.dylib" #object[<http://java.net|java.net>.URL 0x57aac7e6 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqico.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib" #object[<http://java.net|java.net>.URL 0x2770b996 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib&gt;&gt;"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib" #object[<http://java.net|java.net>.URL 0x58309a96 "&lt;&lt;resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib&gt;&gt;"]

loading: jnijavacpp
loading: Qt5DBus
loading: Qt5Gui
loading: Qt5Widgets
loading: Qt5PrintSupport
loading: Qt5Core
loading: jniQt5Core
loading: jniQt5Widgets
loading: qcocoa
loading: cocoaprintersupport
loading: qxdgdesktopportal
loading: qminimal
loading: qoffscreen
loading: qgif
loading: qico
loading: qjpeg
loading: jniQt5Gui

done

Crispin 2020-05-28T15:49:17.305100Z

build/decloj --load
writing 47160 bytes to /Users/runner/.decloj/libs/libjnijavacpp.dylib
writing 499428 bytes to /Users/runner/.decloj/libs/libQt5DBus.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5DBus.dylib to libQt5DBus.5.dylib
writing 6196572 bytes to /Users/runner/.decloj/libs/libQt5Gui.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5Gui.dylib to libQt5Gui.5.dylib
writing 5989400 bytes to /Users/runner/.decloj/libs/libQt5Widgets.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5Widgets.dylib to libQt5Widgets.5.dylib
writing 311744 bytes to /Users/runner/.decloj/libs/libQt5PrintSupport.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5PrintSupport.dylib to libQt5PrintSupport.5.dylib
writing 6439444 bytes to /Users/runner/.decloj/libs/libQt5Core.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5Core.dylib to libQt5Core.5.dylib
writing 472636 bytes to /Users/runner/.decloj/libs/libjniQt5Core.dylib
writing 883240 bytes to /Users/runner/.decloj/libs/libjniQt5Widgets.dylib
writing 1816204 bytes to /Users/runner/.decloj/libs/libqcocoa.dylib
writing 24096 bytes to /Users/runner/.decloj/libs/libcocoaprintersupport.dylib
writing 67096 bytes to /Users/runner/.decloj/libs/libqxdgdesktopportal.dylib
writing 971808 bytes to /Users/runner/.decloj/libs/libqminimal.dylib
writing 990372 bytes to /Users/runner/.decloj/libs/libqoffscreen.dylib
writing 39024 bytes to /Users/runner/.decloj/libs/libqgif.dylib
writing 33072 bytes to /Users/runner/.decloj/libs/libqico.dylib
writing 424016 bytes to /Users/runner/.decloj/libs/libqjpeg.dylib
writing 139440 bytes to /Users/runner/.decloj/libs/libjniQt5Gui.dylib
setting java.library.path to: /Users/runner/.decloj/libs
resources
=========
"org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib" #object[<http://java.net|java.net>.URL 0x76fce8f7 "&lt;resource:org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib" #object[<http://java.net|java.net>.URL 0x3b032037 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib" #object[<http://java.net|java.net>.URL 0x474b147e "&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib" #object[<http://java.net|java.net>.URL 0x2b95e7e4 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib" #object[<http://java.net|java.net>.URL 0x4c22ec18 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib" #object[<http://java.net|java.net>.URL 0x1351cb8d "&lt;resource:org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib" #object[<http://java.net|java.net>.URL 0x703fa4a8 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib" #object[<http://java.net|java.net>.URL 0x3c2f8908 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib" #object[<http://java.net|java.net>.URL 0x44b92116 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib" #object[<http://java.net|java.net>.URL 0x15edf654 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib" #object[<http://java.net|java.net>.URL 0x6206e86c "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqminimal.dylib" #object[<http://java.net|java.net>.URL 0xedcc6fe "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqminimal.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib" #object[<http://java.net|java.net>.URL 0xdb51856 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqgif.dylib" #object[<http://java.net|java.net>.URL 0x691da197 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqgif.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqico.dylib" #object[<http://java.net|java.net>.URL 0x65110102 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqico.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib" #object[<http://java.net|java.net>.URL 0x189bd86b "&lt;resource:org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib&gt;"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib" #object[<http://java.net|java.net>.URL 0x677fd152 "&lt;resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib&gt;"]

loading: jnijavacpp
No Java runtime present, requesting install.
make: *** [test-bin] Error 97
##[error]Process completed with exit code 2.

Crispin 2020-05-28T15:54:06.305800Z

just something I thought graalvm people should be aware of. There may be issues running your native-image builds to test them on GH actions