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

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



Hello,

Are the following errors (and more similar ones):

 CC       xenctrl_stubs.o
In file included from /usr/lib64/ocaml/caml/alloc.h:24,
                 from xenctrl_stubs.c:22:
xenctrl_stubs.c: In function 'stub_xc_vcpu_context_get':
/usr/lib64/ocaml/caml/mlvalues.h:265:24: error: passing argument 1 of 'memcpy' 
discards 'const' qualifier from pointer target type 
[-Werror=discarded-qualifiers]
  265 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
xenctrl_stubs.c:502:9: note: in expansion of macro 'String_val'
  502 |  memcpy(String_val(context), (char *) &ctxt.c, sizeof(ctxt.c));
      |         ^~~~~~~~~~
In file included from xenctrl_stubs.c:30:
/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?

Regards
-- 
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

Attachment: signature.asc
Description: This is a digitally signed message part


 


Rackspace

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