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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
997件の閲覧回数
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

 

ラベル(1)
0 件の賞賛
返信
1 解決策
968件の閲覧回数
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 件の賞賛
返信
1 返信
969件の閲覧回数
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 件の賞賛
返信