Bug 1515765 - Files /usr/lib/ocaml/oUnit/oUnitAdvanced.cmxa and /usr/lib/ocaml/unix.cmxa make inconsistent assumptions over implementation Unix
Summary: Files /usr/lib/ocaml/oUnit/oUnitAdvanced.cmxa and /usr/lib/ocaml/unix.cmxa ma...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-21 10:52 UTC by jean-christophe manciot
Modified: 2017-11-21 12:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-21 12:06:23 UTC
Embargoed:


Attachments (Terms of Use)
Build log (476.04 KB, text/x-vhdl)
2017-11-21 10:52 UTC, jean-christophe manciot
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.