Bug 1515765

Summary: Files /usr/lib/ocaml/oUnit/oUnitAdvanced.cmxa and /usr/lib/ocaml/unix.cmxa make inconsistent assumptions over implementation Unix
Product: [Community] Virtualization Tools Reporter: jean-christophe manciot <actionmystique>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CANTFIX QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: actionmystique, dchen, ptoscano, rbalakri, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-21 12:06:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Build log none

Description jean-christophe manciot 2017-11-21 10:52:43 UTC
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.

Comment 1 Richard W.M. Jones 2017-11-21 11:22:07 UTC
Which version of ocaml, ocaml-ounit do you have installed?

Comment 2 Richard W.M. Jones 2017-11-21 11:23:07 UTC
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.

Comment 3 jean-christophe manciot 2017-11-21 11:27:01 UTC
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

Comment 4 jean-christophe manciot 2017-11-21 11:31:46 UTC
# 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

Comment 5 Richard W.M. Jones 2017-11-21 12:06:23 UTC
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.