[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]

marietto2008 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 20 12:38:56 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919

Marietto <marietto2008 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marietto2008 at gmail dot com

--- Comment #25 from Marietto <marietto2008 at gmail dot com> ---
Hello.

I'm trying to configure and compile GVT-g to enable the passthrough of the
integrated GPU that I have on my motherboard,the model "Intel Corporation UHD
Graphics 630 (Desktop 9 Series) (rev 02)". This is the tutorial that I'm
following :

https://lists.freedesktop.org/archives/intel-gvt-dev/2017-June/001238.html

I reached this point and then the compilation stopped for an error that it
seems to be the same as this.

root@ziomario-z390aoruspro:/etc/xen/gvt-linux# make
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DESCEND  objtool
  CC       /etc/xen/gvt-linux/tools/objtool/pager.o
  CC       /etc/xen/gvt-linux/tools/objtool/parse-options.o
  CC       /etc/xen/gvt-linux/tools/objtool/run-command.o
  CC       /etc/xen/gvt-linux/tools/objtool/sigchain.o
  CC       /etc/xen/gvt-linux/tools/objtool/subcmd-config.o
  LD       /etc/xen/gvt-linux/tools/objtool/libsubcmd-in.o
  AR       /etc/xen/gvt-linux/tools/objtool/libsubcmd.a
  GEN      /etc/xen/gvt-linux/tools/objtool/arch/x86/insn/inat-tables.c
  CC       /etc/xen/gvt-linux/tools/objtool/arch/x86/decode.o
  LD       /etc/xen/gvt-linux/tools/objtool/arch/x86/objtool-in.o
  CC       /etc/xen/gvt-linux/tools/objtool/builtin-check.o
  CC       /etc/xen/gvt-linux/tools/objtool/elf.o
  CC       /etc/xen/gvt-linux/tools/objtool/special.o
  CC       /etc/xen/gvt-linux/tools/objtool/objtool.o
  CC       /etc/xen/gvt-linux/tools/objtool/libstring.o
  CC       /etc/xen/gvt-linux/tools/objtool/str_error_r.o
../lib/str_error_r.c: In function ‘str_error_r’:
../lib/str_error_r.c:24:3: error: passing argument 1 to restrict-qualified
parameter aliases with argument 5 [-Werror=restrict]
   24 |   snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d",
errnum, buf, buflen, err);
      |   ^~~~~~~~
cc1: all warnings being treated as errors
mv: impossibile eseguire stat di
'/etc/xen/gvt-linux/tools/objtool/.str_error_r.o.tmp': File o directory non
esistente
make[3]: *** [Build:18: /etc/xen/gvt-linux/tools/objtool/str_error_r.o] Errore
1
make[2]: *** [Makefile:40: /etc/xen/gvt-linux/tools/objtool/objtool-in.o]
Errore 2
make[1]: *** [Makefile:61: objtool] Errore 2
make: *** [Makefile:1616: tools/objtool] Errore 2

I don't understand where is the patch ?


More information about the Gcc-bugs mailing list