Your message dated Sat, 08 Feb 2025 21:12:29 +0000 with message-id <e1tgs7p-0084md...@fasolo.debian.org> and subject line Bug#1095462: fixed in sysprof 48~beta-2 has caused the Debian Bug report #1095462, regarding sysprof :FTBFS:build failed ( error: ‘PERF_REG_EXTENDED_MASK’ undeclared (first use in this function)) to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 1095462: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095462 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Source: sysprof Version: 48~beta-1 Severity: serious Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-ri...@lists.debian.org Dear sysprof maintainer, The package sysprof build failed on most arch.The crucial buildd log below: ``` [294/504] cc -Isrc/sysprof-live-unwinder/tests/test-live-unwinder.p -Isrc/sysprof-live-unwinder/tests -I../src/sysprof-live-unwinder/tests -Isrc/libsysprof -I../src/libsysprof -Isrc/libsysprof-capture -I../src/libsysprof-capture -Icontrib/eggbitset -I../contrib/eggbitset -Icontrib/elfparser -I../contrib/elfparser -Icontrib/linereader -I../contrib/linereader -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/libdex-1 -I/usr/include/json-glib-1.0 -I/usr/include/polkit-1 '-I/build/reproducible-path/sysprof-48~beta/obj-arm-linux-gnueabi' -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=gnu17 -DSYSPROF_COMPILATION -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_76 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_76 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_16 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_16 -Wcast-align -Wdeclaration-after-statement -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wnested-externs -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-cast-function-type -Wpointer-arith -Wredundant-decls -Wswitch-default -Wswitch-enum -Wuninitialized -Werror=format-security -Werror=format=2 -Werror=empty-body -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=int-conversion -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=overflow -Werror=return-type -Werror=shadow -Werror=strict-prototypes -Werror=undef -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/sysprof-48~beta=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -DG_ENABLE_DEBUG -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS '-DBUILDDIR="/build/reproducible-path/sysprof-48~beta/obj-arm-linux-gnueabi/src/sysprof-live-unwinder/tests"' -MD -MQ src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o -MF src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o.d -o src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o -c ../src/sysprof-live-unwinder/tests/test-live-unwinder.c FAILED: src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o cc -Isrc/sysprof-live-unwinder/tests/test-live-unwinder.p -Isrc/sysprof-live-unwinder/tests -I../src/sysprof-live-unwinder/tests -Isrc/libsysprof -I../src/libsysprof -Isrc/libsysprof-capture -I../src/libsysprof-capture -Icontrib/eggbitset -I../contrib/eggbitset -Icontrib/elfparser -I../contrib/elfparser -Icontrib/linereader -I../contrib/linereader -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/libdex-1 -I/usr/include/json-glib-1.0 -I/usr/include/polkit-1 '-I/build/reproducible-path/sysprof-48~beta/obj-arm-linux-gnueabi' -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=gnu17 -DSYSPROF_COMPILATION -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_76 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_76 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_4_16 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_4_16 -Wcast-align -Wdeclaration-after-statement -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wnested-externs -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-cast-function-type -Wpointer-arith -Wredundant-decls -Wswitch-default -Wswitch-enum -Wuninitialized -Werror=format-security -Werror=format=2 -Werror=empty-body -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=int-conversion -Werror=misleading-indentation -Werror=missing-include-dirs -Werror=overflow -Werror=return-type -Werror=shadow -Werror=strict-prototypes -Werror=undef -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/sysprof-48~beta=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -DG_ENABLE_DEBUG -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS '-DBUILDDIR="/build/reproducible-path/sysprof-48~beta/obj-arm-linux-gnueabi/src/sysprof-live-unwinder/tests"' -MD -MQ src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o -MF src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o.d -o src/sysprof-live-unwinder/tests/test-live-unwinder.p/test-live-unwinder.c.o -c ../src/sysprof-live-unwinder/tests/test-live-unwinder.c ../src/sysprof-live-unwinder/tests/test-live-unwinder.c: In function ‘open_perf_stream’: ../src/sysprof-live-unwinder/tests/test-live-unwinder.c:61:38: error: ‘PERF_REG_EXTENDED_MASK’ undeclared (first use in this function); did you mean ‘PERF_BR_EXTEND_ABI’? 61 | # define SYSPROF_ARCH_PREFERRED_REGS PERF_REG_EXTENDED_MASK | ^~~~~~~~~~~~~~~~~~~~~~ ../src/sysprof-live-unwinder/tests/test-live-unwinder.c:126:31: note: in expansion of macro ‘SYSPROF_ARCH_PREFERRED_REGS’ 126 | attr.sample_regs_user = SYSPROF_ARCH_PREFERRED_REGS; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/sysprof-live-unwinder/tests/test-live-unwinder.c:61:38: note: each undeclared identifier is reported only once for each function it appears in 61 | # define SYSPROF_ARCH_PREFERRED_REGS PERF_REG_EXTENDED_MASK | ^~~~~~~~~~~~~~~~~~~~~~ ../src/sysprof-live-unwinder/tests/test-live-unwinder.c:126:31: note: in expansion of macro ‘SYSPROF_ARCH_PREFERRED_REGS’ 126 | attr.sample_regs_user = SYSPROF_ARCH_PREFERRED_REGS; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` The full buildd los is here: https://buildd.debian.org/status/fetch.php?pkg=sysprof&arch=riscv64&ver=48%7Ebeta-1&stamp=1738975361&raw=0 My solution to this issue: The cause of this error is that the code uses the macro "PERF_REG_EXTENDED_MASK" on a non-x86 architecture, whereas this macro is typically defined only on x86 platforms (or after including certain x86 header files). To resolve this issue, you can adopt a conditional check approach: if a non‑x86 platform is detected or if PERF_REG_EXTENDED_MASK is not defined, provide an appropriate default value (for example, 0ULL).The debpatch is in the attachment.I have tested it locally and it works well.Please let me know whether this solution can be accepted. Gui-Yue Best Regards
fix_sysprof_build_failed.patch
Description: Binary data
--- End Message ---
--- Begin Message ---Source: sysprof Source-Version: 48~beta-2 Done: Jeremy Bícha <jbi...@ubuntu.com> We believe that the bug you reported is fixed in the latest version of sysprof, 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 1095...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Jeremy Bícha <jbi...@ubuntu.com> (supplier of updated sysprof 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 ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 08 Feb 2025 15:50:51 -0500 Source: sysprof Built-For-Profiles: noudeb Architecture: source Version: 48~beta-2 Distribution: unstable Urgency: medium Maintainer: Debian GNOME Maintainers <pkg-gnome-maintain...@lists.alioth.debian.org> Changed-By: Jeremy Bícha <jbi...@ubuntu.com> Closes: 1095448 1095462 Changes: sysprof (48~beta-2) unstable; urgency=medium . * Cherry-pick patch to fix build on most architectures (Closes: #1095448, #1095462) Checksums-Sha1: 2f882d93d93c38d67ae95f0781d6b5ef0fa94bff 3106 sysprof_48~beta-2.dsc 5c5883a985358463728534e02b313bdb09d722b6 17476 sysprof_48~beta-2.debian.tar.xz 55d3db10e3b59b08c2964bd5b52ffc0f7b423b11 17589 sysprof_48~beta-2_source.buildinfo Checksums-Sha256: 526c259be969200cb67d857b3c80dc9cba5d3017d30ce48f8ab0231c3ccabf00 3106 sysprof_48~beta-2.dsc 5eba46177859a8c4cfd51487f8c500d75a95675d88749024c1bc31b3ac6eb8b1 17476 sysprof_48~beta-2.debian.tar.xz 763e8f9f8b210eda92b146fef5e81df7363b5fb3849fc4461c23d67ffa06e864 17589 sysprof_48~beta-2_source.buildinfo Files: e842d9531e1ed6d62f3084842a16b9ba 3106 devel optional sysprof_48~beta-2.dsc 3aa39ec0bc096c2dc6d6cc9b3eea17dd 17476 devel optional sysprof_48~beta-2.debian.tar.xz 33a9d2609b0567dfa3888970672f4fa7 17589 devel optional sysprof_48~beta-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmenw8IACgkQ5mx3Wuv+ bH03SQ/+KWDE7svMAl4jDPpqz/Vvf3Wx0BXDuT1hvjyU9+F3kH32LwZDQyCCcbWo nZU3TRIa6SFNpGGwP3aex+x3Ge+UtGVRsvlRgtbLmJUTu7GZ74oxA9TMuQ2TtzZW kGhg9zFQK2BZrMBlWBIj0bN2UuyyO2fjQna95eVRRWbVXnXiwA47ftxEvwOmb39M uPnV6jx6h2eZu79Dczn/UmRp0Z+gptWzYTc4ChtgPLM6Ih22+s0U70FcmYD9BrGS krpzcKwXzt+TqQAooLuH/9+0A0+udMgaBfnrBp9HGmVdswllssCS8RInq2ryrEg2 CTc1ePmf2h40sVkZMiCVNE221k6HD/RsSg7lgNeRSessEr26bjtbQkrLErEAoEul Qlp2nbanocMjWKm5XK1cH3ai8HKdzwXp32tKnRS585YpwfXOmVkJhB1uGQ71i1Xb 5T/3SQh+5NuFIempRrt/iXHjJn4RWhnvE7rskLlp/pCnrp8UxnCZP1JEiO0caKQ/ CFIRtFGOvckeZLiwwxcJ/Edguq9y1A4SKM6Lv2d+wofpaK5yAnTIRnZBeH5JBTL2 y6eSFE4BBaxbaIn6LsZMB6FFYAGq1naGua+4z6M5BVtBBjCHh58w0cd3CZLL8cPZ Na7luGdIVzenoUtJOpQ6eN/UKFfUjK9rvwhloTTiDCMXtZejBDE= =sPba -----END PGP SIGNATURE-----
pgp7_rFT5sCRQ.pgp
Description: PGP signature
--- End Message ---