[Bug middle-end/88780] [8/9/10/11 Regression] bogus -Wstringop-truncation for copying as many bytes from a string as its length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88780 Marietto changed: What|Removed |Added CC||marietto2008 at gmail dot com --- Comment #6 from Marietto --- Hello. I'm a xen user. I'm trying to Build Qemu & Xen for XenGT on Ubuntu 20.04 following this tutorial : https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide#332-build-qemu--xen-for-xengt because I want to share the integrated GPU with a xen VM. The main hardware components of my PC are the following : CPU I9-9900k Intel Corporation UHD Graphics 630 (Desktop 9 Series) (rev 02) IVIDIA Corporation TU102 [GeForce RTX 2080 Ti] (rev a1) The compilation gave no errors until this point : root@ziomario-z390aoruspro:/etc/xen/igvtg-xen# make install-tools .. make libs make[5]: ingresso nella directory «/etc/xen/igvtg-xen/tools/libxc» rm -f _paths.h.tmp; echo "#define sbindir "/usr/sbin"" >>_paths.h.tmp; echo "#define bindir "/usr/bin"" >>_paths.h.tmp; echo "#define LIBEXEC "/usr/lib/xen"" >>_paths.h.tmp; echo "#define LIBEXEC_BIN "/usr/lib/xen/bin"" >>_paths.h.tmp; echo "#define libdir "/usr/lib"" >>_paths.h.tmp; echo "#define SHAREDIR "/usr/share"" >>_paths.h.tmp; echo "#define XENFIRMWAREDIR "/usr/lib/xen/boot"" >>_paths.h.tmp; echo "#define XEN_CONFIG_DIR "/etc/xen"" >>_paths.h.tmp; echo "#define XEN_SCRIPT_DIR "/etc/xen/scripts"" >>_paths.h.tmp; echo "#define XEN_LOCK_DIR "/var/lock"" >>_paths.h.tmp; echo "#define XEN_RUN_DIR "/var/run/xen"" >>_paths.h.tmp; echo "#define XEN_PAGING_DIR "/var/lib/xen/xenpaging"" >>_paths.h.tmp; echo "#define XEN_DUMP_DIR "/var/lib/xen/dump"" >>_paths.h.tmp; echo "#define XEN_LOG_DIR "/var/log/xen"" >>_paths.h.tmp; echo "#define XEN_LIB_DIR "/var/lib/xen"" >>_paths.h.tmp; echo "#define XEN_RUN_STORED "/var/run/xenstored"" >>_paths.h.tmp; if ! cmp -s _paths.h.tmp paths.h; then mv -f paths.h.tmp paths.h; else rm -f paths.h.tmp; fi gcc -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -O2 -fomit-frame-pointer -D__XEN_INTERFACE_VERSION=XEN_LATEST_INTERFACE_VERSION -MMD -MF .xc_pm.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -I../../xen/common/libelf -Werror -Wmissing-prototypes -I. -I./include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -D__XEN_TOOLS -pthread -I/etc/xen/igvtg-xen/tools/libxc/../../tools/libs/toollog/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/libs/evtchn/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/libs/devicemodel/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -include /etc/xen/igvtg-xen/tools/libxc/../../tools/config.h -I/etc/xen/igvtg-xen/tools/libxc/../../tools/libs/call/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/libs/foreignmemory/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/libs/gnttab/include -I/etc/xen/igvtg-xen/tools/libxc/../../tools/include -c -o xc_pm.o xc_pm.c In file included from /usr/include/string.h:495, from xc_private.h:24, from xc_pm.c:22: In function ‘strncpy’, inlined from ‘xc_set_cpufreq_gov’ at xc_pm.c:308:5: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~ cc1: all warnings being treated as errors make[5]: *** [/etc/xen/igvtg-xen/tools/libxc/../../tools/Rules.mk:222: xc_pm.o] Errore 1 make[5]: uscita dalla directory «/etc/xen/igvtg-xen/tools/libxc» make[4]: *** [Makefile:184: build] Errore 2 make[4]: uscita dalla directory «/etc/xen/igvtg-xen/tools/libxc» make[3]: *** [/etc/xen/igvtg-xen/tools/../tools/Rules.mk:246: subdir-install-libxc] Errore 2 make[3]: uscita dalla directory «/etc/xen/igvtg-xen/tools» make[2]: *** [/etc/xen/igvtg-xen/tools/../tools/Rules.mk:241: subdirs-install] Errore 2 make[2]: uscita dalla directory «/etc/xen/igvtg-xen/tools» make[1]: *** [Makefile:74: install] Errore 2 make[1]: uscita dalla directory «/etc/xen/igvtg-xen/tools» make: *** [Makefile:127: install-tools] Errore 2 how can I fix it ?
[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 Marietto changed: What|Removed |Added CC||marietto2008 at gmail dot com --- Comment #25 from Marietto --- 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 CALLscripts/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 ?
[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #26 from Marietto --- I'm using ubuntu 20.04 and gcc 9.3
[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #28 from Marietto --- I'm not a coder. can u explain to me carefully what should I do ? thanks. Il giorno gio 20 ago 2020 alle ore 16:40 msebor at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> ha scritto: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 > > --- Comment #27 from Martin Sebor --- > The fix was applied to GCC 10 but not to GCC 9 or 8. It will not be > backported > there. It can be suppressed by introducing a named temporary copy of the > pointer and using it as one other other argument to the function. > > void f (char *p) > { > char *q = p; > sprintf (p, "%p", q); > } > > -- > You are receiving this mail because: > You are on the CC list for the bug.
[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #29 from Marietto --- I get this error : gcc -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -O2 -fomit-frame-pointer -nostdinc -fno-builtin -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ -include /etc/xen/igvtg-xen/xen/include/xen/config.h '-D__OBJECT_FILE__="trace.o"' -Wa,--strip-local-absolute -MMD -MF ./.trace.o.d -I/etc/xen/igvtg-xen/xen/include -I/etc/xen/igvtg-xen/xen/include/asm-x86/mach-generic -I/etc/xen/igvtg-xen/xen/include/asm-x86/mach-default -DXEN_IMG_OFFSET=0x20 '-D__OBJECT_LABEL__=common$trace.o' -msoft-float -fno-stack-protector -fno-exceptions -Wnested-externs -DHAVE_GAS_VMX -DHAVE_GAS_SSE4_2 -DHAVE_GAS_EPT -DHAVE_GAS_RDRAND -DHAVE_GAS_FSGSBASE -DHAVE_GAS_RDSEED -U__OBJECT_LABEL__ -DHAVE_GAS_QUOTED_SYM '-D__OBJECT_LABEL__=common/trace.o' -mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -c trace.c -o trace.o trace.c: In function ‘__trace_hypercall’: trace.c:829:19: error: taking address of packed member of ‘struct ’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 829 | uint32_t *a = d.args; | ^ cc1: all warnings being treated as errors
[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #31 from Marietto --- they don't reply to messages and they don't fix old bugs. And new users aren't interested to use xen anymore. So,it's a waste of time.
[Bug middle-end/88780] [8/9/10/11 Regression] bogus -Wstringop-truncation for copying as many bytes from a string as its length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88780 --- Comment #8 from Marietto --- https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1892475 Il giorno mar 18 ago 2020 alle ore 19:26 msebor at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> ha scritto: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88780 > > --- Comment #7 from Martin Sebor --- > (In reply to Marietto from comment #6) > ... > > In function ‘strncpy’, > > inlined from ‘xc_set_cpufreq_gov’ at xc_pm.c:308:5: > > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: > > ‘__builtin_strncpy’ specified bound 16 equals destination size > > [-Werror=stringop-truncation] > > 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos > (__dest)); > > | ^~ > > This instance of the warning is most likely unrelated to the one reported > in > comment #0 (to tell for sure we'd need a test case to reproduce it). It > indicates that strncpy is being called with the third argument set to the > size > of the destination array, which leaves the destination unterminated unless > the > source string is shorter. The following articles describe the problem and > the > suggested solutions in detail: > > > https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8/ > > https://us-cert.cisa.gov/bsi/articles/knowledge/coding-practices/strncpy-and-strncat > > -- > You are receiving this mail because: > You are on the CC list for the bug.
[Bug c++/48460] New: The compilation of Qemu 0.14.0 stops on a ARM cpu based board
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48460 Summary: The compilation of Qemu 0.14.0 stops on a ARM cpu based board Product: gcc Version: unknown Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: marietto2...@gmail.com I'm trying to compile qemu 0.14.0 on the Insignia Infocast 8" (its a chumby based device : www.chumby.com) it is based on a ARM cpu based board. chumby:/qemu/i386-softmmu# uname -a Linux chumby 2.6.28-M2.1.8.12 #1 Thu Dec 9 13:04:27 PST 2010 armv5tejl GNU/Linux The compilation stops on the translate.o file : chumby:/qemu# apt-get install git-core gitweb chumby:/qemu# git clone git://git.qemu.org/qemu.git chumby:/qemu# cd qemu chumby:/qemu# ./configure chumby:/qemu# make CCi386-softmmu/translate.o gcc: Internal error: Killed (program cc1) Please submit a full bug report. See for instructions. make[1]: *** [translate.o] Error 1 make: *** [subdir-i386-softmmu] Error 2 chumby:/qemu# chumby:/# gcc -v Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libssp --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1.1)
[Bug c/48460] The compilation of Qemu 0.14.0 stops on a ARM cpu based board
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48460 --- Comment #2 from Marietto 2011-04-05 13:02:21 UTC --- (In reply to comment #1) > gcc: Internal error: Killed (program cc1) > > you ran out of memory. I've read somewhere that's possible to compile qemu without to go out of memory.