buildroot icon indicating copy to clipboard operation
buildroot copied to clipboard

Make fails On ubuntu 14.04:ocamlfind: Package `bytes' not found

Open zfalcon opened this issue 10 years ago • 3 comments

make[1]: Entering directory /tmp/buildd/liblwt-ocaml-2.4.8' debian/build.sh ocamlfind: Packagebytes' not found W: Field 'pkg_bytes' is not set: Command ''/usr/bin/ocamlfind' query -format %d bytes > '/tmp/oasis-40795f.txt'' terminated with error code 2 E: Cannot find findlib package bytes E: Failure("1 configuration error")

But When I tar this package and enter the folder(_build/SRPMS/lwt-2.4.8#) , use command list: ./configure --disable-libev make

it‘s Successful!

zfalcon avatar Aug 06 '15 07:08 zfalcon

xapi@ubxapi:~/xapi/buildroot# opam list

Installed packages for system:

base-bigarray base base-bytes legacy base-no-ppx base base-threads base base-unix base cdrom 0.9.1 cmdliner 0.9.7 cppo 1.1.2 ctypes-foreign 0.4.0 fd-send-recv 1.0.1 obuild 0.1.5 ocamlfind 1.5.5 oclock 0.4.0 ocplib-endian 0.8 omake 0.9.8.6-0.rc1 ounit 2.0.0 re 1.4.1 syslog 1.4 uuidm 0.9.5 xapi-inventory 0.9.1 xapi-stdext 0.12.0 xmlm 1.2.0

zfalcon avatar Aug 06 '15 08:08 zfalcon

This will be because we are using ocamlfind from Ubuntu which is older than required. We need to back port a newer version. I don't recall exactly which ocamlfind version introduced the 'bytes', but it's certainly in 1.5.5, which is why the opam build succeeded.

jonludlam avatar Aug 06 '15 09:08 jonludlam

Thank you for your reply!

How do I debug it? Can you share a VM what is compiled xapi environment? Example ova file...

Thank you very much!!

zfalcon avatar Aug 07 '15 02:08 zfalcon