Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 879001 Details for
Bug 919807
dev-util/systemtap-4.9 fails to construct kernel modules for probes with GCC13
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
stap-output
file_919807.txt (text/plain), 21.71 KB, created by
Matt Jolly
on 2023-12-13 10:04:57 UTC
(
hide
)
Description:
stap-output
Filename:
MIME Type:
Creator:
Matt Jolly
Created:
2023-12-13 10:04:57 UTC
Size:
21.71 KB
patch
obsolete
>monolith ~ # stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' >Pass 1: parsed user script and 484 library scripts using 94984virt/84420res/6912shr/78548data kb, in 110usr/30sys/189real ms. >Pass 2: analyzed script: 1 probe, 1 function, 5 embeds, 0 globals using 324416virt/313408res/8036shr/307980data kb, in 1890usr/2010sys/5145real ms. >Pass 3: translated to C into "/tmp/stapSkao5S/stap_3f0c689d517b2a1c699f0c38655409ec_2666_src.c" using 324416virt/313512res/8140shr/307980data kb, in 10usr/100sys/111real ms. >In file included from /usr/share/systemtap/runtime/linux/runtime.h:262, > from /usr/share/systemtap/runtime/runtime.h:26, > from /tmp/stapSkao5S/stap_3f0c689d517b2a1c699f0c38655409ec_2666_src.c:21: >/usr/share/systemtap/runtime/linux/access_process_vm.h: In function â__access_process_vm_â: >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:36: error: passing argument 1 of âget_user_pages_remoteâ from incompatible pointer type [-Werror=incompatible-pointer-types] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~~ > | | > | struct task_struct * >In file included from ./include/linux/kallsyms.h:13, > from ./include/linux/ftrace.h:13, > from ./include/linux/kprobes.h:28, > from /usr/share/systemtap/runtime/linux/runtime.h:21: >./include/linux/mm.h:2397:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â > 2397 | long get_user_pages_remote(struct mm_struct *mm, > | ~~~~~~~~~~~~~~~~~~^~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:41: error: passing argument 2 of âget_user_pages_remoteâ makes integer from pointer without a cast [-Werror=int-conversion] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~ > | | > | struct mm_struct * >./include/linux/mm.h:2398:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â > 2398 | unsigned long start, unsigned long nr_pages, > | ~~~~~~~~~~~~~~^~~~~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:54: error: passing argument 5 of âget_user_pages_remoteâ makes pointer from integer without a cast [-Werror=int-conversion] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~~~~ > | | > | int >./include/linux/mm.h:2399:66: note: expected âstruct page **â but argument is of type âintâ > 2399 | unsigned int gup_flags, struct page **pages, > | ~~~~~~~~~~~~~~^~~~~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:61: error: passing argument 6 of âget_user_pages_remoteâ makes pointer from integer without a cast [-Werror=int-conversion] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^ > | | > | int >./include/linux/mm.h:2400:33: note: expected âint *â but argument is of type âintâ > 2400 | int *locked); > | ~~~~~^~~~~~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:13: error: too many arguments to function âget_user_pages_remoteâ > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~~~~~~~~~~~~~~~~~~~~ >./include/linux/mm.h:2397:6: note: declared here > 2397 | long get_user_pages_remote(struct mm_struct *mm, > | ^~~~~~~~~~~~~~~~~~~~~ >In file included from /usr/share/systemtap/runtime/linux/runtime.h:288: >/usr/share/systemtap/runtime/sym.c: At top level: >/usr/share/systemtap/runtime/sym.c:1159:5: error: conflicting types for âkallsyms_on_each_symbolâ; have âint(int (*)(void *, const char *, struct module *, long unsigned int), void *)â > 1159 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, > | ^~~~~~~~~~~~~~~~~~~~~~~ >./include/linux/kallsyms.h:73:5: note: previous declaration of âkallsyms_on_each_symbolâ with type âint(int (*)(void *, const char *, long unsigned int), void *)â > 73 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, unsigned long), > | ^~~~~~~~~~~~~~~~~~~~~~~ >/usr/share/systemtap/runtime/sym.c: In function âkallsyms_on_each_symbolâ: >/usr/share/systemtap/runtime/sym.c:1166:85: error: passing argument 1 of â(int (*)(int (*)(void *, const char *, long unsigned int), void *))_stp_kallsyms_on_each_symbolâ from incompatible pointer type [-Werror=incompatible-pointer-types] > 1166 | return (* (kallsyms_on_each_symbol_fn)_stp_kallsyms_on_each_symbol)(fn, data); > | ^~ > | | > | int (*)(void *, const char *, struct module *, long unsigned int) >/usr/share/systemtap/runtime/sym.c:1166:85: note: expected âint (*)(void *, const char *, long unsigned int)â but argument is of type âint (*)(void *, const char *, struct module *, long unsigned int)â >In file included from ./include/linux/kernel.h:30, > from ./arch/x86/include/asm/percpu.h:27, > from ./arch/x86/include/asm/preempt.h:6, > from ./include/linux/preempt.h:79, > from ./include/linux/spinlock.h:56, > from ./include/linux/mmzone.h:8, > from ./include/linux/gfp.h:7, > from /usr/share/systemtap/runtime/linux/runtime_defines.h:20, > from /usr/share/systemtap/runtime/runtime_defines.h:8, > from /tmp/stapSkao5S/stap_3f0c689d517b2a1c699f0c38655409ec_2666_src.c:12: >/usr/share/systemtap/runtime/linux/print.c: In function â_stp_print_kernel_infoâ: >/usr/share/systemtap/runtime/linux/print.c:365:43: error: âstruct moduleâ has no member named âmodule_coreâ > 365 | (unsigned long) THIS_MODULE->module_core, > | ^~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >/usr/share/systemtap/runtime/linux/print.c:366:44: error: âstruct moduleâ has no member named âcore_sizeâ > 366 | (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024, > | ^~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >/usr/share/systemtap/runtime/linux/print.c:366:71: error: âstruct moduleâ has no member named âcore_text_sizeâ; did you mean âkprobes_text_sizeâ? > 366 | (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024, > | ^~~~~~~~~~~~~~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >/usr/share/systemtap/runtime/linux/print.c:367:46: error: âstruct moduleâ has no member named âcore_text_sizeâ; did you mean âkprobes_text_sizeâ? > 367 | (unsigned long) (THIS_MODULE->core_text_size)/1024, > | ^~~~~~~~~~~~~~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >cc1: all warnings being treated as errors >make[1]: *** [scripts/Makefile.build:243: /tmp/stapSkao5S/stap_3f0c689d517b2a1c699f0c38655409ec_2666_src.o] Error 1 >make: *** [Makefile:2034: /tmp/stapSkao5S] Error 2 >WARNING: kbuild exited with status: 2 >Pass 4: compiled C into "stap_3f0c689d517b2a1c699f0c38655409ec_2666.ko" in 22210usr/3930sys/2085real ms. >Pass 4: compilation failed. [man error::pass4] >Time: 0h:00m:08s >monolith ~ # vim nfsd-peername.stp >Time: 0h:00m:12s >monolith ~ # stap -v nfsd-peername.stp >Pass 1: parsed user script and 484 library scripts using 94976virt/85504res/7168shr/78540data kb, in 100usr/20sys/117real ms. >WARNING: confusing usage, value is captured as @entry($peer) in .return probe [man stapprobes] RETURN PROBES: identifier '$peer' at nfsd-peername.stp:20:6 > source: if ($peer == 1) { > ^ >Pass 2: analyzed script: 6 probes, 24 functions, 6 embeds, 3 globals using 173752virt/166404res/9340shr/157316data kb, in 730usr/530sys/1272real ms. >Pass 3: translated to C into "/tmp/stapZwwU2A/stap_22c53fabece1e8779d682a4332f16901_28811_src.c" using 173752virt/166532res/9468shr/157316data kb, in 10usr/100sys/109real ms. >In file included from /usr/share/systemtap/runtime/linux/runtime.h:262, > from /usr/share/systemtap/runtime/runtime.h:26, > from /tmp/stapZwwU2A/stap_22c53fabece1e8779d682a4332f16901_28811_src.c:21: >/usr/share/systemtap/runtime/linux/access_process_vm.h: In function â__access_process_vm_â: >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:36: error: passing argument 1 of âget_user_pages_remoteâ from incompatible pointer type [-Werror=incompatible-pointer-types] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~~ > | | > | struct task_struct * >In file included from ./include/linux/kallsyms.h:13, > from ./include/linux/ftrace.h:13, > from ./include/linux/kprobes.h:28, > from /usr/share/systemtap/runtime/linux/runtime.h:21: >./include/linux/mm.h:2397:46: note: expected âstruct mm_struct *â but argument is of type âstruct task_struct *â > 2397 | long get_user_pages_remote(struct mm_struct *mm, > | ~~~~~~~~~~~~~~~~~~^~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:41: error: passing argument 2 of âget_user_pages_remoteâ makes integer from pointer without a cast [-Werror=int-conversion] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~ > | | > | struct mm_struct * >./include/linux/mm.h:2398:42: note: expected âlong unsigned intâ but argument is of type âstruct mm_struct *â > 2398 | unsigned long start, unsigned long nr_pages, > | ~~~~~~~~~~~~~~^~~~~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:54: error: passing argument 5 of âget_user_pages_remoteâ makes pointer from integer without a cast [-Werror=int-conversion] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~~~~ > | | > | int >./include/linux/mm.h:2399:66: note: expected âstruct page **â but argument is of type âintâ > 2399 | unsigned int gup_flags, struct page **pages, > | ~~~~~~~~~~~~~~^~~~~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:61: error: passing argument 6 of âget_user_pages_remoteâ makes pointer from integer without a cast [-Werror=int-conversion] > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^ > | | > | int >./include/linux/mm.h:2400:33: note: expected âint *â but argument is of type âintâ > 2400 | int *locked); > | ~~~~~^~~~~~ >/usr/share/systemtap/runtime/linux/access_process_vm.h:57:13: error: too many arguments to function âget_user_pages_remoteâ > 57 | ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); > | ^~~~~~~~~~~~~~~~~~~~~ >./include/linux/mm.h:2397:6: note: declared here > 2397 | long get_user_pages_remote(struct mm_struct *mm, > | ^~~~~~~~~~~~~~~~~~~~~ >In file included from /usr/share/systemtap/runtime/linux/runtime.h:288: >/usr/share/systemtap/runtime/sym.c: At top level: >/usr/share/systemtap/runtime/sym.c:1159:5: error: conflicting types for âkallsyms_on_each_symbolâ; have âint(int (*)(void *, const char *, struct module *, long unsigned int), void *)â > 1159 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, > | ^~~~~~~~~~~~~~~~~~~~~~~ >./include/linux/kallsyms.h:73:5: note: previous declaration of âkallsyms_on_each_symbolâ with type âint(int (*)(void *, const char *, long unsigned int), void *)â > 73 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, unsigned long), > | ^~~~~~~~~~~~~~~~~~~~~~~ >/usr/share/systemtap/runtime/sym.c: In function âkallsyms_on_each_symbolâ: >/usr/share/systemtap/runtime/sym.c:1166:85: error: passing argument 1 of â(int (*)(int (*)(void *, const char *, long unsigned int), void *))_stp_kallsyms_on_each_symbolâ from incompatible pointer type [-Werror=incompatible-pointer-types] > 1166 | return (* (kallsyms_on_each_symbol_fn)_stp_kallsyms_on_each_symbol)(fn, data); > | ^~ > | | > | int (*)(void *, const char *, struct module *, long unsigned int) >/usr/share/systemtap/runtime/sym.c:1166:85: note: expected âint (*)(void *, const char *, long unsigned int)â but argument is of type âint (*)(void *, const char *, struct module *, long unsigned int)â >/tmp/stapZwwU2A/stap_22c53fabece1e8779d682a4332f16901_28811_src.c: In function â_kretprobe_dataâ: >/tmp/stapZwwU2A/stap_22c53fabece1e8779d682a4332f16901_28811_src.c:139:44: error: âstruct kretprobe_instanceâ has no member named ârpâ > 139 | if (end > offset && pi && end <= pi->rp->data_size) > | ^~ >In file included from ./include/linux/kernel.h:30, > from ./arch/x86/include/asm/percpu.h:27, > from ./arch/x86/include/asm/preempt.h:6, > from ./include/linux/preempt.h:79, > from ./include/linux/spinlock.h:56, > from ./include/linux/mmzone.h:8, > from ./include/linux/gfp.h:7, > from /usr/share/systemtap/runtime/linux/runtime_defines.h:20, > from /usr/share/systemtap/runtime/runtime_defines.h:8, > from /tmp/stapZwwU2A/stap_22c53fabece1e8779d682a4332f16901_28811_src.c:12: >/usr/share/systemtap/runtime/linux/print.c: In function â_stp_print_kernel_infoâ: >/usr/share/systemtap/runtime/linux/print.c:365:43: error: âstruct moduleâ has no member named âmodule_coreâ > 365 | (unsigned long) THIS_MODULE->module_core, > | ^~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >/usr/share/systemtap/runtime/linux/print.c:366:44: error: âstruct moduleâ has no member named âcore_sizeâ > 366 | (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024, > | ^~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >/usr/share/systemtap/runtime/linux/print.c:366:71: error: âstruct moduleâ has no member named âcore_text_sizeâ; did you mean âkprobes_text_sizeâ? > 366 | (unsigned long) (THIS_MODULE->core_size - THIS_MODULE->core_text_size)/1024, > | ^~~~~~~~~~~~~~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >/usr/share/systemtap/runtime/linux/print.c:367:46: error: âstruct moduleâ has no member named âcore_text_sizeâ; did you mean âkprobes_text_sizeâ? > 367 | (unsigned long) (THIS_MODULE->core_text_size)/1024, > | ^~~~~~~~~~~~~~ >./include/linux/printk.h:427:33: note: in definition of macro âprintk_index_wrapâ > 427 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ >/usr/share/systemtap/runtime/linux/print.c:348:9: note: in expansion of macro âprintkâ > 348 | printk(KERN_DEBUG > | ^~~~~~ >cc1: all warnings being treated as errors >make[1]: *** [scripts/Makefile.build:243: /tmp/stapZwwU2A/stap_22c53fabece1e8779d682a4332f16901_28811_src.o] Error 1 >make: *** [Makefile:2034: /tmp/stapZwwU2A] Error 2 >WARNING: kbuild exited with status: 2 >Pass 4: compiled C into "stap_22c53fabece1e8779d682a4332f16901_28811.ko" in 21790usr/3940sys/2170real ms. >Pass 4: compilation failed. [man error::pass4] >Time: 0h:00m:03s >monolith ~ # gcc -v >Using built-in specs. >COLLECT_GCC=gcc >COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/13/lto-wrapper >Target: x86_64-pc-linux-gnu >Configured with: /var/tmp/portage/sys-devel/gcc-13.2.1_p20230826/work/gcc-13-20230826/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/13 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/13/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 13.2.1_p20230826 p7' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --without-isl --enable-default-pie --enable-default-ssp >Thread model: posix >Supported LTO compression algorithms: zlib >gcc version 13.2.1 20230826 (Gentoo 13.2.1_p20230826 p7) >monolith ~ # emerge -pv systemtap > >These are the packages that would be merged, in order: > >Calculating dependencies... done! >Dependency resolution took 3.56 s (backtrack: 0/20). > >[ebuild R ~] dev-util/systemtap-4.9::gentoo USE="ssl -libvirt (-selinux) -sqlite -test -zeroconf" PYTHON_SINGLE_TARGET="python3_11 -pypy3 -python3_10" 0 KiB
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 919807
: 879001