FS#54393 - [clingo] 5.2.0 compilation with gcc leads to opam solver error

Attached to Project: Community Packages
Opened by David Udelson (dudelson) - Friday, 09 June 2017, 23:45 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 10 July 2017, 16:11 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: After updating clingo to version 5.2.0-2, invoking the opam external solver produces the following error:

$ opam install core
[WARNING] External solver failed with inconsistent return value. Request saved to
"/home/vagrant/.opam/log/solver-error-712-1.cudf"
[ERROR] External solver failure, please fix your installation and check /home/vagrant/.opam/config and
variable $OPAMEXTERNALSOLVER.
You may also retry with option --use-internal-solver

While I am completely clueless as to the source of this bug, it appears to be a regression of a bug already solved in this issue on the opam bugtracker: https://github.com/ocaml/opam/issues/2203 . That is, adding the option "-DCMAKE_CXX_COMPILER=clang++" to the cmake command in the PKGBUILD resolves the issue.


Additional info:
- clingo 5.2.0-2
- aspcud 1.9.1-1
- opam 1.2.2-3

Steps to reproduce:
1) Using the package versions given above, attempt to install or upgrade any ocaml package using opam (e.g. `opam install core`).
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Monday, 10 July 2017, 16:11 GMT
Reason for closing:  Implemented
Additional comments about closing:  Compiling with clang++ for x86_64. i686 works neither with clang++ nor with gcc.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 22 June 2017, 23:00 GMT
Hi, thanks for reporting.

"opam reinstall core" worked fine here, with the same versions of clingo, aspcud and opam as you have.

Does "opam reinstall core" work for you?
Comment by Francisco Lopes (pepper_chico) - Friday, 30 June 2017, 15:13 GMT
I'm getting this trying to install opam:

~ ❯❯❯ pacman -S opam
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: aspcud and clingo are in conflict
Comment by Alexander F. Rødseth (xyproto) - Friday, 30 June 2017, 15:50 GMT
@pepper_chico Should work now.

@dudelson, du you still get the issue above when running "opam install core", after reinstalling opam?
Comment by Francisco Lopes (pepper_chico) - Friday, 30 June 2017, 16:21 GMT
@Alexander pacman cache didn't update yet, will report later.
Comment by Fnord Popos (noddy) - Friday, 07 July 2017, 02:41 GMT
Can we get this moving? It renders opam inoperable on arch.

It has been reported on https://github.com/ocaml/opam/issues/2203#issuecomment-307526541 and https://discuss.ocaml.org/t/opam-insists-on-downgrades-because-of-ocamlfind/389/7.

Direct and stable repro is difficult because the local opam state needs to fill up with a few packages for this to manifest, the behavior is volatile, and the opam package repo is changing at a rapid pace. The linked github discussion contains at least two cudf logs that aspcud fails to solve with clingo as presently packaged, but succeeds when clingo is recompiled with clang.
Comment by Alexander F. Rødseth (xyproto) - Friday, 07 July 2017, 16:04 GMT
Compiling clingo with clang only works for x86_64. I can compile with clang only for x86_64, but the issue still needs to be fixed for i686 by upstream.
Comment by Alexander F. Rødseth (xyproto) - Friday, 07 July 2017, 16:40 GMT
Update the clingo package to be compiled with clang++. Works on x86_64. Dropped i686 temporarily.
Comment by Fnord Popos (noddy) - Friday, 07 July 2017, 17:25 GMT
Thank you!

Loading...