From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 514DC3858C20; Wed, 24 Jan 2024 08:24:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 514DC3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706084690; bh=uWY4FQsNt2vX/oiaID9mKfguKJqubCV7ggfsK+Fmpi4=; h=From:To:Subject:Date:From; b=I6C2h7PRxPXoeLWHzUqfQRvWLsaL5o/GPv356uULP8g7y6UNTxBnmua2ioa3AGdtW QNpkDF5vKmoapCKkvhO2EDEMF4cgxVn2/VvOfpVSuGLohi1UIl6Yi7SXC/cpO18Qw5 pWcNYa5eGBdle0T/UQW6YDVAw28kbMBqi/Hlfoio= From: "kloczko.tomasz at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/31288] New: 5.0: build fails with gcc 14x Date: Wed, 24 Jan 2024 08:24:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kloczko.tomasz at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31288 Bug ID: 31288 Summary: 5.0: build fails with gcc 14x Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: kloczko.tomasz at gmail dot com Target Milestone: --- [tkloczko@pers-jacek systemtap-5.0]$ make V=3D1 -k /bin/sh ./git_version.sh -k -s . -o git_version.h git_version.sh: Not a git repo, keeping existing git_version.h make all-recursive make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' Making all in . make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' /usr/bin/g++ -DHAVE_CONFIG_H -I. -DBINDIR=3D'"/usr/bin"' -DSYSCONFDIR=3D'"= /etc"' -DPKGDATADIR=3D'"/usr/share/systemtap"' -DPKGLIBDIR=3D'"/usr/libexec/system= tap"' -DLOCALEDIR=3D'"/usr/share/locale"' -DDOCDIR=3D'"/usr/share/doc/systemtap"' -DPYEXECDIR=3D'""' -DPY3EXECDIR=3D'"/usr/lib/python3.8/site-packages"' -I./= includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss3 -I/usr/include/nspr4 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss3 -I/usr/include/nspr4 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=3Dauto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3D3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=3Dformat-security -c -o stap-bpf-translate.o `test -f 'bpf-translat= e.cxx' || echo './'`bpf-translate.cxx bpf-translate.cxx: In function =E2=80=98bpf::BPF_Section* bpf::output_probe(BPF_Output&, program&, const std::string&, unsigned int)= =E2=80=99: bpf-translate.cxx:5044:39: error: =E2=80=98void* calloc(size_t, size_t)=E2= =80=99 sizes specified with =E2=80=98sizeof=E2=80=99 in the earlier argument and not in = the later argument [-Werror=3Dcalloc-transposed-args] 5044 | bpf_insn *buf =3D (bpf_insn*) calloc (sizeof(bpf_insn), ninsns); | ^~~~~~~~~~~~~~~~ bpf-translate.cxx:5044:39: note: earlier argument should specify number of elements, later size of each element bpf-translate.cxx:5046:41: error: =E2=80=98void* calloc(size_t, size_t)=E2= =80=99 sizes specified with =E2=80=98sizeof=E2=80=99 in the earlier argument and not in = the later argument [-Werror=3Dcalloc-transposed-args] 5046 | Elf64_Rel *rel =3D (Elf64_Rel*) calloc (sizeof(Elf64_Rel), nreloc= ); | ^~~~~~~~~~~~~~~~~ bpf-translate.cxx:5046:41: note: earlier argument should specify number of elements, later size of each element cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1869: stap-bpf-translate.o] Error 1 /usr/bin/gcc -DHAVE_CONFIG_H -I. -DBINDIR=3D'"/usr/bin"' -DSYSCONFDIR=3D'"= /etc"' -DPKGDATADIR=3D'"/usr/share/systemtap"' -DPKGLIBDIR=3D'"/usr/libexec/system= tap"' -DLOCALEDIR=3D'"/usr/share/locale"' -DDOCDIR=3D'"/usr/share/doc/systemtap"' -DPYEXECDIR=3D'""' -DPY3EXECDIR=3D'"/usr/lib/python3.8/site-packages"' -I./= includes -I./includes/sys -D_GNU_SOURCE -fexceptions -Wall -Wextra -Werror -Wunused -Wformat=3D2 -W -I/usr/include/libxml2 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=3Dauto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3D3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=3Dformat-security -c -o stapvirt-stapvirt.o `test -f 'stapvirt.c' |= | echo './'`stapvirt.c stapvirt.c: In function =E2=80=98getActiveDomains=E2=80=99: stapvirt.c:122:33: error: =E2=80=98calloc=E2=80=99 sizes specified with =E2= =80=98sizeof=E2=80=99 in the earlier argument and not in the later argument [-Werror=3Dcalloc-transposed-args] 122 | *ids =3D (int*) calloc(sizeof(int), idsn); | ^~~ stapvirt.c:122:33: note: earlier argument should specify number of elements, later size of each element stapvirt.c: In function =E2=80=98getInactiveDomains=E2=80=99: stapvirt.c:148:37: error: =E2=80=98calloc=E2=80=99 sizes specified with =E2= =80=98sizeof=E2=80=99 in the earlier argument and not in the later argument [-Werror=3Dcalloc-transposed-args] 148 | *names =3D (char**) calloc(sizeof(char*), namesn); | ^~~~ stapvirt.c:148:37: note: earlier argument should specify number of elements, later size of each element stapvirt.c: In function =E2=80=98getAllDomains=E2=80=99: stapvirt.c:191:46: error: =E2=80=98calloc=E2=80=99 sizes specified with =E2= =80=98sizeof=E2=80=99 in the earlier argument and not in the later argument [-Werror=3Dcalloc-transposed-args] 191 | *domains =3D (virDomainPtr*) calloc(sizeof(virDomainPtr), idsn+namesn); | ^~~~~~~~~~~~ stapvirt.c:191:46: note: earlier argument should specify number of elements, later size of each element cc1: all warnings being treated as errors make[2]: *** [Makefile:1209: stapvirt-stapvirt.o] Error 1 make[2]: Target 'all-am' not remade because of errors. make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' Making all in java make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/ja= va' make all-am make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/ja= va' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/jav= a' make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/jav= a' Making all in python make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/python' (cd .; CFLAGS=3D"-I./../includes -I/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/python/../includes/sys" /usr/bin/python3 setup.py build \ --build-base /home/tkloczko/rpmbuild/BUILD/systemtap-5.0/python/py3build \ --verbose) running build running build_py running build_ext make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/pyt= hon' Making all in stapdyn make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/stapdyn' make -C .. git_version.stamp make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' /bin/sh ./git_version.sh -k -s . -o git_version.h git_version.sh: Not a git repo, keeping existing git_version.h make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' make all-am make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/stapdyn' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/stapdyn' make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/stapdyn' Making all in staprun make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/staprun' make -C .. git_version.stamp make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' /bin/sh ./git_version.sh -k -s . -o git_version.h git_version.sh: Not a git repo, keeping existing git_version.h make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0' make all-am make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/systemtap-5.0/staprun' /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -I./../includes -I./../includes/sys -DBINDIR=3D'"/usr/bin"' -DSYSCONFDIR=3D'"/etc"' -DPKGDATADIR=3D'"/usr/share/systemtap"' -DPKGLIBDIR=3D'"/usr/libexec/system= tap"' -DLOCALEDIR=3D'"/usr/share/locale"' -Wall -Wextra -Werror -Wunused -W -Wfo= rmat=3D2 -DSINGLE_THREADED -I/usr/include/nss3 -I/usr/include/nspr4 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=3Dauto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3D3 -Wp,-D_GLIBCXX_ASS= ERTIONS -Wall -Werror=3Dformat-security -c -o staprun-staprun.o `test -f 'staprun.c= ' || echo './'`staprun.c staprun.c: In function =E2=80=98main=E2=80=99: staprun.c:550:50: error: =E2=80=98calloc=E2=80=99 sizes specified with =E2= =80=98sizeof=E2=80=99 in the earlier argument and not in the later argument [-Werror=3Dcalloc-transposed-args] 550 | char ** new_argv =3D calloc(sizeof(char *),argc+2); | ^~~~ staprun.c:550:50: note: earlier argument should specify number of elements, later size of each element cc1: all warnings being treated as errors --=20 You are receiving this mail because: You are the assignee for the bug.=