Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zfalcon opened this issue Aug 6, 2015 · 3 comments
Open

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

zfalcon opened this issue Aug 6, 2015 · 3 comments
Labels

Comments

@zfalcon
Copy link

zfalcon commented Aug 6, 2015

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
Copy link
Author

zfalcon commented Aug 6, 2015

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

@jonludlam
Copy link
Collaborator

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.

@zfalcon
Copy link
Author

zfalcon commented Aug 7, 2015

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!!

@euanh euanh added the deb label Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants