Build error with pseudo in meta-nxp-desktop layer on IMX8MP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build error with pseudo in meta-nxp-desktop layer on IMX8MP

Jump to solution
966 Views
harisislam
Contributor II

I'm experiencing compilation errors when building imx-image-desktop using the meta-nxp-desktop layer. The build consistently fails when compiling pseudo-native with the following error:

ports/unix/guts/unlinkat.c: In function 'wrap_unlinkat':
pseudo_client.h:14:65: error: '_STAT_VER' undeclared (first use in this function)
14 | #define base_fstatat(dirfd, path, buf, flags) real___fxstatat64(_STAT_VER, dirfd, path, buf, flags)
| ^~~~~~~~~

Additionally, there are multiple functions in ports/linux/pseudo_wrappers.c that lack return statements:

ports/linux/pseudo_wrappers.c: In function 'pseudo_stat':
ports/linux/pseudo_wrappers.c:12:1: warning: control reaches end of non-void function [-Wreturn-type]
12 | }
| ^

These errors appear to be related to libc compatibility issues. The pseudo recipe in meta-nxp-desktop currently has COMPATIBLE_HOST:libc-musl = 'null' which suggests it's not compatible with musl libc, but the errors occur even on a glibc system.

I've tried several approaches:

  1. Adding -D_STAT_VER=1 -D_MKNOD_VER=1 to CFLAGS
  2. Creating patches to define these constants in the appropriate files
  3. Disabling -Werror flags
  4. Setting INHERIT_remove = "pseudo" in local.conf

None of these approaches have resolved the issue completely.

Has anyone encountered similar issues with the meta-nxp-desktop layer? Is there a known workaround or fix for this pseudo compilation error?

System information:

  • Host OS: Ubuntu 22.04
  • Yocto version: Langdale (4.1)
  • meta-nxp-desktop commit/version: imx-6.1.1-1.0.0_desktop.xml

 

Labels (1)
0 Kudos
Reply
1 Solution
937 Views
Harvey021
NXP TechSupport
NXP TechSupport

The support for imx-image-desktop was stopped, instead of that, please use Debian and have a reference to NXPDEBIAN 

 

Regards

Harvey

View solution in original post

0 Kudos
Reply
1 Reply
938 Views
Harvey021
NXP TechSupport
NXP TechSupport

The support for imx-image-desktop was stopped, instead of that, please use Debian and have a reference to NXPDEBIAN 

 

Regards

Harvey

0 Kudos
Reply