2062953_zh-CN

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

2062953_zh-CN

2062953_zh-CN

无法构建 imx-image-full,出现 git-native 编译错误

我正在尝试在 Ubuntu 24.04 LTS 服务器上构建 imx-image-full。

我正在使用所有软件包和 imx8 的最新版本

命令行:
回购初始化 -u https://github.com/nxp-imx/imx-manifest-b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml
发行版=fsl-imx-xwayland 机器=imx8mp-lpddr4-evk 源 imx-setup release.sh -b 构建
bitbake imx-图像-full

错误:
警告:主机发行版“ubuntu-24.04”尚未通过此版本的构建系统进行验证;您可能会遇到意外的失败。建议您使用经过测试的发行版。
加载缓存:100% |################################################################################################################################################### ##| Time: 0:00:05
Loaded 5730 entries from dependency cache.
Parsing recipes: 100% |## #############################################################################################################################################################| 时间:0:00:01
3654 .bb 的解析文件已完成(3653 个已缓存,1 个已解析)。5731 个目标,跳过 377 个,屏蔽 3 个,错误 0 个。
注意:解决任何缺失的任务队列依赖关系

构建配置:
BB_VERSION = "2.8.0"
BUILD_SYS =“x86_64-linux”
NATIVELSBSTRING =“通用”
TARGET_SYS =“aarch64-poky-linux”
机器=“imx8mp-lpddr4-evk”
发行版 = “fsl-imx-xwayland”
DISTRO_VERSION = "6.6-scarthgap"
TUNE_FEATURES = “aarch64 armv8a crc 加密”
目标FPU = ""

元-poky =“头:200d12b6a58ad961d60a7774ca0f7a9d29498724”

元多媒体
meta-python =“HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97”
元飞思卡尔=“HEAD:0627128b341cfb2bef7a0832ce8cac0ce1127f13”
meta-freescale-3rdparty =“HEAD:6c063450d464eb2f380443c7d9af1b94ce9b9d75”
meta-freescale-distro =“HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345”
meta-imx-bsp
meta-imx-sdk
meta-imx-ml
元-imx-v2x =“头:219f6d04a4c339eb6f2dc626f944bbdf9a716ff5”
meta-nxp-demo-experience =“HEAD:e8e646e22b1f926aac83bb7ad522efa9cd8ccc45”
元-nxp-物质-基线
meta-nxp-openthread =“HEAD:f58365ec75a5768ff3e8e8bcd64f237738c93160”
元臂
meta-arm-toolchain =“HEAD:950a4afce46a359def2958bd9ae33fc08ff9bb0d”
meta-clang =“HEAD:2b7433611d80f6d0ee1b04156fa91fc73d3c2665”
元侏儒
元网络
元文件系统 = “HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97”
meta-qt6 =“HEAD:586a6cb5aec755803a3be3cec359baafe89d6432”
元秒差距
meta-tpm =“HEAD:459d837338ca230254baa2994f870bf6eb9d0139”
元虚拟化 = “HEAD:6f3c1d8f90947408a6587be222fec575a1ca5195”

Sstate 摘要:想要 5228 本地 0 镜像 0 错过 5228 当前 2596(0% 匹配,33% 完成)####################################################### ## | ETA: 0:00:01
Initialising tasks: 100% |## #######################################################################################################################################################| 时间:0:00:15
注意:执行任务
错误:git-native-2.44.1-r0 do_compile:oe_runmake 失败
错误:git-native-2.44.1-r0 do_compile:ExecutionError('/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/temp/run.do_compile.60384',1,无,无)
错误:故障日志文件存储在:/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/temp/log.do_compile.60384
日志数据如下:
| 调试:执行 python 函数 autotools_aclocals
| 调试:SITE 文件 ['endian-little'、'common-linux'、'common-glibc'、'bit-64'、'x86_64-linux'、'common']
| 调试:Python 函数 autotools_aclocals 已完成
| DEBUG:执行 shell 函数 do_compile
|注意:make -j 16 NO_PYTHON=1 CFLAGS=-isystem/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/include -O2 -pipe LDFLAGS=-L /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib -L /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib -Wl,--启用新dtags -Wl,-rpath链接,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib -Wl,-rpath链接,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib -Wl,-rpath,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib-Wl,-O1-Wl,--allow-shlib-undefined-Wl,--动态链接器=/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2-pthread PERL_PATH=/usr/bin/env perl COMPUTE_HEADER_DEPENDENCIES=no NO_GETTEXT=1 NO_CROSS_DIRECTORY_HARDLINKS=1
| 链接 git
| LINK 标量
| /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/hosttools/ld: common-main.o: 在函数“main”中:
| common-main.c:(.text.startup+0xde):对“cmd_main”未定义引用
| collect2:错误:ld 返回 1 退出状态
| make: *** [Makefile:2833: scalar] 错误 1
| make:*** 等待未完成的工作....
| /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/hosttools/ld:git.o:(.data.rel+0x7d0):对“cmd_pack_objects”的未定义引用
| /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/hosttools/ld:git.o:(.data.rel+0xb60):对“cmd_submodule__helper”未定义引用
| /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/hosttools/ld:git.o:(.data.rel+0xd10):对“cmd_worktree”未定义引用
| collect2:错误:ld 返回 1 退出状态
| make: *** [Makefile:2418: git] 错误 1
| 错误:oe_runmake 失败
| 警告:从 shell 命令退出代码 1。
错误:任务(虚拟:本机:/mnt/disks/yocto_disk/imx-yocto-bsp/sources/poky/meta/recipes-devtools/git/git_2.44.1.bb:do_compile)失败,退出代码为“1”
注意:任务摘要:尝试了 2220 项任务,其中 2216 项无需重新运行,1 项失败。

摘要:1 个任务失败:
虚拟:本机:/mnt/disks/yocto_disk/imx-yocto-bsp/sources/poky/meta/recipes-devtools/git/git_2.44.1.bb:do_compile
摘要:有 1 条警告消息。
摘要:有 2 条错误消息,返回非零退出代码。

回复:无法使用 git-native 编译错误构建 imx-image-full我想这有帮助,因为之后我设法通过了 git-native 步骤。回复:无法使用 git-native 编译错误构建 imx-image-full

尽管如此,在 git-native 上重新尝试为 imx8 构建 bitback 仍然失败。

ubuntu@yocto-build-server:/mnt/disks/yocto_disk/imx-yocto-bsp/build$ bitbake imx-image-full
WARNING: Host distribution "ubuntu-24.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended 
that you use a tested distribution.
Loading cache: 100% |#######################################################################################################################################| Time: 0:00:02Loaded 5730 entries from dependency cache.
Parsing recipes: 100% |#####################################################################################################################################| Time: 0:00:00Parsing of 3654 .bb files complete (3653 cached, 1 parsed). 5731 targets, 377 skipped, 3 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mp-lpddr4-evk"
DISTRO               = "fsl-imx-xwayland"
DISTRO_VERSION       = "6.6-scarthgap"
TUNE_FEATURES        = "aarch64 armv8a crc crypto"
TARGET_FPU           = ""
meta
meta-poky            = "HEAD:200d12b6a58ad961d60a7774ca0f7a9d29498724"
meta-oe
meta-multimedia
meta-python          = "HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97"
meta-freescale       = "HEAD:0627128b341cfb2bef7a0832ce8cac0ce1127f13"
meta-freescale-3rdparty = "HEAD:6c063450d464eb2f380443c7d9af1b94ce9b9d75"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-imx-bsp
meta-imx-sdk
meta-imx-ml
meta-imx-v2x         = "HEAD:219f6d04a4c339eb6f2dc626f944bbdf9a716ff5"
meta-nxp-demo-experience = "HEAD:e8e646e22b1f926aac83bb7ad522efa9cd8ccc45"
meta-nxp-matter-baseline
meta-nxp-openthread  = "HEAD:f58365ec75a5768ff3e8e8bcd64f237738c93160"
meta-arm
meta-arm-toolchain   = "HEAD:950a4afce46a359def2958bd9ae33fc08ff9bb0d"
meta-clang           = "HEAD:2b7433611d80f6d0ee1b04156fa91fc73d3c2665"
meta-gnome
meta-networking
meta-filesystems     = "HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97"
meta-qt6             = "HEAD:586a6cb5aec755803a3be3cec359baafe89d6432"
meta-parsec
meta-tpm             = "HEAD:459d837338ca230254baa2994f870bf6eb9d0139"
meta-virtualization  = "HEAD:6f3c1d8f90947408a6587be222fec575a1ca5195"

Sstate summary: Wanted 5226 Local 0 Mirrors 0 Missed 5226 Current 2598 (0% match, 33% complete)###############################################              | ETA:  0:00:01Initialising tasks: 100% |##################################################################################################################################| Time: 0:00:15NOTE: Executing Tasks
ERROR: git-native-2.44.1-r0 do_compile: oe_runmake failed
ERROR: git-native-2.44.1-r0 do_compile: ExecutionError('/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/temp/run.do_compile.12690', 1, None, None)
ERROR: Logfile of failure stored in: /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/temp/log.do_compile.12690
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16 NO_PYTHON=1 CFLAGS=-isystem/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/include -O2 -pipe LDFLAGS=-L/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib                         -L/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib                         -Wl,-rpath,/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread PERL_PATH=/usr/bin/env perl COMPUTE_HEADER_DEPENDENCIES=no NO_GETTEXT=1 NO_CROSS_DIRECTORY_HARDLINKS=1        
|     * new build flags
|     CC oss-fuzz/dummy-cmd-main.o
| /bin/sh: 1: cc: not found
|     CC oss-fuzz/fuzz-commit-graph.o
| /bin/sh: 1: cc: not found
| make: *** [Makefile:2735: oss-fuzz/dummy-cmd-main.o] Error 127
| make: *** Waiting for unfinished jobs....
| make: *** [Makefile:2735: oss-fuzz/fuzz-commit-graph.o] Error 127
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (virtual:native:/mnt/disks/yocto_disk/imx-yocto-bsp/sources/poky/meta/recipes-devtools/git/git_2.44.1.bb:do_compile) failed with exit code '1'
回复:无法使用 git-native 编译错误构建 imx-image-full

添加这些之后,成功构建它。
如果没有它们,它就会给我带来 curl-config 和 git-gui 问题。

sudo apt install libcurl4-openssl-dev libssl-dev gettext tcl-dev 



回复:无法使用 git-native 编译错误构建 imx-image-full

请转到文件夹“imx-yocto-bsp_scarthgap/build/tmp/work/x86_64-linux/git-native/2.44.1/git-2.44.1”并检查是否可以成功运行以下命令。

$ make distclean

$ make -j 4 NO_PYTHON=1 CFLAGS='-isystem/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/include -O2 -pipe' LDFLAGS='-L /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib -L /mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib -Wl,--启用新dtags -Wl,-rpath链接,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib -Wl,-rpath链接,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib -Wl,-rpath,/mnt/磁盘/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/usr/lib -Wl,-rpath,/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/work/x86_64-linux/git-native/2.44.1/recipe-sysroot-native/lib-Wl,-O1-Wl,--allow-shlib-undefined-Wl,--dynamic-linker=/mnt/disks/yocto_disk/imx-yocto-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2-pthread'PERL_PATH='/usr/bin/env perl'COMPUTE_HEADER_DEPENDENCIES=no NO_GETTEXT=1 NO_CROSS_DIRECTORY_HARDLINKS=1


回复:无法使用 git-native 编译错误构建 imx-image-full

是的,git-native 是sources/poky/meta/conf/bitbake.conf文件的一部分:

ASSUME_PROVIDED = "\
    bash-native \
    bzip2-native \
    chrpath-native \
    diffstat-native \
    file-native \
    findutils-native \
    gawk-native \
    git-native \
    grep-native \
    hostperl-runtime-native \
    hostpython-runtime-native \
    libgcc-native \
    patch-native \
    sed-native \
    tar-native \
    texinfo-native \
    virtual/crypt-native \
    virtual/libiconv-native \
    virtual/libintl-native \
    wget-native \
    "

这是 bitback git-native 命令的输出:

ubuntu@yocto-build-server:/mnt/disks/yocto_disk/imx-yocto-bsp$ bitbake git-native
WARNING: Host distribution "ubuntu-24.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended 
that you use a tested distribution.
Loading cache: 100% |#######################################################################################################################################| Time: 0:00:02Loaded 5730 entries from dependency cache.
Parsing recipes: 100% |#####################################################################################################################################| Time: 0:00:00Parsing of 3654 .bb files complete (3653 cached, 1 parsed). 5731 targets, 377 skipped, 3 masked, 0 errors.
WARNING: Explicit target "git-native" is in ASSUME_PROVIDED, ignoring
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mp-lpddr4-evk"
DISTRO               = "fsl-imx-xwayland"
DISTRO_VERSION       = "6.6-scarthgap"
TUNE_FEATURES        = "aarch64 armv8a crc crypto"
TARGET_FPU           = ""
meta
meta-poky            = "HEAD:200d12b6a58ad961d60a7774ca0f7a9d29498724"
meta-oe
meta-multimedia
meta-python          = "HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97"
meta-freescale       = "HEAD:0627128b341cfb2bef7a0832ce8cac0ce1127f13"
meta-freescale-3rdparty = "HEAD:6c063450d464eb2f380443c7d9af1b94ce9b9d75"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-imx-bsp
meta-imx-sdk
meta-imx-ml
meta-imx-v2x         = "HEAD:219f6d04a4c339eb6f2dc626f944bbdf9a716ff5"
meta-nxp-demo-experience = "HEAD:e8e646e22b1f926aac83bb7ad522efa9cd8ccc45"
meta-nxp-matter-baseline
meta-nxp-openthread  = "HEAD:f58365ec75a5768ff3e8e8bcd64f237738c93160"
meta-arm
meta-arm-toolchain   = "HEAD:950a4afce46a359def2958bd9ae33fc08ff9bb0d"
meta-clang           = "HEAD:2b7433611d80f6d0ee1b04156fa91fc73d3c2665"
meta-gnome
meta-networking
meta-filesystems     = "HEAD:72018ca1b1a471226917e8246e8bbf9a374ccf97"
meta-qt6             = "HEAD:586a6cb5aec755803a3be3cec359baafe89d6432"
meta-parsec
meta-tpm             = "HEAD:459d837338ca230254baa2994f870bf6eb9d0139"
meta-virtualization  = "HEAD:6f3c1d8f90947408a6587be222fec575a1ca5195"


Summary: There were 2 WARNING messages.

回复:无法使用 git-native 编译错误构建 imx-image-full

你修改过 yocto 食谱吗?

请检查“git-native”是否列在 sources/poky/meta/conf/bitbake.conf 中的“ASSUME_PROVIDED”列表中。

运行命令“bitbake git-native”时输出什么?

回复:无法使用 git-native 编译错误构建 imx-image-full

谢谢,但是所有这些软件包都已经安装在我的系统上了:

ubuntu@yocto-build-server:~$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential
utils-ping python3-git python3-jchrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils

正在读取包裹清单... Doneon3-j
inja2 python3-subunit zstd liblz4-tool 文件
构建依赖树...完成
正在读取状态信息...完成
gawk已经是最新版本(1:5.2.1-2build3)。
wget已经是最新版本(1.21.4-1ubuntu4.1)。
git已经是最新版本(1:2.43.0-1ubuntu7.2)。
diffstat 已经是最新版本(1.66-1build1)。
unzip已经是最新版本(6.0-28ubuntu4.1)。
texinfo已经是最新版本(7.1-3build2)。
gcc已经是最新版本(4:13.2.0-7ubuntu1)。
build-essential 已经是最新版本 (12.10ubuntu1)。
升级了 0 个,新安装了 0 个,要删除 0 个,未升级 0 个。

回复:无法使用 git-native 编译错误构建 imx-image-full

在 OpenEmbedded-Core 中,ASSUME_PROVIDED 主要指定本机
不应该构建的工具。一个例子是“git-native”,它
指定后,允许使用主机上的 Git 二进制文件
而不是构建“git-native”。


请在您的主机上安装以下软件包。

$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool 文件
语言环境 libacl1

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:01 PM
Updated by: