I tried to install the package camlidl in a new Ubuntu 22 virtual machine with the usual OCaml package install command:
$ opam install camlidl.1.12
But I got the following error message, which I had never seen before:
[ERROR] The compilation of camlidl.1.12 failed at "make all".
#=== ERROR while compiling camlidl.1.12 =======================================#
context 2.1.2 | linux/x86_64 | ocaml.4.13.1 | https://opam.ocaml.org#28c3ca4d
path ~/.opam/default/.opam-switch/build/camlidl.1.12
command ~/.opam/opam-init/hooks/sandbox.sh build make all
exit-code 1
env-file ~/.opam/log/camlidl-513510-e00e41.env
output-file ~/.opam/log/camlidl-513510-e00e41.out
output
bwrap: execvp make: No such file or directory
I had successfully installed this same package in other Ubuntu 22 virtual machines running under the same host machine before, so I found it odd that this time the opam install command had failed.
The error message also seemed strange to me, since my system does have make available in its standard location ( /usr/bin/make ) and I can successfully build/compile all my C++ projects that depend on "make" in this very same system with no problem.
What could we wrong this time?