[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Building for cubieboard4 with vanilla linux/linaro



If you  use ocamlfind 1.5.1 or later (from memory -- check the changelog or the base-bytes package in OPAM), then the 'bytes' package will be made available on 4.01 as well as a virtual package.  The intention is that 'bytes' can be used on any OCaml version and an appropriate compatibility shim will be made available on earlier OCaml versions. 

-anil

On 9 Jun 2015, at 05:42, Nick Betteridge <buzzheavyyear@xxxxxxxxxxx> wrote:

Just found the liblwt-ocaml_2.4.5.orig.tar bug:

edit file : buildroot/SPECS/ocaml-lwt.spec and insert the following as the first entry under %changelog


[%changelog]
* Mon May 12 2014 David Scott <dave.scott@xxxxxxxxxx> - 2.4.8-1
- Update to 2.4.8

[* Sun May 11 2014 David Scott <dave.scott@xxxxxxxxxx> - 2.4.5-1
- Update to 2.4.5]

This now continues but I then hit:


dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building liblwt-ocaml using existing ./liblwt-ocaml_2.4.8.orig.tar.gz
dpkg-source: info: building liblwt-ocaml in liblwt-ocaml_2.4.8-1.debian.tar.gz
dpkg-source: info: building liblwt-ocaml in liblwt-ocaml_2.4.8-1.dsc
 debian/rules build
dh build --with ocaml --with python2
   dh_testdir
   dh_ocamlinit
    sed  -e 's%@OCamlABI@%4.01.0%g' -e 's%@OCamlStdlibDir@%/usr/lib/ocaml%g' -e 's%@OCamlDllDir@%/usr/lib/ocaml/stublibs%g' -e 's/^OPT: //' -e '/^BYTE: /d' -e 's/^DYN: //' debian/liblwt-ocaml.install.in > debian/liblwt-ocaml.install
    sed  -e 's%@OCamlABI@%4.01.0%g' -e 's%@OCamlStdlibDir@%/usr/lib/ocaml%g' -e 's%@OCamlDllDir@%/usr/lib/ocaml/stublibs%g' -e 's/^OPT: //' -e '/^BYTE: /d' -e 's/^DYN: //' debian/liblwt-ocaml-dev.install.in > debian/liblwt-ocaml-dev.install
    touch ocamlinit-stamp
   debian/rules override_dh_auto_build
make[1]: Entering directory `/tmp/buildd/liblwt-ocaml-2.4.8'
debian/build.sh
ocamlfind: Package `bytes' not found
W: Field 'pkg_bytes' is not set: Command ''/usr/bin/ocamlfind' query -format %d bytes > '/tmp/oasis-676905.txt'' terminated with error code 2
E: Cannot find findlib package bytes
E: Failure("1 configuration error")
make[2]: Entering directory `/tmp/buildd/liblwt-ocaml-2.4.8'
ocamlopt.opt -o setup.exe setup.ml || ocamlopt -o setup.exe setup.ml || ocamlc -o setup.exe setup.ml
rm -f setup.cmx setup.cmi setup.o setup.obj setup.cmo
./setup.exe -configure 
ocamlfind: Package `bytes' not found
W: Field 'pkg_bytes' is not set: Command ''/usr/bin/ocamlfind' query -format %d bytes > '/tmp/oasis-e7da27.txt'' terminated with error code 2
E: Cannot find findlib package bytes
E: Failure("1 configuration error")
make[2]: *** [setup.data] Error 1


- bytes is only included with ocaml 4.02 and later - this is being compiled with 4.01, I think.

Could anyone tell be how to change buildroot to use 4.02?

Cheers
Nick



From: gautam.malu@xxxxxxxxxxxxxxxxxxx
Date: Sat, 6 Jun 2015 18:46:23 +0530
Subject: Re: [Xen-API] Building for cubieboard4 with vanilla linux/linaro
To: buzzheavyyear@xxxxxxxxxxx
CC: anil@xxxxxxxxxx; xen-api@xxxxxxxxxxxxx

Hi, 
I also tried xen-arm-builder on arndale exynos 5250 board with both ubuntu utopic image and with linaro-trusty image. I also got stuck at the same liblwt-ocaml_2.4.5.orig.tar issue. 

Best regards,
Gautam Malu

On Fri, Jun 5, 2015 at 8:31 PM, Nick Betteridge <buzzheavyyear@xxxxxxxxxxx>wrote:


The Linary/trusty problem is generally an annoyance in the xen-arm-builder image, since we can't just use upstream armhf images.  I wonder if it's just worth hacking into Ubuntu instead of Linaro, since it's the same image (I think).

Hi Anil,

I've already spent quite a lot of time playing with xen-arm-builder, try to coerce the build to work with the A80. I'll have another look. I just need xapi to work with something that has more grunt that an A20. I just wish I had more Linux dev experience.

Cheers
Nick

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.