xavierleroy / camlidl

Stub code generator for OCaml/C interface
Other
34 stars 8 forks source link

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

Closed mseri closed 1 year ago

mseri commented 1 year ago

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 commented 1 year ago

Well spotted, I'll fix this shortly.