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

Re: [Xen-devel] Tools build failure with gcc-9.2.1



Hi Dario,

On 30/03/2020 11:58, Dario Faggioli wrote:
On Sun, 2020-03-29 at 18:19 +0100, Julien Grall wrote:
On 25/03/2020 09:40, Dario Faggioli wrote:
/usr/include/string.h:43:14: note: expected 'void * restrict' but
argument is of type 'const char *'
     43 | extern void *memcpy (void *__restrict __dest, const void
*__restrict __src,
        |              ^~~~~~

When building with:

gcc version 9.2.1 20200306 [revision
c5edde44f5b17b4891f17a63517f355bbf89e7d3] (SUSE Linux)

Already known and being dealt with?

I suspect you have a new version of Ocaml built with -safe-string as
per
[1], String_Val() will return (const char *) rather than (char *).

Yep, I checked in the ocaml headers installed on the system, and that's
exactly the case.

I am looking at writing a patch for it and send it to xen-devel.

Cool, thanks! I'll be happy to test it. :-)

I have just posted the patches [1]. This was compiled with OCaml 4.10.x and -safe-string. Let me know if it fixes everything on your side.

Cheers,

[1] <20200330192157.1335-1-julien@xxxxxxx>

--
Julien Grall



 


Rackspace

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