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

obytelib.1.6 fails to build with opam: /usr/lib/ocaml/../../bin/ocamlbuild: No such file or directory #6

Open
nathanfarlow opened this issue Dec 13, 2022 · 0 comments

Comments

@nathanfarlow
Copy link

Looks like this line in configure is incorrect:

OCAMLBUILD="$(ocamlc -where)/../../bin/ocamlbuild"

Maybe because ocamlbuild doesn't ship with OCaml anymore?

Some relevant commands:

nathan@laptop:~$ ocamlc -where
/usr/lib/ocaml
nathan@laptop:~$ ocamlbuild -where
/home/nathan/.opam/default/lib/ocamlbuild
nathan@laptop:~$ which ocamlbuild
/home/nathan/.opam/default/bin/ocamlbuild
nathan@laptop:~$ opam --version
2.1.2
nathan@laptop:~$ ocaml -version
The OCaml toplevel, version 4.13.1

Note that ocamlbuild is in my path by default when installing through opam

Full error:

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved obytelib.1.6  (cached)
⬇ retrieved ocamlclean.2.3  (cached)
[ERROR] The compilation of obytelib.1.6 failed at "make all".

#=== ERROR while compiling obytelib.1.6 =======================================#
# context     2.1.2 | linux/x86_64 | ocaml.4.13.1 | https://opam.ocaml.org#92063b79
# path        ~/.opam/default/.opam-switch/build/obytelib.1.6
# command     ~/.opam/opam-init/hooks/sandbox.sh build make all
# exit-code   2
# env-file    ~/.opam/log/obytelib-40251-12e8b4.env
# output-file ~/.opam/log/obytelib-40251-12e8b4.out
### output ###
# cp ../etc/prim.ml prim.ml
# cp ../etc/config.ml config.ml
# /usr/lib/ocaml/../../bin/ocamlbuild -cflags -w,@a-4-70,-warn-error,A,-safe-string,-strict-formats,-strict-sequence -lflags -w,@a-4-70,-warn-error,A,-safe-string,-strict-formats,-strict-sequence -no-links -classic-display -cflag -g -lflag -g oByteLib.cmi
# make[1]: /usr/lib/ocaml/../../bin/ocamlbuild: No such file or directory
# make[1]: *** [Makefile:25: _build/oByteLib.cmi] Error 127
# make: *** [Makefile:15: all] Error 2

The package installs correctly if I introduce the symlink ln /home/nathan/.opam/default/bin/ocamlbuild /usr/bin/ocamlbuild

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

No branches or pull requests

1 participant