AnsweredAssumed Answered

重新编译yocto报错

Question asked by JUN C on May 29, 2019
Latest reply on May 29, 2019 by Joan Xie

大家好:

   今天我想通过repo sync去拉取最新的代码,但是失败了。

 

问题一:

jun@ubuntu:/opt/yocto/imx-yocto-bsp$ repo sync
Fetching project meta-freescale-3rdparty
Fetching project meta-browser
Fetching projects: 11% (1/9)
Fetching project meta-freescale-distro
Fetching projects: 22% (2/9)
Fetching project fsl-community-bsp-base
Fetching projects: 33% (3/9)
Fetching project meta-openembedded
Fetching projects: 44% (4/9)
Fetching project meta-fsl-bsp-release
Fetching projects: 55% (5/9)
Fetching project meta-qt5
Fetching projects: 66% (6/9)
Fetching project poky
Fetching projects: 77% (7/9)
Fetching project meta-freescale
Fetching projects: 88% (8/9)
Fetching projects: 100% (9/9)
Fetching projects: 100% (9/9), done.
info: A new version of repo is available


warning: project 'repo' branch 'master' is not signed
warning: Skipped upgrade to unverified version

sources/meta-fsl-bsp-release/: discarding 4 commits

 

为什么跳过了?

 

问题二:

我尝试重新编译工程,但是一直报错

jun@ubuntu:/opt/yocto/imx-yocto-bsp/imx8mmevk_wayland$ bitbake fsl-image-validation-imx
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Loading cache: 100% |###################################| Time: 0:00:02
Loaded 3485 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime ptpd (ptpd, ptpd-qoriq)
Consider defining a PREFERRED_RPROVIDER entry to match ptpd
NOTE: Multiple providers are available for runtime ptpd-dev (ptpd, ptpd-qoriq)
Consider defining a PREFERRED_RPROVIDER entry to match ptpd-dev

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky = "HEAD:c9bd4984f8f471ca2c43052714f4413ba99cf171"
meta-oe
meta-multimedia = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale = "HEAD:27ca94f8a4336790ba117b4298566f6820e7e74c"
meta-freescale-3rdparty = "HEAD:82037216280a39957fb4272581637abec734ad50"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk = "HEAD:cb65aa03c70d0b88cdc2b06eb56ab59ae01f54bf"
meta-browser = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5 = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"

Initialising tasks: 100% |##############################| Time: 0:00:10
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: bc-1.06-r3 do_package_write_rpm: Function failed: write_specfile
ERROR: Logfile of failure stored in: /opt/yocto/imx-yocto-bsp/imx8mmevk_wayland/tmp/work/aarch64-poky-linux/bc/1.06-r3/temp/log.do_package_write_rpm.64785
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/opt/yocto/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/opt/yocto/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/opt/yocto/imx-yocto-bsp/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.1.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['pseudo-native', 'opkg-utils-native', 'rpm-native', 'quilt-native', 'gnu-config-native', 'python3-native', 'libtool-native', 'popt-native', 'elfutils-native', 'automake-native', 'gettext-minimal-native', 'bzip2-native', 'autoconf-native', 'nss-native', 'libarchive-native', 'db-native', 'dbus-native', 'file-native', 'xz-native', 'pkgconfig-native', 'sqlite3-native', 'readline-native', 'openssl-native', 'zlib-native', 'gdbm-native', 'texinfo-dummy-native', 'm4-native', 'nspr-native', 'lzo-native', 'e2fsprogs-native', 'expat-native', 'autoconf-archive-native', 'ncurses-native', 'util-linux-native', 'attr-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function do_package_write_rpm
| DEBUG: Executing python function read_subpackage_metadata
| DEBUG: Python function read_subpackage_metadata finished
| DEBUG: Executing python function do_package_rpm
| DEBUG: Executing python function write_specfile
| DEBUG: Python function write_specfile finished
| DEBUG: Python function do_package_rpm finished
| DEBUG: Python function do_package_write_rpm finished
| ERROR: Function failed: write_specfile
ERROR: Task (/opt/yocto/imx-yocto-bsp/sources/poky/meta/recipes-extended/bc/bc_1.06.bb:do_package_write_rpm) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2811 tasks of which 2800 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/yocto/imx-yocto-bsp/sources/poky/meta/recipes-extended/bc/bc_1.06.bb:do_package_write_rpm
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

看log,是有个什么文件写不了,是指yocto向文件系统写某个东西失败?这个怎么解决?

 

问题三:

我还有一台电脑,遇上了另一个问题

执行install失败,请问这个是什么情况?

 

对于这些问题,我做了以下尝试;

1.重启虚拟机,然后重新执行 bitbake fsl-image-validation-imx ,之前遇上问题,重新做一次就好了

2.清除过工程的一些东西

Outcomes