-
Notifications
You must be signed in to change notification settings - Fork 5
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
FlatZinc interface: Missing output #9
Comments
Hi, If you use g++, you have to use version 5. There is no problem if you use clang. To make it work, you should replace g++ by g++-5 in /Makefile /template.mk and fz/template.mk. By the way, the documentation is not up to date. You can, however, follow the basic steps in the README file in fz/. Also, the solver is well installed in docker following the Minizinc docker image. Let me know how it goes. |
Thank you for the quick response. I am compiling with clang 13.0.1 (the current version distributed with macOS 12.4) on an M1 Mac, so I'm not sure if this is just an issue with older versions of GCC. I can see the docker image, but would still like to be able to just use it on my own machine (directly). It makes trying different solvers a lot easier. (I'm also trying to make my efforts reproducible so other Homebrew users can easily install many open MiniZinc solvers: Dekker1/homebrew-minizinc#17) |
Hi, Also, can I ask you why didn't you use the mzn lib to flatten with all diff? |
The test now seems to pass locally again on my machine, but does not pass on the Ubuntu CI. Would this now be the GCC issue that you spoke of, or was that the one you resolved. Regarding the MiniZinc library. I did actually use the library, but it overrides A few years ago the MiniZinc library was restructured to have a clear separation between the library managed by the MiniZinc project, and the solvers. This ensures that certain guarantees can be given to the solver predicates, and more rewriting and checks can be done in the general MiniZinc library without the need to copy it into each solver library. Generally the idea is thus that solvers should only override |
To add details, the Ubuntu CI machine is not receiving any output when running
https://github.com/Dekker1/homebrew-minizinc/runs/6995303694 |
I'm trying to use the FlatZinc solver according to the instructions in
fz/README
. I've compiledmistral-fzn
usingmake
, and the binary seems to work. Both-h
and--version
give the correct output, both usingmistral-fzn
andmistral-fz
.However, when I run mistral on an actual FlatZinc file, I'm not getting any results.
I'm using a simple model:
which flattens down to:
Running
./mistral-fz test.fzn
does not give any output.Directly running
./mistral-fzn test.fzn
does give output, but does not seem to output any results:Did I do anything wrong? Am I missing some step in mistral's compilation?
The text was updated successfully, but these errors were encountered: