| Message ID | 20250410091111.82723-1-haixiao.yan.cn@eng.windriver.com |
|---|---|
| State | Accepted |
| Headers | show |
| Series | [meta-oe] lmsensors: Clean stale files for sensord to avoid incorrect GCC header dependencies | expand |
Hi,
the build of lmsensors fails this patch applied and PACKAGECONFIG = "".
I've attached the do_install log with the error.
The problem occurs on master and scarthgap.
A possible solution is:
do_install() {
- oe_runmake user_install DESTDIR=${D}
+ oe_runmake user_install DESTDIR=${D} PROG_EXTRA="sensors
${PACKAGECONFIG_CONFARGS}"
Leonard
Am Donnerstag, dem 10.04.2025 um 17:11 +0800 schrieb Yan, Haixiao (CN)
via lists.openembedded.org:
> From: Haixiao Yan <haixiao.yan.cn@windriver.com>
>
> After upgrading GCC—for example, from 14.1.0 to 14.2.0—building
> lmsensors that
> was previously compiled with GCC 14.1.0 may fail with an error like:
> lmsensors/3.6.0/recipe-sysroot-native/usr/lib/x86_64-wrs-
> linux/gcc/x86_64-wrs-linux/
> 14.1.0/include/stddef.h can't find, which is needed by
> 'prog/sensord/args.rd'.
>
> This occurs because prog/sensord/args.rd still references stale
> headers from the
> older GCC version.
> The root cause is that stale *.rd and *.ro files under prog/sensord
> are not
> properly cleaned during do_configure. This patch ensures those files
> are removed
> to prevent broken dependencies when GCC is upgraded.
> Also remove the same statement in do_compile.
>
> Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
> ---
> meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
> b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
> index 07027225c58b..9b072d70b20e 100644
> --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
> +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
> @@ -51,8 +51,11 @@ EXTRA_OEMAKE = 'EXLDFLAGS="${LDFLAGS}" \
> LIBDIR=${libdir} \
> CC="${CC}" AR="${AR}"'
>
> +do_configure:prepend() {
> + sed -i -e 's:^#\(PROG_EXTRA\):\1:' ${S}/Makefile
> +}
> +
> do_compile() {
> - sed -i -e 's:^# \(PROG_EXTRA\):\1:' ${S}/Makefile
> # Respect LDFLAGS
> sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' ${S}/Makefile
> sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g'
> \
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116765):
> https://lists.openembedded.org/g/openembedded-devel/message/116765
> Mute This Topic: https://lists.openembedded.org/mt/112188003/7270266
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-devel/unsub [
> L.Anderweit@phytec.de]
> -=-=-=-=-=-=-=-=-=-=-=-
>
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-core/glibc/glibc_2.39.bb:do_populate_sysroot', '/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-core/initscripts/initscripts_1.0.bb:do_populate_sysroot', '/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_sysroot', '/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', '/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/gcc/gcc-cross_13.3.bb:do_populate_sysroot', '/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/gcc/gcc-runtime_13.3.bb:do_populate_sysroot', '/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/bison/bison_3.8.2.bb:do_populate_sysroot', 'virtual:native:/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/flex/flex_2.6.4.bb:do_populate_sysroot', 'virtual:native:/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/anderweit/imx8mp-nxp-scarthgap/sources/poky/../poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'glibc', 'initscripts', 'systemd-systemctl-native', 'update-rc.d', 'binutils-cross-aarch64', 'gcc-cross-aarch64', 'gcc-runtime', 'libgcc', 'libtool-native', 'm4-native', 'quilt-native', 'texinfo-dummy-native', 'linux-libc-headers', 'zlib-native', 'bison-native', 'flex-native', 'gnu-config-native', 'patch-native', 'pseudo-native', 'xz-native', 'zstd-native', 'attr-native', 'gmp-native', 'libmpc-native', 'mpfr-native', 'sqlite3-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
NOTE: make -j 48 EXLDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= -Wl,-z,relro,-z,now MACHINE=aarch64 PREFIX=/usr MANDIR=/usr/share/man LIBDIR=/usr/lib CC=aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot AR=aarch64-phytec-linux-gcc-ar user_install DESTDIR=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/image
aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot -M -MG -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= prog/sensord/args.c | \
sed -e 's@^\(.*\)\.o:@prog/sensord/args.rd prog/sensord/args.ro: Makefile '`dirname prog/sensord/args.rd`/Module.mk' @' > prog/sensord/args.rd
aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot -M -MG -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= prog/sensord/chips.c | \
sed -e 's@^\(.*\)\.o:@prog/sensord/chips.rd prog/sensord/chips.ro: Makefile '`dirname prog/sensord/chips.rd`/Module.mk' @' > prog/sensord/chips.rd
aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot -M -MG -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= prog/sensord/lib.c | \
sed -e 's@^\(.*\)\.o:@prog/sensord/lib.rd prog/sensord/lib.ro: Makefile '`dirname prog/sensord/lib.rd`/Module.mk' @' > prog/sensord/lib.rd
aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot -M -MG -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= prog/sensord/rrd.c | \
sed -e 's@^\(.*\)\.o:@prog/sensord/rrd.rd prog/sensord/rrd.ro: Makefile '`dirname prog/sensord/rrd.rd`/Module.mk' @' > prog/sensord/rrd.rd
aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot -M -MG -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= prog/sensord/sense.c | \
sed -e 's@^\(.*\)\.o:@prog/sensord/sense.rd prog/sensord/sense.ro: Makefile '`dirname prog/sensord/sense.rd`/Module.mk' @' > prog/sensord/sense.rd
aarch64-phytec-linux-gcc -mcpu=cortex-a53+crc+crypto -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot -M -MG -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/git=/usr/src/debug/lmsensors/3.6.0 -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fmacro-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot= -fdebug-prefix-map=/home/anderweit/imx8mp-nxp-scarthgap/build/tmp-ampliphy-vendor/work/cortexa53-crypto-phytec-linux/lmsensors/3.6.0/recipe-sysroot-native= prog/sensord/sensord.c | \
sed -e 's@^\(.*\)\.o:@prog/sensord/sensord.rd prog/sensord/sensord.ro: Makefile '`dirname prog/sensord/sensord.rd`/Module.mk' @' > prog/sensord/sensord.rd
make: *** No rule to make target 'rrd.h', needed by 'prog/sensord/rrd.rd'. Stop.
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
On Wed, Apr 23, 2025 at 5:45 AM Leonard Anderweit via lists.openembedded.org <L.Anderweit=phytec.de@lists.openembedded.org> wrote: > > Hi, > > the build of lmsensors fails this patch applied and PACKAGECONFIG = "". > I've attached the do_install log with the error. > The problem occurs on master and scarthgap. > > A possible solution is: > > do_install() { > - oe_runmake user_install DESTDIR=${D} > + oe_runmake user_install DESTDIR=${D} PROG_EXTRA="sensors > ${PACKAGECONFIG_CONFARGS}" > since we are doing same cmd in do_compile as well perhaps it might be better to add it via EXTRA_OEMAKE so it can be then used in both places automatically > Leonard > > Am Donnerstag, dem 10.04.2025 um 17:11 +0800 schrieb Yan, Haixiao (CN) > via lists.openembedded.org: > > From: Haixiao Yan <haixiao.yan.cn@windriver.com> > > > > After upgrading GCC—for example, from 14.1.0 to 14.2.0—building > > lmsensors that > > was previously compiled with GCC 14.1.0 may fail with an error like: > > lmsensors/3.6.0/recipe-sysroot-native/usr/lib/x86_64-wrs- > > linux/gcc/x86_64-wrs-linux/ > > 14.1.0/include/stddef.h can't find, which is needed by > > 'prog/sensord/args.rd'. > > > > This occurs because prog/sensord/args.rd still references stale > > headers from the > > older GCC version. > > The root cause is that stale *.rd and *.ro files under prog/sensord > > are not > > properly cleaned during do_configure. This patch ensures those files > > are removed > > to prevent broken dependencies when GCC is upgraded. > > Also remove the same statement in do_compile. > > > > Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com> > > --- > > meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > index 07027225c58b..9b072d70b20e 100644 > > --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > @@ -51,8 +51,11 @@ EXTRA_OEMAKE = 'EXLDFLAGS="${LDFLAGS}" \ > > LIBDIR=${libdir} \ > > CC="${CC}" AR="${AR}"' > > > > +do_configure:prepend() { > > + sed -i -e 's:^#\(PROG_EXTRA\):\1:' ${S}/Makefile > > +} > > + > > do_compile() { > > - sed -i -e 's:^# \(PROG_EXTRA\):\1:' ${S}/Makefile > > # Respect LDFLAGS > > sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' ${S}/Makefile > > sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' > > \ > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#117077): https://lists.openembedded.org/g/openembedded-devel/message/117077 > Mute This Topic: https://lists.openembedded.org/mt/112188003/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
Am Mittwoch, dem 23.04.2025 um 08:50 -0700 schrieb Khem Raj: > On Wed, Apr 23, 2025 at 5:45 AM Leonard Anderweit via > lists.openembedded.org <L.Anderweit=phytec.de@lists.openembedded.org> > wrote: > > > > Hi, > > > > the build of lmsensors fails this patch applied and PACKAGECONFIG = > > "". > > I've attached the do_install log with the error. > > The problem occurs on master and scarthgap. > > > > A possible solution is: > > > > do_install() { > > - oe_runmake user_install DESTDIR=${D} > > + oe_runmake user_install DESTDIR=${D} PROG_EXTRA="sensors > > ${PACKAGECONFIG_CONFARGS}" > > > > since we are doing same cmd in do_compile as well perhaps it might be > better to add it via > EXTRA_OEMAKE so it can be then used in both places automatically I'll try that and send a patch. > > > Leonard > > > > Am Donnerstag, dem 10.04.2025 um 17:11 +0800 schrieb Yan, Haixiao > > (CN) > > via lists.openembedded.org: > > > From: Haixiao Yan <haixiao.yan.cn@windriver.com> > > > > > > After upgrading GCC—for example, from 14.1.0 to 14.2.0—building > > > lmsensors that > > > was previously compiled with GCC 14.1.0 may fail with an error > > > like: > > > lmsensors/3.6.0/recipe-sysroot-native/usr/lib/x86_64-wrs- > > > linux/gcc/x86_64-wrs-linux/ > > > 14.1.0/include/stddef.h can't find, which is needed by > > > 'prog/sensord/args.rd'. > > > > > > This occurs because prog/sensord/args.rd still references stale > > > headers from the > > > older GCC version. > > > The root cause is that stale *.rd and *.ro files under > > > prog/sensord > > > are not > > > properly cleaned during do_configure. This patch ensures those > > > files > > > are removed > > > to prevent broken dependencies when GCC is upgraded. > > > Also remove the same statement in do_compile. > > > > > > Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com> > > > --- > > > meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 5 ++++- > > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > > > diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > > b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > > index 07027225c58b..9b072d70b20e 100644 > > > --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > > +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb > > > @@ -51,8 +51,11 @@ EXTRA_OEMAKE = 'EXLDFLAGS="${LDFLAGS}" \ > > > LIBDIR=${libdir} \ > > > CC="${CC}" AR="${AR}"' > > > > > > +do_configure:prepend() { > > > + sed -i -e 's:^#\(PROG_EXTRA\):\1:' ${S}/Makefile > > > +} > > > + > > > do_compile() { > > > - sed -i -e 's:^# \(PROG_EXTRA\):\1:' ${S}/Makefile > > > # Respect LDFLAGS > > > sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' > > > ${S}/Makefile > > > sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) - > > > o/g' > > > \ > > > > > > > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > View/Reply Online (#117077): > > https://lists.openembedded.org/g/openembedded-devel/message/117077 > > Mute This Topic: > > https://lists.openembedded.org/mt/112188003/1997914 > > Group Owner: openembedded-devel+owner@lists.openembedded.org > > Unsubscribe: > > https://lists.openembedded.org/g/openembedded-devel/unsub [ > > raj.khem@gmail.com] > > -=-=-=-=-=-=-=-=-=-=-=- > >
diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb index 07027225c58b..9b072d70b20e 100644 --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb @@ -51,8 +51,11 @@ EXTRA_OEMAKE = 'EXLDFLAGS="${LDFLAGS}" \ LIBDIR=${libdir} \ CC="${CC}" AR="${AR}"' +do_configure:prepend() { + sed -i -e 's:^#\(PROG_EXTRA\):\1:' ${S}/Makefile +} + do_compile() { - sed -i -e 's:^# \(PROG_EXTRA\):\1:' ${S}/Makefile # Respect LDFLAGS sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' ${S}/Makefile sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \