coq icon indicating copy to clipboard operation
coq copied to clipboard

[config] Re-enable use of configure option -bytecode-compiler

Open ejgallego opened this issue 1 year ago • 3 comments

Since #16931 , ./configure -bytecode-compiler no had no effect, as we stopped checking the flag.

We do instead like native and set default options flag. I wonder if these options defaults should better read from the kernel tho.

ejgallego avatar Sep 28 '24 13:09 ejgallego

Note that this is not the same behavior as with -native-compiler. If one does

./configure -native-compiler no
...
coqc -native-compiler yes

then native compilation is still disabled (and a warning is displayed).

With your pull request, if one does

./configure -bytecode-compiler no
...
coqc -bytecode-compiler yes

then bytecode compilation is now enabled. Should both flags behave the same?

silene avatar Oct 01 '24 15:10 silene

then bytecode compilation is now enabled. Should both flags behave the same?

As you prefer folks, I guess in the native case it makes more sense to respect the configure flag as the VM may not be available, but I don't really have a preference.

My use case is similar, the VM is not available in any of the JavaScripts / WebAssembly builds.

I noticed this bug as indeed our build was passing -bytecode-compiler no to Coq, however we got the VM trap triggered.

Now jsCoq / coq-lsp builds do set the enable_VM setup correctly at init, so configure doesn't matter so much.

ejgallego avatar Oct 01 '24 16:10 ejgallego

Should both flags behave the same?

I believe so.

FWIW, the behavior of the -native-compiler flag is well-documented in the CEP 48 (which is still up-to-date in this regard).

erikmd avatar Oct 03 '24 21:10 erikmd

Should both flags behave the same?

IMO yes

SkySkimmer avatar Oct 29 '24 12:10 SkySkimmer

What do we do with this? 9.0 branch is coming around.

ppedrot avatar Dec 26 '24 07:12 ppedrot

Last call, this needs to be assigned and merged before Monday AoE to make it into 9.0.

ppedrot avatar Jan 11 '25 13:01 ppedrot

Thus postponing.

ppedrot avatar Jan 20 '25 08:01 ppedrot

@ejgallego what help are you looking for?

SkySkimmer avatar Jan 22 '25 14:01 SkySkimmer

@SkySkimmer code needs update to match the semantics used in native, per-discussion, it seems we need to add a warning for the case config = no; cmdline = yes

ejgallego avatar Feb 24 '25 09:02 ejgallego