Hi,

We're using Poky-Kirkstone for Yocto. Now we're trying to upgrade it to the 
latest version. But sadly, hit below error when trying to use it to compile the 
code on *ubuntu 18.04*. For comparison, ubuntu 22.04 is OK.

Through narrowing down, we found below clues. It should be caused by some of 
recent updates to Poky.
It is appreciated if any of Yocto maintainer could help to give a quick fix. :)

*To make things simper, the test example is from* *official quick build manual( 
https://docs.yoctoproject.org/4.0.11/brief-yoctoprojectqs/index.html ).

*

==== *Segmentation fault of mkfs.ext4, which is provided by the package of 
e2fsprogs-native .* ====

jleng@jleng:~/data/cbuild-ng/build/qemux86-64$ bitbake core-image-minimal

WARNING: You are using a local hash equivalence server but have configured an 
sstate mirror. This will likely mean no sstate will match from the mirror. You 
may wish to disable the hash equivalence use (BB_HASHSERVE), or use a hash 
equivalence server alongside the sstate mirror.

Loading cache: 100% |                                                           
                                                                        | ETA:  
--:--:--

Loaded 0 entries from dependency cache.

Parsing recipes: 100% 
|##################################################################################################################################|
 Time: 0:00:17

Parsing of 886 .bb files complete (0 cached, 886 parsed). 1648 targets, 45 
skipped, 0 masked, 0 errors.

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION           = "2.0.0"

BUILD_SYS            = "x86_64-linux"

NATIVELSBSTRING      = "ubuntu-18.04"

TARGET_SYS           = "x86_64-poky-linux"

MACHINE              = "qemux86-64"

DISTRO               = "poky"

DISTRO_VERSION       = "4.0.12"

TUNE_FEATURES        = "m64 core2"

TARGET_FPU           = ""

meta

meta-poky

meta-yocto-bsp       = "kirkstone:d6b8790370500b99ca11f0d8a05c39b661ab2ba6"

meta-cbuild          = "main:fd1231d7002a0bd6e563d80782140b7c6eb549c1"

Initialising tasks: 100% 
|###############################################################################################################################|
 Time: 0:00:01

Checking sstate mirror object availability: 100% 
|#######################################################################################################|
 Time: 0:00:05

Sstate summary: Wanted 1397 Local 647 Mirrors 0 Missed 750 Current 0 (46% 
match, 0% complete)

NOTE: Executing Tasks

WARNING: openssl-native-3.0.10-r0 do_fetch: Failed to fetch URL 
http://www.openssl.org/source/openssl-3.0.10.tar.gz , attempting MIRRORS if 
available

ERROR: core-image-minimal-1.0-r0 do_image_ext4: 
ExecutionError('/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/run.do_image_ext4.22796',
 139, None, None)

ERROR: Logfile of failure stored in: 
/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_ext4.22796

Log data follows:

| DEBUG: Executing python function extend_recipe_sysroot

| NOTE: Direct dependencies are 
['/home/jleng/data/cbuild-ng/build/poky/meta/recipes-core/glibc/cross-localedef-native_2.35.bb:do_populate_sysroot',
 
'/home/jleng/data/cbuild-ng/build/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot',
 
'/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot',
 
'/home/jleng/data/cbuild-ng/build/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/createrepo-c/createrepo-c_0.19.0.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/dnf/dnf_4.11.1.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/opkg/opkg_0.5.0.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-devtools/rpm/rpm_4.17.1.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot',
 
'virtual:native:/home/jleng/data/cbuild-ng/build/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot']

| NOTE: Installed into sysroot: ['e2fsprogs-native']

| NOTE: Skipping as already exists in sysroot: ['cross-localedef-native', 
'ldconfig-native', 'qemuwrapper-cross', 'depmodwrapper-cross', 
'update-rc.d-native', 'createrepo-c-native', 'dnf-native', 'makedevs-native', 
'opkg-utils-native', 'opkg-native', 'pseudo-native', 'rpm-native', 
'pbzip2-native', 'pigz-native', 'bzip2-native', 'librepo-native', 
'gettext-minimal-native', 'libdnf-native', 'python3-iniparse-native', 
'libcomps-native', 'cmake-native', 'python3-native', 'perl-native', 
'zlib-native', 'attr-native', 'libtool-native', 'texinfo-dummy-native', 
'util-linux-native', 'openssl-native', 'debianutils-native', 'kmod-native', 
'shadow-native', 'shared-mime-info-native', 'file-native', 'lua-native', 
'sqlite3-native', 'zstd-native', 'popt-native', 'libgcrypt-native', 
'xz-native', 'elfutils-native', 'qemu-native', 'curl-native', 'libxml2-native', 
'glib-2.0-native', 'expat-native', 'libarchive-native', 'libsolv-native', 
'gpgme-native', 'libmodulemd-native', 'gobject-introspection-native', 
'libcheck-native', 'json-c-native', 'swig-native', 'python3-six-native', 
'python3-wheel-native', 'python3-setuptools-native', 
'python3-installer-native', 'ncurses-native', 'libnsl2-native', 
'libffi-native', 'libtirpc-native', 'util-linux-libuuid-native', 'gdbm-native', 
'readline-native', 'make-native', 'libpcre2-native', 'libcap-ng-native', 
'itstool-native', 'libgpg-error-native', 'libcap-native', 
'libmicrohttpd-native', 'gettext-native', 'libpcre-native', 'lzo-native', 
'libassuan-native', 'libyaml-native', 'flex-native', 
'python3-flit-core-native', 'unzip-native', 'gnutls-native', 'm4-native', 
'nettle-native', 'libunistring-native', 'gmp-native', 'libidn2-native', 
'gnu-config-native']

| DEBUG: sed -e 
's:^[^/]*/:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/:g'
 
/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/sysroots-components/x86_64/e2fsprogs-native/fixmepath
 | xargs sed -i -e 
's:FIXMESTAGINGDIRTARGET:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot:g;
 
s:FIXMESTAGINGDIRHOST:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native:g'
 -e 
's:FIXME_PSEUDO_SYSROOT:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/sysroots-components/x86_64/pseudo-native:g'
 -e 
's:FIXME_HOSTTOOLS_DIR:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/hosttools:g'
 -e 
's:FIXME_PKGDATA_DIR:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/pkgdata/qemux86-64:g'
 -e 
's:FIXME_PSEUDO_LOCALSTATEDIR:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/pseudo/:g'
 -e 
's:FIXME_LOGFIFO:/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/fifo.22796:g'

| DEBUG: Python function extend_recipe_sysroot finished

| DEBUG: Executing python function set_image_size

| DEBUG: 27409.200000 = 21084 * 1.300000

| DEBUG: 27409.200000 = max(27409.200000, 8192)[27409.200000] + 0

| DEBUG: 27410.000000 = int(27409.200000)

| DEBUG: 27410 = aligned(27410)

| DEBUG: returning 27410

| DEBUG: Python function set_image_size finished

| DEBUG: Executing shell function do_image_ext4

| DEBUG: Executing dd if=/dev/zero 
of=/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-64-20230808061549.rootfs.ext4
 seek=27410 count=0 bs=1024

| 0+0 records in

| 0+0 records out

| 0 bytes copied, 6.4388e-05 s, 0.0 kB/s

| DEBUG: Actual Rootfs size:  19988 
/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs

| DEBUG: Actual Partion size: 28067840

| DEBUG: Executing mkfs.ext4 -F -i 4096 
/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-64-20230808061549.rootfs.ext4
 -d 
/home/jleng/data/cbuild-ng/build/qemux86-64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs

| WARNING: exit code 139 from a shell command.

| Segmentation fault (core dumped)

ERROR: Task 
(/home/jleng/data/cbuild-ng/build/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_ext4)
 failed with exit code '1'

NOTE: Tasks Summary: Attempted 3592 tasks of which 1187 didn't need to be rerun 
and 1 failed.

Summary: 1 task failed:

/home/jleng/data/cbuild-ng/build/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_ext4

Summary: There were 2 WARNING messages.

Summary: There was 1 ERROR message, returning a non-zero exit code.

==== *I rolled back the revision of poky  to check the issue,  the commit of  " 
uninative: Upgrade to 3.10 to support gcc 13" introduced it.* ====

commit aab6fc20de9473d8d7f277332601cbae70c53320

Author: Michael Halstead < mhalst...@linuxfoundation.org >

Date:   Fri May 26 10:21:48 2023 -0700

uninative: Upgrade to 3.10 to support gcc 13

(From OE-Core rev: dbf2a81d42b48c22864f64425672315158eb99cb)

Signed-off-by: Michael Halstead < mhalst...@linuxfoundation.org >

Signed-off-by: Richard Purdie < richard.pur...@linuxfoundation.org >

(cherry picked from commit f811bffb861b23238e8291394bd6e8407f013619)

Signed-off-by: Steve Sakoman < st...@sakoman.com >

commit 51d6afc92f621657f800171a992cea7708261d31

Author: Richard Purdie < richard.pur...@linuxfoundation.org >

Date:   Wed Jun 7 17:27:36 2023 +0100

selftest/reproducible: Allow native/cross reuse in test

We don't compare reproducibility of the native/cross components, only the

target ones. With the long build times of rust-native, the test now takes

crazy lengths of time so this tweak should allow us to reuse native/cross

artefacts from sstate whilst still testing the target output is

reproducible.

(From OE-Core rev: 18a9596ae711ba37ac7e44e46744298ba79ae320)

Signed-off-by: Richard Purdie < richard.pur...@linuxfoundation.org >

(cherry picked from commit b494d83c639a877cefeb7cbab6d37195e492f059)

Signed-off-by: Steve Sakoman < st...@sakoman.com >

**
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60757): https://lists.yoctoproject.org/g/yocto/message/60757
Mute This Topic: https://lists.yoctoproject.org/mt/100638466/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to