Skip to contentSkip to conversation

Forbidden host packages?

DISCUSSION Danter, Richard 3 participants 4 messages Apr 29, 2024 – Apr 30, 2024

lore
Share & tools
lore
#0 lore raw

Hi all,

I know there are host packages which are required in order to build Yocto, but are there any that are forbidden?

For example, I have encountered a build issue on a RHEL host, but only if the daxctl-devel package is installed on that host. Without it, the build works fine.

The failure is in building qemu, see below.

Thanks
Rich

| [2494/5512] Compiling C object libqemu-arm- softmmu.fa.p/softmmu_physmem.c.o
| FAILED: libqemu-arm-softmmu.fa.p/softmmu_physmem.c.o
| gcc -m64 -mcx16 -Ilibqemu-arm-softmmu.fa.p -I. -I../qemu-7.2.0 - Itarget/arm -I../qemu-7.2.0/target/arm -Iqapi -Itrace -Iui -Iui/shader -I/work/daxctl-issue-withhostlib/build/tmp-glibc/work/x86_64- linux/qemu-system-native/7.2.0-r0/recipe-sysroot- native/usr/lib/pkgconfig/../../../usr/include -I/work/daxctl-issue- withhostlib/build/tmp-glibc/work/x86_64-linux/qemu-system-native/7.2.0- r0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/pixman- 1 -I/work/daxctl-issue-withhostlib/build/tmp-glibc/work/x86_64- linux/qemu-system-native/7.2.0-r0/recipe-sysroot- native/usr/lib/pkgconfig/../../../usr/include/glib-2.0 -I/work/daxctl- issue-withhostlib/build/tmp-glibc/work/x86_64-linux/qemu-system- native/7.2.0-r0/recipe-sysroot- native/usr/lib/pkgconfig/../../../usr/lib/glib-2.0/include - fdiagnostics-color=auto -Wall -Winvalid-pch -std=gnu11 -O2 -g -isystem /work/daxctl-issue-withhostlib/build/tmp-glibc/work/x86_64-linux/qemu- system-native/7.2.0-r0/qemu-7.2.0/linux-headers -isystem linux-headers -iquote . -iquote /work/daxctl-issue-withhostlib/build/tmp- glibc/work/x86_64-linux/qemu-system-native/7.2.0-r0/qemu-7.2.0 -iquote /work/daxctl-issue-withhostlib/build/tmp-glibc/work/x86_64-linux/qemu- system-native/7.2.0-r0/qemu-7.2.0/include -iquote /work/daxctl-issue- withhostlib/build/tmp-glibc/work/x86_64-linux/qemu-system-native/7.2.0- r0/qemu-7.2.0/tcg/i386 -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 - D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict- prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing- prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style- declaration -Wold-style-definition -Wtype-limits -Wformat-security - Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested- externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack- protector-strong -O2 -pipe -isystem/work/daxctl-issue- withhostlib/build/tmp-glibc/work/x86_64-linux/qemu-system-native/7.2.0- r0/recipe-sysroot-native/usr/include -O2 -fPIE -isystem../qemu- 7.2.0/linux-headers -isystemlinux-headers -DNEED_CPU_H '- DCONFIG_TARGET="arm-softmmu-config-target.h"' '-DCONFIG_DEVICES="arm- softmmu-config-devices.h"' -MD -MQ libqemu-arm- softmmu.fa.p/softmmu_physmem.c.o -MF libqemu-arm- softmmu.fa.p/softmmu_physmem.c.o.d -o libqemu-arm- softmmu.fa.p/softmmu_physmem.c.o -c ../qemu-7.2.0/softmmu/physmem.c | ../qemu-7.2.0/softmmu/physmem.c:79:10: fatal error:
daxctl/libdaxctl.h: No such file or directory

|    79 | #include <daxctl/libdaxctl.h>
|       |          ^~~~~~~~~~~~~~~~~~~~
| compilation terminated.
#1 lore raw
Quoted 10 lines · Richard via lists.yoctoproject.org

I know there are host packages which are required in order to build Yocto, but are there any that are forbidden?

For example, I have encountered a build issue on a RHEL host, but only
if the daxctl-devel package is installed on that host. Without it, the
build works fine.

The failure is in building qemu, see below.

qemu-system-native is a little special in that it needs to interface to the host graphics so it has wider search paths than most packages.

We try to explicitly disable dependencies we don't use so this sounds like some configuration for this one is missing.

Cheers,

Richard

#2 lore raw
Quoted 15 lines · Richard Purdie

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 9 lines · Richard via lists.yoctoproject.org

I know there are host packages which are required in order to build Yocto, but are there any that are forbidden?

For example, I have encountered a build issue on a RHEL host, but only
if the daxctl-devel package is installed on that host. Without it, the
build works fine.

Quoted 8 lines
Quoted 1 line

The failure is in building qemu, see below.

qemu-system-native is a little special in that it needs to interface to
the host graphics so it has wider search paths than most packages.

We try to explicitly disable dependencies we don't use so this sounds like some configuration for this one is missing.

Thanks, we will investigate further.

Rich

Quoted 4 lines

Cheers,

Richard

#3 lore raw
Quoted 19 lines · Richard via lists.yoctoproject.org
Quoted 17 lines · Richard Purdie

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 10 lines · Richard via lists.yoctoproject.org

I know there are host packages which are required in order to build Yocto, but are there any that are forbidden?

For example, I have encountered a build issue on a RHEL host, but only
if the daxctl-devel package is installed on that host. Without it, the
build works fine.

The failure is in building qemu, see below.

Quoted 8 lines
Quoted 6 lines

qemu-system-native is a little special in that it needs to interface to
the host graphics so it has wider search paths than most packages.

We try to explicitly disable dependencies we don't use so this sounds like some configuration for this one is missing.

Thanks, we will investigate further.

This is usually solved trivially by adding another PACKAGECONFIG to the qemu recipe, and not enabling it (so it gets disabled explicitly), for example:

https://git.yoctoproject.org/poky/commit/meta/recipes-devtools/qemu/qemu.inc?id=9a02fb66c23b40911b5b431b348a2e7f8a2fedfc

Ross