Closed andreasabel closed 3 years ago
@c-cube Do you have an idea?
I see the following in opam-repository:
packages/z3/z3.4.8.5/files/4468.patch
252:+ LIBZ3 = '-l' + z3link + ' -lstdc++' + ' -lgomp'
so I suspect that this version has a typo and it should be -lgmp
. Try opam pin z3 4.8.11
instead to get a more recent version?
Good catch on old the version/patch. Note also that z3 uses pthreads and not omp any longer. Maybe gmp depending on zarith dependencies or if z3 is compiled with optional gmp. There are no cycles to support old versions.
I confirm that 4.8.11 builds fine on my system, but fstar
, my installation goal, requires 4.8.5.
I reported this conflict to the fstar repo at https://github.com/FStarLang/FStar/issues/2344.
I think you can use something like opam pin z3 4.8.5 --edit
to modify the package locally (here, fix the patch maybe).
I think you can use something like
opam pin z3 4.8.5 --edit
to modify the package locally (here, fix the patch maybe).
Thanks @c-cube ! But I think I leave the fixing to the Fstar crowd...
macOS Mojave:
opam install z3
fails withld: library not found for -lgomp
The native C compiler of macOS Mojave does not seem to have library
gomp
. I installed the GNU C compiler (following https://stackoverflow.com/questions/64116617/libgomp-and-macosx) and it is in myPATH
:Yet it is not picked up by
opam
, it callsclang++
, and finally fails inocamlmklib
.Is there a workaround, like telling
opam
which C compiler to use, or additional libraries to use?Full log: