sysprof fails to configure on >=2025.02.7
Check-list
- I did not find the issue in the existing issues
- I can reproduce the issue with unmodified Buildroot from this repository, not from a fork somewhere else
-
I can reproduce the issue on the latest commit of the branch I'm using:
- master
- stable (i.e. 20NN.MM.x - please specify)
- LTS (i.e. 2025.02.9 - please specify)
-
I can reproduce the issue after running
make clean; make -
I attached the full build log file (e.g.
make 2>&1 |tee build.log) -
I attached a minimal defconfig file that can reproduce the issue (
make BR2_DEFCONFIG=$(pwd)/issue_defconfig savedefconfig) -
I also attached the configuration for kconfig-based packages that are enabled (and necessary to reproduce the issue), most notably:
- busybox
- linux
- uclibc
- uboot
- …
What I did
- Buildroot commit sha1: 2025.02.9
- Distribution of the build machine:
NAME="Ubuntu"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
Here, describe what you did:
I had previously tried building with make clean followed by make on 2025.02.7 and then again with 2025.02.9. Everything builds properly until the sysprof package is reached. I can resolve this problem by removing the debuginfod option from sysprof.mk line 15 which essentially reverts 26fd8eb2. I didn't use any special environment variables.
I can reproduce by running:
$ make sysprof
What happens
Building sysprof fails during the configure step with the following output:
sysprof-47.2.tar.xz: OK (sha256: e4b5ede9fd978ec3f0d5a0d44d0429a6d201c362bf6cb4527319031ae462c54f)
>>> sysprof 47.2 Extracting
xzcat /home/builder/workspace/build/dl/sysprof/sysprof-47.2.tar.xz | /home/builder/workspace/output/board/host/bin/tar --strip-components=1 -C /home/builder/workspace/output/board/build/sysprof-47.2 -xf -
>>> sysprof 47.2 Patching
>>> sysprof 47.2 Configuring
rm -rf /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build
mkdir -p /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build
sed -e "/^\[binaries\]$/s:$::" -e "/^\[properties\]$/s:$::" -e "s%@TARGET_CC@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-gcc%g" -e "s%@TARGET_CXX@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-g++%g" -e "s%@TARGET_AR@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-gcc-ar%g" -e "s%@TARGET_FC@%/bin/false%g" -e "s%@TARGET_STRIP@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-strip%g" -e "s%@TARGET_ARCH@%x86_64%g" -e "s%@TARGET_CPU@%%g" -e "s%@TARGET_ENDIAN@%little%g" -e "s%@TARGET_FCFLAGS@%%g" -e "s%@TARGET_CFLAGS@%'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-O2', '-g0', '-D_FORTIFY_SOURCE=1'%g" -e "s%@TARGET_LDFLAGS@%%g" -e "s%@TARGET_CXXFLAGS@%'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-O2', '-g0', '-D_FORTIFY_SOURCE=1'%g" -e "s%@BR2_CMAKE@%/home/builder/workspace/output/board/host/bin/cmake%g" -e "s%@PKGCONF_HOST_BINARY@%/home/builder/workspace/output/board/host/bin/pkgconf%g" -e "s%@HOST_DIR@%/home/builder/workspace/output/board/host%g" -e "s%@STAGING_DIR@%/home/builder/workspace/output/board/host/x86_64-buildroot-linux-gnu/sysroot%g" -e "s%@STATIC@%false%g" /home/builder/workspace/buildroot/support/misc/cross-compilation.conf.in > /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build/cross-compilation.conf
PATH="/home/builder/workspace/output/board/host/bin:/home/builder/workspace/output/board/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" CC_FOR_BUILD="/home/builder/workspace/output/board/host/bin/ccache /usr/bin/gcc" CXX_FOR_BUILD="/home/builder/workspace/output/board/host/bin/ccache /usr/bin/g++" PYTHONNOUSERSITE=y /home/builder/workspace/output/board/host/bin/meson setup --prefix=/usr --libdir=lib --default-library=shared --buildtype=release --cross-file=/home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build/cross-compilation.conf -Db_pie=false -Db_staticpic=true -Dstrip=false -Dbuild.pkg_config_path=/home/builder/workspace/output/board/host/lib/pkgconfig -Dbuild.cmake_prefix_path=/home/builder/workspace/output/board/host/lib/cmake -Ddebuginfod=disabled -Ddevelopment=false -Dexamples=false -Dgtk=false -Dhelp=false -Dinstall-static=false -Dlibsysprof=true -Dtests=false -Dtools=true -Dsystemdunitdir=/usr/lib/systemd/system /home/builder/workspace/output/board/build/sysprof-47.2/ /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build
The Meson build system
Version: 1.7.0
Source dir: /home/builder/workspace/output/board/build/sysprof-47.2
Build dir: /home/builder/workspace/output/board/build/sysprof-47.2/buildroot-build
Build type: cross build
../output/board/build/sysprof-47.2/meson.build:1:0: ERROR: Unknown options: "debuginfod"
A full log can be found at /home/builder/workspace/output/board/build/sysprof-47.2/buildroot-build/meson-logs/meson-log.txt
make[1]: *** [package/pkg-generic.mk:263: /home/builder/workspace/output/board/build/sysprof-47.2/.stamp_configured] Error 1
make: *** [Makefile:23: _all] Error 2
The full log contents are below:
Build started at 2025-12-13T07:46:49.180128
Main binary: /home/builder/workspace/output/board/host/bin/python3
Build Options: -Db_pie=false -Db_staticpic=true -Dstrip=false -Dbuild.pkg_config_path=/home/builder/workspace/output/board/host/lib/pkgconfig -Dbuild.cmake_prefix_path=/home/builder/workspace/output/board/host/lib/cmake -Ddebuginfod=disabled -Ddevelopment=false -Dexamples=false -Dgtk=false -Dhelp=false -Dinstall-static=false -Dlibsysprof=true -Dtests=false -Dtools=true -Dsystemdunitdir=/usr/lib/systemd/system -Dprefix=/usr -Dlibdir=lib -Dbuildtype=release -Ddefault_library=shared --cross-file=/home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build/cross-compilation.conf
Python system: Linux
The Meson build system
Version: 1.7.0
Source dir: /home/builder/workspace/output/board/build/sysprof-47.2
Build dir: /home/builder/workspace/output/board/build/sysprof-47.2/buildroot-build
Build type: cross build
../output/board/build/sysprof-47.2/meson.build:1:0: ERROR: Unknown options: "debuginfod"
What was expected
It is expected that the sysprof package successfully builds.
Below is a successful configure step with the build argument removed:
rm -rf /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build
mkdir -p /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build
sed -e "/^\[binaries\]$/s:$::" -e "/^\[properties\]$/s:$::" -e "s%@TARGET_CC@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-gcc%g" -e "s%@TARGET_CXX@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-g++%g" -e "s%@TARGET_AR@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-gcc-ar%g" -e "s%@TARGET_FC@%/bin/false%g" -e "s%@TARGET_STRIP@%/home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-strip%g" -e "s%@TARGET_ARCH@%x86_64%g" -e "s%@TARGET_CPU@%%g" -e "s%@TARGET_ENDIAN@%little%g" -e "s%@TARGET_FCFLAGS@%%g" -e "s%@TARGET_CFLAGS@%'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-O2', '-g0', '-D_FORTIFY_SOURCE=1'%g" -e "s%@TARGET_LDFLAGS@%%g" -e "s%@TARGET_CXXFLAGS@%'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-O2', '-g0', '-D_FORTIFY_SOURCE=1'%g" -e "s%@BR2_CMAKE@%/home/builder/workspace/output/board/host/bin/cmake%g" -e "s%@PKGCONF_HOST_BINARY@%/home/builder/workspace/output/board/host/bin/pkgconf%g" -e "s%@HOST_DIR@%/home/builder/workspace/output/board/host%g" -e "s%@STAGING_DIR@%/home/builder/workspace/output/board/host/x86_64-buildroot-linux-gnu/sysroot%g" -e "s%@STATIC@%false%g" /home/builder/workspace/buildroot/support/misc/cross-compilation.conf.in > /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build/cross-compilation.conf
PATH="/home/builder/workspace/output/board/host/bin:/home/builder/workspace/output/board/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" CC_FOR_BUILD="/home/builder/workspace/output/board/host/bin/ccache /usr/bin/gcc" CXX_FOR_BUILD="/home/builder/workspace/output/board/host/bin/ccache /usr/bin/g++" PYTHONNOUSERSITE=y /home/builder/workspace/output/board/host/bin/meson setup --prefix=/usr --libdir=lib --default-library=shared --buildtype=release --cross-file=/home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build/cross-compilation.conf -Db_pie=false -Db_staticpic=true -Dstrip=false -Dbuild.pkg_config_path=/home/builder/workspace/output/board/host/lib/pkgconfig -Dbuild.cmake_prefix_path=/home/builder/workspace/output/board/host/lib/cmake -Ddevelopment=false -Dexamples=false -Dgtk=false -Dhelp=false -Dinstall-static=false -Dlibsysprof=true -Dtests=false -Dtools=true -Dsystemdunitdir=/usr/lib/systemd/system /home/builder/workspace/output/board/build/sysprof-47.2/ /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build
The Meson build system
Version: 1.7.0
Source dir: /home/builder/workspace/output/board/build/sysprof-47.2
Build dir: /home/builder/workspace/output/board/build/sysprof-47.2/buildroot-build
Build type: cross build
Project name: sysprof
Project version: 47.2
C compiler for the host machine: /home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-gcc (gcc 13.4.0 "x86_64-buildroot-linux-gnu-gcc.br_real (Buildroot 2025.02.9) 13.4.0")
C linker for the host machine: /home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-gcc ld.bfd 2.43.1
C++ compiler for the host machine: /home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-g++ (gcc 13.4.0 "x86_64-buildroot-linux-gnu-g++.br_real (Buildroot 2025.02.9) 13.4.0")
C++ linker for the host machine: /home/builder/workspace/output/board/host/bin/x86_64-buildroot-linux-gnu-g++ ld.bfd 2.43.1
C compiler for the build machine: /home/builder/workspace/output/board/host/bin/ccache /usr/bin/gcc (gcc 11.4.0 "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the build machine: /home/builder/workspace/output/board/host/bin/ccache /usr/bin/gcc ld.bfd 2.38
C++ compiler for the build machine: /home/builder/workspace/output/board/host/bin/ccache /usr/bin/g++ (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the build machine: /home/builder/workspace/output/board/host/bin/ccache /usr/bin/g++ ld.bfd 2.38
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu:
Target machine cpu family: x86_64
Target machine cpu:
Found pkg-config: YES (/home/builder/workspace/output/board/host/bin/pkgconf) 2.3.0
Run-time dependency glib-2.0 found: YES 2.82.5
Run-time dependency gio-2.0 found: YES 2.82.5
Run-time dependency gio-unix-2.0 found: YES 2.82.5
Found CMake: /home/builder/workspace/output/board/host/bin/cmake (3.31.8)
Run-time dependency gtk4 found: NO (tried pkgconfig and cmake)
Run-time dependency libsystemd found: YES 256
Compiler for C supports arguments -fvisibility=hidden: YES
Checking for function "reallocarray" : YES
Checking for function "strlcpy" : YES
Run-time dependency polkit-agent-1 found: YES 125
Run-time dependency polkit-gobject-1 found: YES 125
Run-time dependency libunwind-generic found: YES 1.8.1
Header "libunwind.h" has symbol "unw_set_cache_size" with dependency libunwind-generic: YES
Checking whether type "struct perf_event_attr" has member "use_clockid" : YES
Checking whether type "struct perf_event_attr" has member "clockid" : YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-sign-compare: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-cast-function-type: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wswitch-default: YES
Compiler for C supports arguments -Wswitch-enum: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Werror=format-security -Werror=format=2: YES
Compiler for C supports arguments -Werror=empty-body: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=pointer-arith: YES
Compiler for C supports arguments -Werror=init-self: YES
Compiler for C supports arguments -Werror=int-conversion: YES
Compiler for C supports arguments -Werror=misleading-indentation: YES
Compiler for C supports arguments -Werror=missing-include-dirs: YES
Compiler for C supports arguments -Werror=overflow: YES
Compiler for C supports arguments -Werror=parenthesis: NO
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=shadow: YES
Compiler for C supports arguments -Werror=strict-prototypes: YES
Compiler for C supports arguments -Werror=undef: YES
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,-z,now: YES
Compiler for C supports link arguments -fstack-protector-strong: YES
Compiler for C supports link arguments -Wl,-Bsymbolic: YES
Compiler for C supports link arguments -fno-plt: YES
Compiler for C supports link arguments -Wl,-z,relro: YES (cached)
Compiler for C supports link arguments -Wl,-z,defs: YES
Compiler for C supports link arguments -Wl,-z,now: YES (cached)
Dependency glib-2.0 found: YES 2.82.5 (cached)
Configuring sysprof-version.h using configuration
Run-time dependency threads found: YES
Found pkg-config: YES (/home/builder/workspace/output/board/host/bin/pkg-config) 2.3.0
Build-time dependency glib-2.0 found: YES 2.82.5
Program /home/builder/workspace/output/board/host/bin/glib-mkenums found: YES (/home/builder/workspace/output/board/host/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.82.5 (cached)
Program /home/builder/workspace/output/board/host/bin/glib-mkenums found: YES (/home/builder/workspace/output/board/host/bin/glib-mkenums)
Build-time dependency gio-2.0 found: YES 2.82.5
Program /home/builder/workspace/output/board/host/bin/glib-compile-resources found: YES (/home/builder/workspace/output/board/host/bin/glib-compile-resources)
Run-time dependency libdex-1 found: YES 0.8.1
Run-time dependency json-glib-1.0 found: YES 1.10.6
Run-time dependency dl found: YES
Dependency glib-2.0 found: YES 2.82.5 (cached)
Dependency gio-2.0 found: YES 2.82.5 (cached)
Program /home/builder/workspace/output/board/host/bin/gdbus-codegen found: YES (/home/builder/workspace/output/board/host/bin/gdbus-codegen)
Dependency gio-2.0 found: YES 2.82.5 (cached)
Program /home/builder/workspace/output/board/host/bin/gdbus-codegen found: YES (/home/builder/workspace/output/board/host/bin/gdbus-codegen)
Configuring org.gnome.Sysprof3.service using configuration
Configuring org.gnome.Sysprof3.conf using configuration
Configuring sysprof3.service using configuration
Program msgfmt found: YES (/home/builder/workspace/output/board/host/bin/msgfmt)
Dependency gio-2.0 found: YES 2.82.5 (cached)
Program /home/builder/workspace/output/board/host/bin/gdbus-codegen found: YES (/home/builder/workspace/output/board/host/bin/gdbus-codegen)
Program msginit found: NO
../output/board/build/sysprof-47.2/po/meson.build:2: WARNING: 'msginit' not found, maintainer targets will not work
Program msgmerge found: YES (/home/builder/workspace/output/board/host/bin/msgmerge)
Program xgettext found: YES (/home/builder/workspace/output/board/host/bin/xgettext)
Configuring config.h using configuration
Build targets in project: 109
sysprof 47.2
User defined options
Cross files : /home/builder/workspace/output/board/build/sysprof-47.2//buildroot-build/cross-compilation.conf
build.cmake_prefix_path: /home/builder/workspace/output/board/host/lib/cmake
build.pkg_config_path : /home/builder/workspace/output/board/host/lib/pkgconfig
b_pie : false
b_staticpic : true
buildtype : release
default_library : shared
development : false
examples : false
gtk : false
help : false
install-static : false
libdir : lib
libsysprof : true
prefix : /usr
strip : false
systemdunitdir : /usr/lib/systemd/system
tests : false
tools : true
Found ninja-1.11.1.git.kitware.jobserver-1 at /home/builder/workspace/output/board/host/bin/ninja
Extra information
The error of concern looks to be:
../output/test/build/sysprof-47.2/meson.build:1:0: ERROR: Unknown options: "debuginfod"
It appears that this new option was merged in 26fd8eb2 just prior to 2025.02.7.
The sysprof package doesn't appear to support debuginfod until commit e70a5b0 which was merged into 49.0. The build flag is used on a version which does not yet support it.