#1145859 trace-cmd: FTBFS: ctracecmd_wrap.c:4405:22: error: implicit declaration of function 'PyInt_Check'; did you mean 'PySet_Check'? [-Wimplicit-function-declaration]

Package:
src:trace-cmd
Source:
src:trace-cmd
Submitter:
Santiago Vila
Date:
2026-09-26 22:51:01 UTC
Severity:
normal
Tags:
#1145859#5
Date:
2026-08-27 11:53:36 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:trace-cmd, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-dump.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-dump.c > /<<PKGBUILDDIR>>/tracecmd/.trace-dump.d
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-clear.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-clear.c > /<<PKGBUILDDIR>>/tracecmd/.trace-clear.d
ctracecmd_wrap.c: In function ‘python_callback’:
ctracecmd_wrap.c:4405:22: error: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration]
 4405 |                 if (!PyInt_Check(result)) {
      |                      ^~~~~~~~~~~
      |                      PySet_Check
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-vm.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-vm.c > /<<PKGBUILDDIR>>/tracecmd/.trace-vm.d
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-convert.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-convert.c > /<<PKGBUILDDIR>>/tracecmd/.trace-convert.d
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-attach.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-attach.c > /<<PKGBUILDDIR>>/tracecmd/.trace-attach.d
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-agent.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-agent.c > /<<PKGBUILDDIR>>/tracecmd/.trace-agent.d
make[3]: *** [Makefile:13: ctracecmd.so] Error 1
make[2]: *** [Makefile:593: ctracecmd.so] Error 2
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-tsync.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-tsync.c > /<<PKGBUILDDIR>>/tracecmd/.trace-tsync.d
make[2]: *** Waiting for unfinished jobs....
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-setup-guest.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-setup-guest.c > /<<PKGBUILDDIR>>/tracecmd/.trace-setup-guest.d
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-sqlhist.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-sqlhist.c > /<<PKGBUILDDIR>>/tracecmd/.trace-sqlhist.d
cc -M -MT /<<PKGBUILDDIR>>/tracecmd/trace-vsock.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include trace-vsock.c > /<<PKGBUILDDIR>>/tracecmd/.trace-vsock.d
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-cmd.c -o /<<PKGBUILDDIR>>/tracecmd/trace-cmd.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-record.c -o /<<PKGBUILDDIR>>/tracecmd/trace-record.o)
trace-record.c: In function ‘add_arg’:
trace-record.c:6289:21: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 6289 |                 ptr = strchr(opts, c);
      |                     ^
trace-record.c: In function ‘check_tracing_enabled’:
trace-record.c:2633:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2633 |         write(fd, "1", 1);
      |         ^~~~~~~~~~~~~~~~~
trace-record.c: In function ‘set_plugin_instance’:
trace-record.c:1942:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1942 |         write(fd, &zero, 1);
      |         ^~~~~~~~~~~~~~~~~~~
trace-record.c: In function ‘update_ftrace_pid’:
trace-record.c:1026:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1026 |         write(fd, " ", 1);
      |         ^~~~~~~~~~~~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-read.c -o /<<PKGBUILDDIR>>/tracecmd/trace-read.o)
trace-record.c: In function ‘get_date_to_ts’:
trace-record.c:5155:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5155 |                 write(tfd, STAMP, 5);
      |                 ^~~~~~~~~~~~~~~~~~~~
trace-record.c: In function ‘functions_filtered’:
trace-record.c:4994:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 4994 |         read(fd, buf, 1);
      |         ^~~~~~~~~~~~~~~~
trace-record.c: In function ‘set_mask’:
trace-record.c:2970:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2970 |         write(fd, instance->cpumask, strlen(instance->cpumask));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c: In function ‘check_protocol_version’:
trace-record.c:3806:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3806 |         write(fd, V3_CPU, sizeof(V3_CPU));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c:3821:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3821 |                 write(fd, V3_MAGIC, sizeof(V3_MAGIC));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c: In function ‘check_first_msg_from_server’:
trace-record.c:3702:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3702 |         read(msg_handle->fd, buf, 8);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c: In function ‘communicate_with_listener_v1’:
trace-record.c:3723:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3723 |         write(msg_handle->fd, buf, strlen(buf)+1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c:3729:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3729 |         write(msg_handle->fd, buf, strlen(buf)+1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c:3745:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3745 |                 write(msg_handle->fd, "1", 2);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c:3747:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3747 |                 write(msg_handle->fd, "4", 2);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c:3749:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3749 |                 write(msg_handle->fd, "TCP", 4);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c:3752:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3752 |                 write(msg_handle->fd, "0", 2);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-record.c: In function ‘make_pid_filter’:
trace-record.c:1163:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1163 |                 asprintf(&filter, "(%s)&&(%s)", curr_filter, filter);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-split.c -o /<<PKGBUILDDIR>>/tracecmd/trace-split.o)
trace-split.c: In function ‘write_page’:
trace-split.c:282:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  282 |         write(cpu_data->fd, cpu_data->page, page_size);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-listen.c -o /<<PKGBUILDDIR>>/tracecmd/trace-listen.o)
trace-listen.c: In function ‘make_pid_file’:
trace-listen.c:1012:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1012 |         write(fd, buf, strlen(buf));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-listen.c: In function ‘communicate_with_client’:
trace-listen.c:356:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  356 |         write(fd, "tracecmd", 8);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
trace-listen.c:390:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  390 |                         write(fd, "V3", 3);
      |                         ^~~~~~~~~~~~~~~~~~
trace-listen.c:395:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  395 |                 write(fd, "V3", 3);
      |                 ^~~~~~~~~~~~~~~~~~
trace-listen.c:403:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  403 |                 write(fd, "OK", 2);
      |                 ^~~~~~~~~~~~~~~~~~
trace-listen.c: In function ‘create_all_readers’:
trace-listen.c:578:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  578 |                         write(msg_handle->fd, buf, strlen(buf));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace-listen.c:581:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  581 |                 write(msg_handle->fd, "\0", 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-stack.c -o /<<PKGBUILDDIR>>/tracecmd/trace-stack.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-hist.c -o /<<PKGBUILDDIR>>/tracecmd/trace-hist.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-mem.c -o /<<PKGBUILDDIR>>/tracecmd/trace-mem.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-snapshot.c -o /<<PKGBUILDDIR>>/tracecmd/trace-snapshot.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-stat.c -o /<<PKGBUILDDIR>>/tracecmd/trace-stat.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-profile.c -o /<<PKGBUILDDIR>>/tracecmd/trace-profile.o)
trace-profile.c:22:3: warning: #warning "lib audit not found, using raw syscalls " "(install audit-libs-devel(for fedora) or libaudit-dev(for debian/ubuntu) and try again)" [-Wcpp]
   22 | # warning "lib audit not found, using raw syscalls "    \
      |   ^~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-stream.c -o /<<PKGBUILDDIR>>/tracecmd/trace-stream.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-restore.c -o /<<PKGBUILDDIR>>/tracecmd/trace-restore.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-check-events.c -o /<<PKGBUILDDIR>>/tracecmd/trace-check-events.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-show.c -o /<<PKGBUILDDIR>>/tracecmd/trace-show.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-list.c -o /<<PKGBUILDDIR>>/tracecmd/trace-list.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-usage.c -o /<<PKGBUILDDIR>>/tracecmd/trace-usage.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-dump.c -o /<<PKGBUILDDIR>>/tracecmd/trace-dump.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-clear.c -o /<<PKGBUILDDIR>>/tracecmd/trace-clear.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-vm.c -o /<<PKGBUILDDIR>>/tracecmd/trace-vm.o)
trace-vm.c: In function ‘read_guest_cid’:
trace-vm.c:364:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  364 |         asprintf(&cmd, "%s %s", VM_CID_CMD, name);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-convert.c -o /<<PKGBUILDDIR>>/tracecmd/trace-convert.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-attach.c -o /<<PKGBUILDDIR>>/tracecmd/trace-attach.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-agent.c -o /<<PKGBUILDDIR>>/tracecmd/trace-agent.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-tsync.c -o /<<PKGBUILDDIR>>/tracecmd/trace-tsync.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-setup-guest.c -o /<<PKGBUILDDIR>>/tracecmd/trace-setup-guest.o)
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-sqlhist.c -o /<<PKGBUILDDIR>>/tracecmd/trace-sqlhist.o)
trace-setup-guest.c: In function ‘get_guest_cpu_count’:
trace-setup-guest.c:108:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  108 |         fscanf(f, "%d", &nr_cpus);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
trace-setup-guest.c: In function ‘attach_guest_fifos’:
trace-setup-guest.c:135:17: warning: ignoring return value of ‘pwrite’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  135 |                 pwrite(fd, xml, strlen(xml), 0);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  cc -c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DVSOCK -DPERF -DHAVE_ZLIB -DHAVE_ZSTD -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DWARN_NO_AUDIT -DNO_AUDIT -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/../../include -I/<<PKGBUILDDIR>>/include/trace-cmd -I/<<PKGBUILDDIR>>/lib/trace-cmd/include -I/<<PKGBUILDDIR>>/lib/trace-cmd/include/private -I/<<PKGBUILDDIR>>/tracecmd/include -I/usr/include/traceevent -I/usr/include/tracefs -I/usr/include/traceevent -DVAR_DIR="/var" '-DPLUGIN_TRACECMD_DIR=""'   -DHAVE_BLK_TC_FLUSH  -DHAVE_MEMFD_CREATE -I/<<PKGBUILDDIR>>/tracecmd/include -std=gnu99 trace-vsock.c -o /<<PKGBUILDDIR>>/tracecmd/trace-vsock.o)
( cc /<<PKGBUILDDIR>>/tracecmd/trace-cmd.o /<<PKGBUILDDIR>>/ [too-long-redacted] s -ltraceevent -lz -lzstd -ldl)
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" all DESTDIR=/<<PKGBUILDDIR>>/debian/tmp/ prefix=/usr VERBOSE=1 libdir_relative=lib/x86_64-linux-gnu pkgconfig_dir=/usr/lib/x86_64-linux-gnu/pkgconfig returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145859#10
Date:
2026-08-30 19:20:05 UTC
From:
To:
This issue is caused by the removal of the Python 2 compatibility macros in version 4.5.0 of SWIG. [1] According to the SWIG authors, these macros were retained in the generated code (pyhead.swg) solely for user typemaps. All typemap using these macros are updated to call the Python 3 C API directly.

I submitted a patch for fixing the issue as a merge request at Salsa. [2]

Best,

Rafael Laboissière

[1] https://github.com/swig/swig/commit/79f7a2b7cb7ddc256eba09c8770133148025171d
[2] https://salsa.debian.org/sudip/trace-cmd/-/merge_requests/4

#1145859#17
Date:
2026-09-26 22:48:59 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
trace-cmd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145859@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sudip Mukherjee <sudipm.mukherjee@gmail.com> (supplier of updated trace-cmd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 26 Sep 2026 20:53:43 +0100
Source: trace-cmd
Architecture: source
Version: 3.4-2
Distribution: unstable
Urgency: medium
Maintainer: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Changed-By: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Closes: 1145859
Changes:
 trace-cmd (3.4-2) unstable; urgency=medium
 .
   [ Rafael Laboissière ]
   * Add patch for fixing FTBFS with swig 4.5.0 (Closes: #1145859)
Checksums-Sha1:
 25aa1af60a449511348614c906fdc244128a162b 2206 trace-cmd_3.4-2.dsc
 fba3322aea45b6f019bb19592e8ba818c06f89dd 10436 trace-cmd_3.4-2.debian.tar.xz
 68f8b0baa02325b02a101368e1d9151f284fcfea 8855 trace-cmd_3.4-2_amd64.buildinfo
Checksums-Sha256:
 634906c9465cfdea7667f504b360cea58bffb27e8efa79c5d97af5b2139e4510 2206 trace-cmd_3.4-2.dsc
 f25df8b247657d5cbf010ceb2953f45378d7bbf62782cda8109bdb1748d51038 10436 trace-cmd_3.4-2.debian.tar.xz
 c47cfc9c6c71fe33876bf73d2777ee824e66c8c8aea677e9f2945a440dce8921 8855 trace-cmd_3.4-2_amd64.buildinfo
Files:
 c81226da09eee8b614737c2c4cf783df 2206 devel optional trace-cmd_3.4-2.dsc
 e5a982c06c8a54f3764814222259fdcb 10436 devel optional trace-cmd_3.4-2.debian.tar.xz
 41160bbf41f99e6c6b4f12133048785a 8855 devel optional trace-cmd_3.4-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEuDQJkCg9jZvBlJrHR5mjUUbRKzUFAmq4KwQACgkQR5mjUUbR
KzUwdBAAmWgbnBWo2dUkMaMjYu4ADdipW1QOymH8dYudRmIqouETNyAL38aE/Li/
pvctPEG6/BRaJLx9/hAcQdWwket953xf2jirse5r3g7FcQFVxvwOSUNw9Y6EVfaY
GqqHXsMBn+UyIek7vmMInmRc4pW3+BGkaTXVwLdLbJyF+ITX04HrOyMx0JBtrQiR
3FgQXXKfBylxFg22/+hUv6j3RIOCqFEA/HQjRyP4KkIiryzJypisoD17PjimK9WN
20a76sZ9DogtaFrbzVE1SmCqTb90SIHvx1W0Ks/oYTAea53+mBu/bTh322vHtMGs
utsBjjp+meSVleFFlPPHdLj4b/o8XzV0sBe/UH5Uqp7rdSbGty2y6v/2NuEyWED1
po5kzLf/WV5Ew+EV3QsccVVvOncfWlA8kxXztZEaBLtG38SyIHtS8u2hkc5rPS+E
Gi8uh4XDNW97Mds9E0Q7c5lKu/GWCMqtr+5RF6UczGM7VOphTzI5m6ub5bi0m1yd
dTiCp0jlo50E2+h68e1TJrthSvRwF59XziV7NGKzDywQXeyULkedEYW98aYV4OJZ
21lUqvXoOE4R0DDPT4OTZV/tUVRXXfvxE4L/RziUFo30huyG8tlrINGcvcie8AH9
FSRGVVxAUlIQScoG9Wi8A37gNomVy6Au/N2st1vrIDxk0EVp9ME=
=rxaf
-----END PGP SIGNATURE-----