dune
dune copied to clipboard
'opam install dune' segfaults
Expected Behavior
That dune would be installed
Actual Behavior
It seems to segfault (although I don't know that much about ocaml)
Reproduction
I installed opam on debian using "bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)" (from the opam website). I installed it into ~/.local/bin (maybe this is the culprit?) I have also a bit of a non typical setup since I use gnu guix extensively on this system, this could also be the culprit. (gnu guix is a package manager)
then
opam install dune
I piped the output into my clipboard:
The following actions will be performed:
=== install 1 package
∗ dune 3.16.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved dune.3.16.0 (cached)
[ERROR] The compilation of dune.3.16.0 failed at "ocaml boot/bootstrap.ml -j 3".
#=== ERROR while compiling dune.3.16.0 ========================================#
# context 2.2.1 | linux/x86_64 | ocaml.4.13.1 | https://opam.ocaml.org#5e7a27da27
ca547cb23430fa34e45540cc60cfac
# path ~/.opam/default/.opam-switch/build/dune.3.16.0
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml boot/bootstrap.ml -j 3
# exit-code 139
# env-file ~/.opam/log/dune-14520-1dc573.env
# output-file ~/.opam/log/dune-14520-1dc573.out
### output ###
# ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.m
l boot/duneboot.ml
# ./.duneboot.exe -j 3
# Segmentation fault
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build dune 3.16.0
└─
╶─ No changes have been performed
Specifications
- Version of
dune
(output ofdune --version
): 3.16.0 - Version of
ocaml
(output ofocamlc --version
): 4.13.1 - Operating system (distribution and version):
output of uname -a:
output ofLinux ip-213-124-172-125 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
lsb_release -a
:Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm