companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
remexre has joined #ocaml
ygrek has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
tremon has quit [Quit: getting boxed in]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ocaml
<avidseeker> kit_ty_kate1: https://paste.debian.net/plain/1367564
<avidseeker> kit_ty_kate1: https://paste.debian.net/plain/1367565
<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]
euphores has quit [Quit: Leaving.]
Serpent7776 has joined #ocaml
euphores has joined #ocaml
<discocaml> <uberpyro181> if your key goal is to interop with ocaml, i would 100% recommend malfunction <https://github.com/stedolan/malfunction>
<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.]
Haudegen has joined #ocaml
oriba has joined #ocaml
<avidseeker> kit_ty_kate1: https://paste.debian.net/plain/1367705
<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`
<avidseeker> that's ocamlfind.changes: https://paste.debian.net/plain/1367707
<kit_ty_kate1> if the file exists then: `opam var ocaml:preinstalled`, otherwise i'll read the logs and see if it says anything
<avidseeker> cloning a git repo in tmp haha I only have 8gigs of ram
<avidseeker> oh, it's not a big repo
<kit_ty_kate1> that's only 4MB
<avidseeker> $ opam var ocaml:preinstalled
<avidseeker> falyes yes afa/closad
<avidseeker> false
<kit_ty_kate1> src/findlib/META exists??
<avidseeker> ls: cannot access 'src/findlib/META': No such file or directory
<kit_ty_kate1> ah, ok cool
<kit_ty_kate1> could i get the log of the configure command above?
<kit_ty_kate1> are you sure it's complete? It looks truncated
<avidseeker> oops not sure why my terminal truncated it
<kit_ty_kate1> > find: ‘sh’ terminated by signal 11
<kit_ty_kate1> bingo
<kit_ty_kate1> i'm really surprised https://github.com/ocaml/ocamlfind/pull/101 didn't help though
<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> uh
<kit_ty_kate1> could you run the same configure command but using `sh -x ./configure ...` instead?
<kit_ty_kate1> and look for the line starting with `+ find src `
<kit_ty_kate1> does this line fail the same way (exit 11) ?
<avidseeker> this might be because I'm using dash
<avidseeker> I'll try export SHELL=bash
<kit_ty_kate1> (if you run it without the '+' character ofc)
<avidseeker> Nope still same issue
<kit_ty_kate1> no it should be POSIX complient so it shouldn't be a problem dw
<kit_ty_kate1> same issue if you run the find command by hand?
<avidseeker> Turns out my guess was right :)
<avidseeker> I resymlinked /bin/sh
<kit_ty_kate1> how did you get dash before?
<dh`> sh dumping core is definitely sh's problem
<avidseeker> sudo ln -sf /bin/dash /bin/sh
<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.
<avidseeker> I can't seem to replicate it again
<kit_ty_kate1> you compiled dash by hand? So it was not the package from archlinux/core?
<kit_ty_kate1> ah you got it from the dash-static-musl package from AUR ?
<avidseeker> yes then manually changed the pinned commit hash to get latest commit
<kit_ty_kate1> avidseeker: i have an idea of what might have happened. What does `groups | wc -w` give you?
<kit_ty_kate1> ahahahahah nevermind, i was able to reproduce
<kit_ty_kate1> it's dash master
<kit_ty_kate1> lmao https://paste.osau.re/12U
<kit_ty_kate1> yeah it's just master that's completely broken
<kit_ty_kate1> fun bug lmao
<kit_ty_kate1> (it's not musl's fault btw, the same thing happens with dash + glibc too)
<kit_ty_kate1> but actually i can improve my patch on ocamlfind so that it would have reported the problem earlier
<kit_ty_kate1> so thanks a lot avidseeker! ^^
<dh`> that's where all the eggs have gone, they're on the faces of dash committers :^)
<kit_ty_kate1> 🥚
Humean has joined #ocaml
tremon has quit [Quit: getting boxed in]
Serpent7776 has quit [Ping timeout: 245 seconds]
bartholin has quit [Quit: Leaving]
<avidseeker> kit_ty_kate1: No, the thanks are all yours. Thank you for your help
dhil has quit [Ping timeout: 248 seconds]
cr1901_ is now known as cr1901
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
sweatylobster has joined #ocaml
m5zs7k has quit [Ping timeout: 244 seconds]
m5zs7k has joined #ocaml