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

opaque and g flags are not detected correctly on ocaml 5.2 #78

Open
emillon opened this issue Jul 5, 2024 · 0 comments
Open

opaque and g flags are not detected correctly on ocaml 5.2 #78

emillon opened this issue Jul 5, 2024 · 0 comments

Comments

@emillon
Copy link

emillon commented Jul 5, 2024

Hi,
OCaml 5.2.0 contains ocaml/ocaml#12613 which will make ocamlc and ocamlopt error if no input files are passed.
The configure script relies on this do detect support for -opaque and -g:

ocamlc -opaque >/dev/null 2>/dev/null || opaque=""

ocamlopt -g >/dev/null 2>/dev/null || native_debugging_info=""

Concretely, building findlib in an opam switch before and after the ocaml change yields the following diff:

--- /tmp/opam-good/lib/findlib/Makefile.config
+++ /tmp/opam-bad/lib/findlib/Makefile.config
@@ -24,8 +24,8 @@
 SYSTEM=linux
 NUMTOP=
 SH=
-OPAQUE=-opaque
-OCAMLOPT_G=-g
+OPAQUE=
+OCAMLOPT_G=
 CHECK_BEFORE_INSTALL=0
 INSTALLDIR = install -d
 # change to INSTALLDIR = mkdir -p   when BSD install is unavavailable

This is visible to the end user because linking against findlib will now emit this warning:

Warning 58 [no-cmx-file]: no cmx file was found in path for module Findlib, and its interface was not compiled with -opaque

Thanks

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