<dh`>
I have been working intermittently on a compiler for word-addressed machines
ygrek has joined #ocaml
myrkraverk has joined #ocaml
myrkraverk__ has quit [Ping timeout: 252 seconds]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 244 seconds]
ygrek has quit [Remote host closed the connection]
patrick_ is now known as patrick
patrick has quit [Changing host]
patrick_ has joined #ocaml
remexre has quit [Ping timeout: 252 seconds]
remexre has joined #ocaml
dhil has joined #ocaml
Humean has quit [Ping timeout: 272 seconds]
dhil has quit [Ping timeout: 246 seconds]
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
cr1901_ has joined #ocaml
cr1901 has quit [Read error: Connection reset by peer]
Serpent7776 has quit [Ping timeout: 252 seconds]
eilvelia has quit [Ping timeout: 245 seconds]
steenuil has quit [Ping timeout: 245 seconds]
tomku has quit [Ping timeout: 245 seconds]
tomku has joined #ocaml
eilvelia has joined #ocaml
steenuil has joined #ocaml
Tuplanolla has joined #ocaml
wbooze has quit [Ping timeout: 252 seconds]
wbooze has joined #ocaml
<kit_ty_kate1>
avidseeker: i’m quite puzzled. It must be a bug in ocamlfind
<kit_ty_kate1>
what do you have in ~/.opam/default/lib/findlib ?
<kit_ty_kate1>
if the directory is empty or isn’t there, it’s definitely a bug in ocamlfind
Serpent7776 has joined #ocaml
tremon has joined #ocaml
YuGiOhJCJ has joined #ocaml
<kit_ty_kate1>
but most likely it’ll be there but the META file is missing
<kit_ty_kate1>
if that’s the case, what does `which find sed`, `find --version` and `sed --version` say?
Haudegen has joined #ocaml
Serpent7776 has quit [Ping timeout: 245 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<discocaml>
<haasham_khan> Hey everyone! 👋
<discocaml>
<haasham_khan>
<discocaml>
<haasham_khan> I'm Haasham Khan. Super excited to be contributing to the "Extend Dune to discover system information" project!
<discocaml>
<haasham_khan>
<discocaml>
<haasham_khan> Looking forward to collaborating with this awesome community and learning along the way.
<discocaml>
<haasham_khan> @gridbugs – Hello! It's great to connect with you. I'm eager to get started and contribute — kindly requesting contribution approval so I can dive in. 😄
<discocaml>
<haasham_khan>
<discocaml>
<haasham_khan> Let’s make something cool together! 🚀
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
<discocaml>
<uberpyro181> if you also want to compile all the way to assembly then like, pick which is more important to you
<discocaml>
<uberpyro181> if you also want to compile all the way to assembly then i think you should pick which is more important to you
<discocaml>
<uberpyro181> but that's just a suggestion, good luck with your project
<discocaml>
<dubious245> :bThoughtful: ... Compiling to assembly.
<qu1j0t3>
it used to be pretty common :)
<qu1j0t3>
compiling to object code feels relatively modern to me, which might date me :)
<discocaml>
<contificate> like all things in compilers, it can be arbitrarily involved: simply targetting assembly can be as straightforward or as involved as you want: bad output is easy (but hard to maintain and extend), good output is not that hard, great output is a lot of work, and so on
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
<avidseeker>
Also important to note, I first tried installed ocaml-lsp-git from the AUR, but then I realized it's an orphan outdated package so I switch to opam
<kit_ty_kate1>
avidseeker: ok we're both online at the same time, awesome ^^
<kit_ty_kate1>
so yeah no META file, that's good news. That's a lead
<kit_ty_kate1>
avidseeker: could you post the content of ~/.opam/default/.opam-switch/install/ocamlfind.changes just to make sure it's a problem in ocamlfind and not anywhere else
<kit_ty_kate1>
after that: `cd /tmp && git clone https://github.com/ocaml/ocamlfind && cd ocamlfind && ./configure -no-custom -no-camlp4 && ls src/findlib/META`
<kit_ty_kate1>
could you try `cd /tmp && rm -rf ocamlfind && git clone https://github.com/kit-ty-kate/ocamlfind -b restore-posix-compat` and do the same configure command?
<kit_ty_kate1>
no i meant like does it come with your distribution? is it an external package? which version of dash is it?
<avidseeker>
No I manually installed it
<avidseeker>
0.5.12-1
<kit_ty_kate1>
which distribution do you have?
<avidseeker>
warch
<avidseeker>
Arch
<kit_ty_kate1>
ah right you said it before ^^"
<kit_ty_kate1>
my bad
<avidseeker>
Now your version of ocamlfind compiles
<kit_ty_kate1>
on fedora dash works fine
<avidseeker>
same version?
<kit_ty_kate1>
dash-0.5.12-4.fc41.aarch64 but essentially yeah
<kit_ty_kate1>
i wonder what's the patches from the 4 revisions, mmh, let me have a look
<avidseeker>
we can figure the problem with dash later
<avidseeker>
now how to proceed with ocaml-lsp-server?
<avidseeker>
it still shows the same problem
<kit_ty_kate1>
opam unpin ocamlfind
dhil has joined #ocaml
<kit_ty_kate1>
it will reinstall ocamlfind and you should be able to install ocaml-lsp-server after
<avidseeker>
Awesome! Thank you for your help
<avidseeker>
So moral of the story? one of the scripts used a /bin/sh shebang while the script wasn't posix compliant?
<kit_ty_kate1>
i'm investigating rn so i'm not sure but dash/find definitely shouldn't segfault the way it did, especially without exiting with an appropriate error code
<avidseeker>
I just realized it might be because I have the musl version
<avidseeker>
I recompiled dash to get the new posix set pipefail
<avidseeker>
It's a heisenbug. It disappeared now.