-
Notifications
You must be signed in to change notification settings - Fork 33
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
Windows support through Opam 2.2 #1150
Comments
Thanks for the report & extra information. |
Good news, Alt-Ergo works on Windows through Opam 2.2 now! We support installations with both MSYS2 and Cygwin.
Please, let me know if you have an issue. Your patches have been helpful but when I tried it, I need to patch Alt-Ergo will officially support Windows in the next release Notice that some features are not available on Windows (see #1201). We plan to support |
Sorry for this long silence, I was in vacation ^^. I installed the package this morning and got the following warning:
And when I try to run the exectuable, nothing happens but the return value is false:
I guess that it means that Why3 will not be able to stop alt-ergo, but since Why3 still cannot compilable on Windows via Opam 2.2, I guess that it is not that problematic for us :P . From a business perspective it is not a problem for now: we have workaround for the very few people working on Windows and most of them do not use WP (thus, they do not use Alt-Ergo). It might be a "problem" for me for teaching in march 2025 if:
|
Thanks for the bug report. I will investigate. I need bit of information:
I didn't check but I guess that Why3 can kill a subprocess if it exceed the time limit. We plan to support timelimit on Windows through GC alarms.
We can publish a small release if you really need this feature before the 2.7.0. |
On this morning, I started from a clean opam. I do not have an existing Cygwin installation. Here is what I did:
And I get:
|
I tried again yesterday with a fresh installation of opam and I couldn't reproduce the bug. While working on the Windows support, I got a similar issue. Sometimes Alt-Ergo failed with a very large negative return code. After some investigations, I discovered that the issue was related with linked libraries. I didn't find the origin of the issue (because I didn't manage to compile Cygwin with appropriate debug flag to catch the error) but the bug disappeared after upgrading opam packages. I guess the bug disappered by sheer luck. We may have more information if you try to build Alt-Ergo from the source. Could you run these commands in bash?
|
Currently the problem is that it does not build at all, so I can't run it.
Do you know if there is a way to do it in the Cygwin environment generated by Opam? Else, I will have to create a new one, and I am not sure it will be configured the same way. |
Actually Alt-Ergo built but we use the command Sure, you can run bash for the Cygwin environment by lauching the binary
I believe that there is also an icon on your desktop to launch a bash terminal. In my case, I got a correct |
Running the build through bash allows to get a working executable. I tried to run the very same
It seems that there is something in the build that is closely related to the environment. |
At least we have a message :)
Let's try to build it in
and run EDIT: could send me the content of the file EDIT 2: we may run |
It seems that the last error is output by the ocaml compiler and could come from a mismatch between the assembler of |
FYI, we worked a little bit on porting Frama-C to Windows in Opam 2.2. We had to fix zlib and gmp which are also necessary for Alt-Ergo but we could not really figure out how to fix Alt-Ergo.
The fixes that we prepared are available here: ocaml/opam-repository@master...zilbuz:opam-repository:frama-c-windows
In Alt-Ergo, I slightly modified /src/bin/text/dune, adding a condition
enabled_if
for the flags, and for now just adding a rule for Windows that uses the standard flags, however, if I can build the executable, it just fails to run currently, so I guess that diving in the code of Alt-Ergo might be necessary.The text was updated successfully, but these errors were encountered: