Fork me on GitHub
#graalvm
<
2023-10-30
>
ericdallo02:10:58

After changing to Oracle graalvm 21, only the linux amd64 non static builds started to fail with a few different messages, anyone faced that?

ericdallo02:10:03

Exception:

Caused by: java.io.IOException: Cannot run program "/tmp/SVM-18326105540205857304/AArch64LibCHelperDirectives" (in directory "/tmp/SVM-18326105540205857304"): error=2, No such file or directory
https://github.com/clojure-lsp/clojure-lsp/actions/runs/6686986647/job/18167092791 I'm trying to fix on this https://github.com/clojure-lsp/clojure-lsp/pull/1714 with no success

ericdallo02:10:53

Already tried lots of things like installing build-essentials and zlib1g

ericdallo02:10:47

Building on my nixos works, but is quite different than ubuntu, I also confirmed the github ubuntu 20.04 is using the glibc 2.31 already

borkdude08:10:01

Try compatibility mode

borkdude12:10:10

I see. why not windows?

borkdude12:10:34

btw I went with the static binaries only for babashka

borkdude12:10:49

at least, by default

borkdude12:10:19

hm, but the non-static one is still available and works

ericdallo12:10:43

when adding that flag for windows it says that doesn't exists, there is a chance the graal setup for windows is not 100% using oracle graal 21 😅 need to check that

ericdallo12:10:02

yeah, the static works perfect

borkdude12:10:09

"Caused by: java.io.IOException: Cannot run program "/tmp/SVM-18326105540205857304/AArch64LibCHelperDirectives" (in directory "/tmp/SVM-18326105540205857304"): error=2, No such file or directory" A problem of this is usually when a dynamical library is not available in the environment. It's best to just figure out which lib this is

borkdude12:10:41

Oh: Cannot run program "/tmp/SVM-18326105540205857304/AArch64LibCHelperDirectives, hmm

ericdallo12:10:44

yeah, I doubled check build-essential + zlib are installed, but dunno what else to check

borkdude12:10:51

wait, this is aarch64, not amd64

ericdallo12:10:04

yeah i saw that, but it's not consistent, sometimes prints about Amd64 facepalm

borkdude12:10:06

are you sure you downloaded the right version of graalvm for that build env?

borkdude12:10:28

oh well, better bug the graalvm community slack's native-image channel about this and file an issue

ericdallo12:10:09

yeah, thanks, I was about to do a release and not this is blocking me

borkdude12:10:39

"not is blocking me"?

ericdallo12:10:44

and this is blocking me*

ericdallo12:10:19

maybe not apply the pgo only for ubuntu non static maybe? as the static is the default already

borkdude12:10:33

I disabled PGO again for bb

ericdallo12:10:57

yeah, I confess I'm a little bit afraid I release and people complain is not working

ericdallo13:10:02

I think I found it, I left a musl: true flag for the non static facepalm

ericdallo13:10:34

sorry for the bother!

borkdude13:10:07

no problem!