Port-xen archive

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

Re: xentools build failure (ocaml related)



On Tue, 5 Jan 2021 at 20:11, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> On Tue, 5 Jan 2021 at 19:49, Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
> >
> > On Tue, Jan 05, 2021 at 06:38:40PM +0100, Hauke Fath wrote:
> > > On an up-to-date netbsd-9 amd64 installation, both xentools-411 and
> > > xentools-413 builds are failing with
> > >
> > > [...]
> > > gmake[7]: Entering directory
> > > '/var/obj/pkgsrc/sysutils/xentools411/work/xen-4.11.4/tools/ocaml/libs/mmap'
> > > ocamldep xenmmap.ml *.mli >.ocamldep.make.new && mv -f .ocamldep.make.new
> > > .ocamldep.make
> > > ocamlc -unsafe-string -g  -w F -warn-error F -c -o xenmmap.cmi xenmmap.mli
> > > /usr/pkg/bin/ocamlc: OCaml has been configured with -force-safe-string:
> > > -unsafe-string is not available.
> > > Usage: ocamlc <options> <files>
> > > [...]
> > >
> > > Is this a known issue? Should I send-pr?
> >
> > Kown issue, I don't know how to fix yet, other than rebuilding ocaml
> > without -force-safe-string ...
>
> FWIW I just finished a build of the latest xentools 4.13. I had to
> manually do the following:
>
> 1. Patch string.c from seabios  (earlier suggestion):
>
> diff -u work/seabios-rel-1.12.1/src/string.c.orig
> work/seabios-rel-1.12.1/src/string.c
> --- work/seabios-rel-1.12.1/src/string.c.orig     2019-03-14
> 12:11:53.000000000 +0000
> +++ work/seabios-rel-1.12.1/src/string.c        2021-01-05
> 19:49:00.426549269 +0000
> @@ -152,9 +152,6 @@
>  void *
>  #undef memcpy
>  memcpy(void *d1, const void *s1, size_t len)
> -#if MODESEGMENT == 0
> -#define memcpy __builtin_memcpy
> -#endif
>  {
>      SET_SEG(ES, GET_SEG(SS));
>      void *d = d1;
>
>
> 2. Get rid of "-unsafe-string" from work/xen-4.13.2/tools/ocaml/common.make
>
> 3. Add "-Wno-error=discarded-qualifiers" to the Makefile.rules file.
>
> No idea if the resulting kit will work, though. I haven't tried xen
> for a while under NetBSD; one of these days, perhaps...
>
> >
> > --
> > Manuel Bouyer <bouyer%antioche.eu.org@localhost>
> >      NetBSD: 26 ans d'experience feront toujours la difference
> > --
>
> Chavdar

Also xencons is installed with the current python (3.7 for me on this
box), but the source is 2.7, so one needs to port it ( a few print and
except statements need () ).


>
>
> --
> ----



-- 
----


Home | Main Index | Thread Index | Old Index