Created attachment 1356601 [details] Build log Description of problem: ---------------------- I cannot build libguestfs from sources (https://github.com/libguestfs/libguestfs) due to the specified error. Version-Release number of selected component (if applicable): ------------------------------------------------------------ v1.37.34 commit 946d5bf8d47b3129dbfd8d848ba53ce3be0b6bd8 Steps to Reproduce: ------------------ ----------------- Configuring twice ----------------- ./autogen.sh --build=x86_64-pc-linux-gnu \ --enable-fuse \ --enable-golang \ --disable-ocaml \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var ./autogen.sh --build=x86_64-pc-linux-gnu \ --enable-fuse \ --enable-golang \ --disable-ocaml \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var echo --------- echo Compiling echo --------- make echo ------- echo Testing echo ------- export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 make check Actual results: -------------- ------- Testing ------- Making check in common/mlstdutils make[1]: Entering directory '/home/actionmystique/src/Libguestfs/git-libguestfs/common/mlstdutils' make std_utils_tests make[2]: Entering directory '/home/actionmystique/src/Libguestfs/git-libguestfs/common/mlstdutils' CC std_utils_tests-dummy.o OCAMLOPT std_utils_tests.cmx GEN std_utils_tests File "_none_", line 1: Error: Files /usr/lib/ocaml/oUnit/oUnitAdvanced.cmxa and /usr/lib/ocaml/unix.cmxa make inconsistent assumptions over implementation Unix Makefile:2030: recipe for target 'std_utils_tests' failed make[2]: *** [std_utils_tests] Error 2 Full build log is attached.
Which version of ocaml, ocaml-ounit do you have installed?
Actually this looks like it's Debian, not Fedora. If this happens on another distro then it's basically a packaging bug in that distro.
On Ubuntu 17.10 # apt-cache policy ocaml ocaml: Installed: 4.04.0-2ubuntu4 # apt-cache policy ocaml-ounit N: Unable to locate package ocaml-ounit
# dpkg -S /usr/lib/ocaml/oUnit/oUnitAdvanced.cmxa libounit-ocaml-dev: /usr/lib/ocaml/oUnit/oUnitAdvanced.cmxa # dpkg -S /usr/lib/ocaml/unix.cmxa ocaml-nox: /usr/lib/ocaml/unix.cmxa # apt-cache policy libounit-ocaml-dev libounit-ocaml-dev: Installed: 2.0.0-2 # apt-cache policy ocaml-nox ocaml-nox: Installed: 4.04.0-2ubuntu4
Asking on https://lists.debian.org/debian-ocaml-maint/ may be your best bet here, although I don't know if anyone really cares about Ubuntu. I'm closing this as it's a packaging bug in Ubuntu and so not something that we are able to solve.