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

alt-ergo build requires native compiler #25878

Merged
merged 1 commit into from
May 24, 2024

Conversation

raphael-proust
Copy link
Collaborator

The following error showed up on the CI of #25873

#=== ERROR while compiling alt-ergo.2.4.2 =====================================#
# context              2.2.0~beta3~dev | linux/arm32 | ocaml-base-compiler.5.2.0 | file:///home/opam/opam-repository
# path                 ~/.opam/5.2/.opam-switch/build/alt-ergo.2.4.2
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p alt-ergo -j 79
# exit-code            1
# env-file             ~/.opam/log/alt-ergo-6-c6418a.env
# output-file          ~/.opam/log/alt-ergo-6-c6418a.out
### output ###
# File "src/plugins/fm-simplex/dune", line 17, characters 5-25:
# 17 |     (FmSimplexPlugin.cmxs as plugins/fm-simplex-plugin.cmxs)
#           ^^^^^^^^^^^^^^^^^^^^
# Error: No rule found for src/plugins/fm-simplex/FmSimplexPlugin.cmxs
# File "src/plugins/AB-Why3/dune", line 24, characters 5-22:
# 24 |     (ABWhy3Plugin.cmxs as plugins/AB-Why3-plugin.cmxs)
#           ^^^^^^^^^^^^^^^^^
# Error: No rule found for src/plugins/AB-Why3/ABWhy3Plugin.cmxs

IIRC, cmxs files are produced by ocamlopt and so it seems that the build is incompatible with bytecode-only installs.

It's likely that other versions of alt-ergo should get the same change. I'll try to investigate which ones or maybe we can just apply a blanket change? (ping @Stevendeo ?)

@raphael-proust
Copy link
Collaborator Author

The new release is already mark incompatible with bytecode-only: #25866

@bclement-ocp
Copy link
Contributor

Applying a blanket change to all 2.X.Y releases should be fine, older releases may work with bytecode-only (but we really don't recommend using a bytecode version of Alt-Ergo).

FWIW the hard dependency on .cmxs will be removed in the upcoming 2.6 release.

@mseri
Copy link
Member

mseri commented May 23, 2024

@raphael-proust do you plan to apply the change to also other packages or we can merge?

@mseri mseri merged commit 6ed19e3 into ocaml:master May 24, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

3 participants