Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opam 2.2.1 release - install broken on (latest) OpenBSD 7.6 #6232

Open
jideelgh opened this issue Oct 9, 2024 · 2 comments
Open

Opam 2.2.1 release - install broken on (latest) OpenBSD 7.6 #6232

jideelgh opened this issue Oct 9, 2024 · 2 comments

Comments

@jideelgh
Copy link

jideelgh commented Oct 9, 2024

Just to let you know, trying to install Opam 2.2.1 release on OpenBSD 7.6 (using bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh)" which fetches opam-2.2.1-x86_64-openbsd) leads to:

ld.so: opam: can't load library 'libc++.so.9.0'
Killed

OpenBSD moved to libc++.so.10.0 in 7.5:

tar -tzf base73.tgz |grep libc++
./usr/lib/libc++.so.9.0
./usr/lib/libc++abi.so.6.0

tar -tzf base74.tgz |grep libc++
./usr/lib/libc++.so.9.0
./usr/lib/libc++abi.so.6.0

tar -tzf base75.tgz |grep libc++
./usr/lib/libc++.so.10.0
./usr/lib/libc++abi.so.7.0

So I guess I was just 'lucky' to keep libc++.so.9.0 during the previous upgrades but on an upgraded 7.5->7.6 system which still has 'libc++.so.9.0' available, it's not anymore sufficient:

opam[31192]: pinsyscalls addr ca14a7fb859 code 253, pinoff 0xffffffff (pin 330 ca1c28c5000-ca1c28d366d e66d) (libcpin 0 0-0 0) error 78
Abort trap

I managed to workaround this by :

  • pkg_add opam which installs opam 2.2.0 (and is built against libc++.so.10.0)
  • build opam 2.2.1 from source.
  • remove 2.2.0 afterwards.

Not so much a big deal but at least you're aware of this 'issue'.

@mseri
Copy link
Member

mseri commented Oct 10, 2024

I think this should be moved to ocaml/opam. Ping @kit-ty-kate or @rjbou

@kit-ty-kate
Copy link
Member

#6237 fixed this (only >= 2.3.0~beta1), however the release binary now is only available for OpenBSD 7.6. I'll open a new ticket to remind myself to experiment with statically linked binaries on OpenBSD to see if it could be a solution for 7.5 as OpenBSD supports its last two releases (7.5 and 7.6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants