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
1,445 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
1,416 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
1,417 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2069970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBuild%20error%20with%20pseudo%20in%20meta-nxp-desktop%20layer%20on%20IMX8MP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2069970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3EI'm%20experiencing%20compilation%20errors%20when%20building%20imx-image-desktop%20using%20the%20meta-nxp-desktop%20layer.%20The%20build%20consistently%20fails%20when%20compiling%20pseudo-native%20with%20the%20following%20error%3A%3C%2FP%3E%3CPRE%3Eports%2Funix%2Fguts%2Funlinkat.c%3A%20In%20function%20'wrap_unlinkat'%3A%3CBR%20%2F%3Epseudo_client.h%3A14%3A65%3A%20error%3A%20'_STAT_VER'%20undeclared%20(first%20use%20in%20this%20function)%3CBR%20%2F%3E14%20%7C%20%23define%20base_fstatat(dirfd%2C%20path%2C%20buf%2C%20flags)%20real___fxstatat64(_STAT_VER%2C%20dirfd%2C%20path%2C%20buf%2C%20flags)%3CBR%20%2F%3E%7C%20%5E~~~~~~~~%3C%2FPRE%3E%3CP%20class%3D%22%22%3EAdditionally%2C%20there%20are%20multiple%20functions%20in%20ports%2Flinux%2Fpseudo_wrappers.c%20that%20lack%20return%20statements%3A%3C%2FP%3E%3CPRE%3Eports%2Flinux%2Fpseudo_wrappers.c%3A%20In%20function%20'pseudo_stat'%3A%3CBR%20%2F%3Eports%2Flinux%2Fpseudo_wrappers.c%3A12%3A1%3A%20warning%3A%20control%20reaches%20end%20of%20non-void%20function%20%5B-Wreturn-type%5D%3CBR%20%2F%3E12%20%7C%20%7D%3CBR%20%2F%3E%7C%20%5E%3C%2FPRE%3E%3CP%20class%3D%22%22%3EThese%20errors%20appear%20to%20be%20related%20to%20libc%20compatibility%20issues.%20The%20pseudo%20recipe%20in%20meta-nxp-desktop%20currently%20has%20COMPATIBLE_HOST%3Alibc-musl%20%3D%20'null'%20which%20suggests%20it's%20not%20compatible%20with%20musl%20libc%2C%20but%20the%20errors%20occur%20even%20on%20a%20glibc%20system.%3C%2FP%3E%3CP%20class%3D%22%22%3EI've%20tried%20several%20approaches%3A%3C%2FP%3E%3COL%3E%3CLI%3EAdding%20-D_STAT_VER%3D1%20-D_MKNOD_VER%3D1%20to%20CFLAGS%3C%2FLI%3E%3CLI%3ECreating%20patches%20to%20define%20these%20constants%20in%20the%20appropriate%20files%3C%2FLI%3E%3CLI%3EDisabling%20-Werror%20flags%3C%2FLI%3E%3CLI%3ESetting%20INHERIT_remove%20%3D%20%22pseudo%22%20in%20local.conf%3C%2FLI%3E%3C%2FOL%3E%3CP%20class%3D%22%22%3ENone%20of%20these%20approaches%20have%20resolved%20the%20issue%20completely.%3C%2FP%3E%3CP%20class%3D%22%22%3EHas%20anyone%20encountered%20similar%20issues%20with%20the%20meta-nxp-desktop%20layer%3F%20Is%20there%20a%20known%20workaround%20or%20fix%20for%20this%20pseudo%20compilation%20error%3F%3C%2FP%3E%3CP%20class%3D%22%22%3ESystem%20information%3A%3C%2FP%3E%3CUL%3E%3CLI%3EHost%20OS%3A%20Ubuntu%2022.04%3C%2FLI%3E%3CLI%3EYocto%20version%3A%20Langdale%20(4.1)%3C%2FLI%3E%3CLI%3Emeta-nxp-desktop%20commit%2Fversion%3A%20imx-6.1.1-1.0.0_desktop.xml%3C%2FLI%3E%3C%2FUL%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2069970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2070712%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Build%20error%20with%20pseudo%20in%20meta-nxp-desktop%20layer%20on%20IMX8MP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2070712%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20support%20for%26nbsp%3B%3CSPAN%3Eimx-image-desktop%3C%2FSPAN%3E%20was%20stopped%2C%20instead%20of%20that%2C%20please%20use%20Debian%20and%20have%20a%20reference%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fembedded-software%2Flinux-software-and-development-tools%2Fnxp-debian-linux-sdk-distribution-for-i-mx-and-layerscape%3ANXPDEBIAN%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENXPDEBIAN%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EHarvey%3C%2FP%3E%3C%2FLINGO-BODY%3E