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/.
dharrigan 2020-06-03T12:38:13.309600Z

The only thing stopping me from further exploration of using graalvm with clojure (I know the patch is coming with the resolution to lockable thing), is the inability for graalvm to resolve directories, e.g., for configuration files: https://github.com/oracle/graal/issues/1108

borkdude 2020-06-03T12:40:10.310500Z

@dharrigan patch coming? the patch is already there: 1.10.2-alpha1. getResource should also work, but you have to configure it to include resources in the binary.

dharrigan 2020-06-03T12:40:21.310800Z

yes, that's the patch I'm referring to

borkdude 2020-06-03T12:40:24.311Z

clj-kondo uses this extensively

dharrigan 2020-06-03T12:40:53.311600Z

getResource might work, but for libraries that use a different mechanism, it might fail

dharrigan 2020-06-03T12:41:10.312Z

Looking forward to 1.10.2 when it eventually comes out

borkdude 2020-06-03T12:41:47.312600Z

I'm using (<http://clojure.java.io/resource|clojure.java.io/resource> ...). All of this stuff is included: https://github.com/borkdude/clj-kondo/tree/master/resources/clj_kondo/impl/cache/built_in/clj

dharrigan 2020-06-03T12:42:13.313Z

I do use flyway

dharrigan 2020-06-03T12:42:20.313300Z

I wonder if that can load from resource...

dharrigan 2020-06-03T12:42:49.313500Z

It may do

dharrigan 2020-06-03T12:42:53.313700Z

Unprefixed locations or locations with the classpath: prefix target the Java classpath.

dharrigan 2020-06-03T12:43:00.313900Z

will check later

Patrick Farwick 2020-06-03T15:53:32.317300Z

Hello. I was hoping to get some guidance (or at least maybe a fresh look) on an issue I am running into. I am using graalvm version 20.1.0.java11 and native image to create a binary using github actions. It is using the latest ubuntu image as a base and when I test the binary in the github action it does work as expected. The problem is when I download the binary and run it on my fedora box I am getting a SEGFAULT error. Anyone have any ideas on what could be causing this? Thanks!

borkdude 2020-06-03T15:54:09.317500Z

@patrick.farwick CircleCI is known to not have this problem.

Patrick Farwick 2020-06-03T17:05:14.318700Z

adding --static to the native-image build seemed to do the trick

Patrick Farwick 2020-06-03T17:05:22.318900Z

mustve been an issue with glibc?

Patrick Farwick 2020-06-03T17:05:36.319200Z

I have not checked out circleci but will eventually give it a go

borkdude 2020-06-03T17:22:37.319600Z

@patrick.farwick Note that --static is only supported for linux binaries and may give other problems.

Patrick Farwick 2020-06-03T17:24:44.319900Z

I appreciate the heads up!