OpenSTLinux build on Ubuntu 26.04 LTS fails in pseudo-native (openat2 conflicting types)
Hello,
I am evaluating whether Ubuntu 26.04 LTS can be used as a host development environment for OpenSTLinux on STM32MP25.
My environment is:
Ubuntu 26.04.1 LTS (glibc 2.43)
STM32MP25 OpenSTLinux Distribution Package(stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10)
BitBake 2.8.1
Initially, BitBake failed with:
ERROR: User namespaces are not usable by BitBake, possibly due to AppArmor.
This was resolved by disabling:
kernel.apparmor_restrict_unprivileged_userns
After that,
$ bitbake -p
completed successfully and all recipes were parsed without errors.
However, when running:
$ bitbake virtual/kernel
the build fails during pseudo-native compilation with the following error:
error: conflicting types for 'openat2'
The log shows:
WARNING: Your host glibc version (2.43) is newer than that in uninative (2.42).
Disabling uninative so that sstate is not corrupted.
and later:
ERROR: pseudo-native-1.9.3+git-r0 do_compile
followed by the openat2 prototype conflict.
My questions are:
- Is Ubuntu 26.04 officially supported as a host OS for the current STM32MP25 OpenSTLinux release?
- Has anyone successfully built OpenSTLinux on Ubuntu 26.04?
- Is there a recommended workaround or patch for the pseudo-native / openat2 build failure?
- Is Ubuntu 24.04 currently the recommended host platform instead?
Any guidance would be appreciated.
Best Regards
--
okn
