Bug ID 1225933
Summary Systemtap flavor systemtap-docs fails to build with gcc14 because of -Werror=calloc-transposed-args
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee screening-team-bugs@suse.de
Reporter mjambor@suse.com
QA Contact qa-bugs@suse.de
CC tonyj@suse.com
Blocks 1220574
Target Milestone ---
Found By ---
Blocker ---

System tap flavor systemtap-docs fails to build with gcc 14 because of
a warning-turned-error about transposed calloc arguments.  To try it
locally, run:

  osc build -M systemtap-docs --clean --alternative-project
home:rguenther:nextgcc standard

And after a while it will fail with something like: 

[  270s] bpf-translate.cxx: In function ‘bpf::BPF_Section*
bpf::output_probe(BPF_Output&, program&, const std::string&, unsigned int)’:
[  270s] bpf-translate.cxx:5044:39: error: ‘void* calloc(size_t, size_t)’ sizes
specified with ‘sizeof’ in the earlier argument and not in the later argument
[-Werror=calloc-transposed-args]
[  270s]  5044 |   bpf_insn *buf = (bpf_insn*) calloc (sizeof(bpf_insn),
ninsns);
[  270s]       |                                       ^~~~~~~~~~~~~~~~
[  270s] bpf-translate.cxx:5044:39: note: earlier argument should specify
number of elements, later size of each element
[  270s] bpf-translate.cxx:5046:41: error: ‘void* calloc(size_t, size_t)’ sizes
specified with ‘sizeof’ in the earlier argument and not in the later argument
[-Werror=calloc-transposed-args]
[  270s]  5046 |   Elf64_Rel *rel = (Elf64_Rel*) calloc (sizeof(Elf64_Rel),
nreloc);
[  270s]       |                                         ^~~~~~~~~~~~~~~~~
[  270s] bpf-translate.cxx:5046:41: note: earlier argument should specify
number of elements, later size of each element


You are receiving this mail because: