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

Failure to build on ocaml with a byte-only compiler #27

Closed
mseri opened this issue May 22, 2023 · 1 comment
Closed

Failure to build on ocaml with a byte-only compiler #27

mseri opened this issue May 22, 2023 · 1 comment

Comments

@mseri
Copy link

mseri commented May 22, 2023

It builds fine on ocaml 4.14 with bytecode-only compiler (e.g. opam switch create ocaml.4.14.1+options ocaml-option-bytecode-only).

An example of a failure is

#=== ERROR while compiling camlidl.1.11 =======================================#
# context     2.1.3 | macos/arm64 | ocaml-option-bytecode-only.1 | git+https://github.com/ocaml/opam-repository.git
# path        /Volumes/ext/.opam/ocaml.4.14.1+options/.opam-switch/build/camlidl.1.11
# command     /Volumes/ext/.opam/opam-init/hooks/sandbox.sh build make all
# exit-code   2
# env-file    /Volumes/ext/.opam/log/camlidl-14325-e3ada1.env
# output-file /Volumes/ext/.opam/log/camlidl-14325-e3ada1.out
### output ###
# [...]
# 11 warnings generated.
# ocamlc -g -ccopt "-Wall -g" comerror.c
# rm -f dllcamlidl.so
# ocamlmklib -o camlidl  idlalloc.o comintf.o comerror.o
# cd lib; /Library/Developer/CommandLineTools/usr/bin/make all
# ocamlc -g -c com.mli
# ocamlc -g -c com.ml
# ocamlc -g -a -o com.cma -dllib -lcamlidl -cclib -lcamlidl com.cmo
# ocamlopt -c com.ml
# make[1]: ocamlopt: No such file or directory
# make[1]: *** [com.cmx] Error 1
# make: *** [all] Error 2
@xavierleroy
Copy link
Owner

Well spotted, I'll fix this shortly.

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

2 participants