rapidkkkmmm
@rapidkkkmmm

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

[Beginar]Yocto Project 4.2

解決したいこと

Based on the below article, I tried to build Yocto Project Environment.

Build中にエラーが発生しました。
解決方法を教えて下さい。

Conditions below;
Host: ubuntu 24.04
directory name: pi5yocto

発生している問題・エラー

$ bitbake core-image-base

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:00
Loaded 1839 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-24.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "raspberrypi4-64"
DISTRO = "poky"
DISTRO_VERSION = "4.2.4"
TUNE_FEATURES = "aarch64 armv8a crc cortexa72"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "mickledore:7235399a86b134e57d5eb783d7f1f57ca0439ae5"
meta-raspberrypi = "mickledore:7a21646e7d547eb3f1d9bf8f045f2be3627b36bc"

WARNING: Your host glibc version (2.39) is newer than that in uninative (2.38). Disabling uninative so that sstate is not corrupted.
Initialising tasks: 100% |################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 1473 Local 0 Mirrors 0 Missed 1473 Current 209 (0% match, 12% complete)
NOTE: Executing Tasks
ERROR: libxcrypt-4.4.33-r0 do_configure: configure failed
ERROR: libxcrypt-4.4.33-r0 do_configure: ExecutionError('/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/temp/run.do_configure.2045344', 1, None, None)
ERROR: Logfile of failure stored in: /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/temp/log.do_configure.2045344
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/pi5yocto/poky/meta/recipes-core/glibc/glibc_2.37.bb:do_populate_sysroot', '/pi5yocto/poky/meta/recipes-devtools/gcc/gcc-cross_12.3.bb:do_populate_sysroot', '/pi5yocto/poky/meta/recipes-devtools/gcc/gcc-runtime_12.3.bb:do_populate_sysroot', '/pi5yocto/poky/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb:do_populate_sysroot', '/pi5yocto/poky/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_sysroot', '/pi5yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/pi5yocto/poky/meta/recipes-devtools/autoconf/autoconf_2.71.bb:do_populate_sysroot', 'virtual:native:/home/pi5yocto/poky/meta/recipes-devtools/automake/automake_1.16.5.bb:do_populate_sysroot', 'virtual:native:/pi5yocto/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/pi5yocto/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/pi5yocto/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['glibc', 'gcc-cross-aarch64', 'gcc-runtime', 'libtool-cross', 'libtool-native', 'quilt-native', 'autoconf-native', 'automake-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'gnu-config-native', 'texinfo-dummy-native', 'm4-native', 'attr-native', 'binutils-cross-aarch64', 'linux-libc-headers', 'mpfr-native', 'zlib-native', 'gmp-native', 'zstd-native', 'flex-native', 'xz-native', 'libmpc-native', 'libgcc', 'gettext-minimal-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_configure
| automake (GNU automake) 1.16.5
| Copyright (C) 2021 Free Software Foundation, Inc.
| License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl-2.0.html
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
|
| Written by Tom Tromey tromey@redhat.com
| and Alexandre Duret-Lutz adl@gnu.org.
| AUTOV is 1.16
| NOTE: Executing ACLOCAL="aclocal --system-acdir=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot/usr/share/aclocal/ --automake-acdir=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal-1.16" autoreconf -Wcross --verbose --install --force --exclude=autopoint --exclude=gtkdocize -I /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal/
| autoreconf: export WARNINGS=cross,no-obsolete
| autoreconf: Entering directory '.'
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal --system-acdir=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot/usr/share/aclocal/ --automake-acdir=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal/ --force -I build-aux/m4
| autoreconf: configure.ac: tracing
| autoreconf: running: libtoolize --copy --force
| libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux/m4-autogen'.
| libtoolize: copying file 'build-aux/m4-autogen/ltmain.sh'
| libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
| libtoolize: copying file 'build-aux/m4/libtool.m4'
| libtoolize: copying file 'build-aux/m4/ltoptions.m4'
| libtoolize: copying file 'build-aux/m4/ltsugar.m4'
| libtoolize: copying file 'build-aux/m4/ltversion.m4'
| libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
| autoreconf: configure.ac: not using Intltool
| autoreconf: configure.ac: not using Gtkdoc
| autoreconf: running: aclocal --system-acdir=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot/usr/share/aclocal/ --automake-acdir=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal/ --force -I build-aux/m4
| autoreconf: running: /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/bin/autoconf --include=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal/ --force
| autoreconf: running: /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/bin/autoheader --include=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/share/aclocal/ --force
| autoreconf: running: automake --add-missing --copy --force-missing
| configure.ac:30: installing 'build-aux/m4-autogen/compile'
| configure.ac:16: installing 'build-aux/m4-autogen/missing'
| Makefile.am: installing 'build-aux/m4-autogen/depcomp'
| autoreconf: 'build-aux/m4-autogen/config.sub' is updated
| autoreconf: 'build-aux/m4-autogen/config.guess' is updated
| autoreconf: Leaving directory '.'
| NOTE: Running ../git/configure --build=x86_64-linux --host=aarch64-poky-linux --target=aarch64-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot --disable-obsolete-api --disable-static
| configure: loading site script /pi5yocto/poky/meta/site/endian-little
| configure: loading site script /pi5yocto/poky/meta/site/arm-common
| configure: loading site script /pi5yocto/poky/meta/site/arm-64
| configure: loading site script /pi5yocto/poky/meta/site/common-linux
| configure: loading site script /pi5yocto/poky/meta/site/common-glibc
| configure: loading site script /pi5yocto/poky/meta/site/common
| checking for a BSD-compatible install... /pi5yocto/build/tmp/hosttools/install -c
| checking whether build environment is sane... yes
| checking for aarch64-poky-linux-strip... aarch64-poky-linux-strip
| checking for a race-free mkdir -p... /pi5yocto/build/tmp/hosttools/mkdir -p
| checking for gawk... gawk
| checking whether make sets $(MAKE)... yes
| checking whether make supports nested variables... yes
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... aarch64-poky-linux-gnu
| checking for aarch64-poky-linux-gcc... aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot
| checking whether the C compiler works... yes
| checking for C compiler default output file name... a.out
| checking for suffix of executables...
| checking whether we are cross compiling... yes
| checking for suffix of object files... o
| checking whether the compiler supports GNU C... yes
| checking whether aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot accepts -g... yes
| checking for aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot option to enable C11 features... none needed
| checking whether aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot understands -c and -o together... yes
| checking whether make supports the include directive... yes (GNU style)
| checking dependency style of aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot... none
| checking for aarch64-poky-linux-pkg-config... no
| checking for pkg-config... /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot-native/usr/bin/pkg-config
| checking pkg-config is at least version 0.9.0... configure: WARNING: using cross tools not prefixed with host triplet
| yes
| checking how to run the C preprocessor... aarch64-poky-linux-gcc -E --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
| checking whether make sets $(MAKE)... (cached) yes
| checking whether ln -s works... yes
| checking for perl... /pi5yocto/build/tmp/hosttools/perl
| checking whether /pi5yocto/build/tmp/hosttools/perl is version 5.14.0 or later... yes
| checking for gpg2... false
| checking for sha256sum... /pi5yocto/build/tmp/hosttools/sha256sum
| checking for stdio.h... yes
| checking for stdlib.h... yes
| checking for string.h... yes
| checking for inttypes.h... yes
| checking for stdint.h... yes
| checking for strings.h... yes
| checking for sys/stat.h... yes
| checking for sys/types.h... yes
| checking for unistd.h... yes
| checking for wchar.h... yes
| checking for minix/config.h... no
| checking for fcntl.h... yes
| checking for stdbool.h... yes
| checking for ucontext.h... yes
| checking for sys/cdefs.h... yes
| checking for sys/random.h... yes
| checking for sys/syscall.h... yes
| checking for valgrind/valgrind.h... no
| checking for endian.h... yes
| checking for sys/endian.h... no
| checking for sys/param.h... yes
| checking whether it is safe to define EXTENSIONS... yes
| checking whether _XOPEN_SOURCE should be defined... no
| checking for special C compiler options needed for large files... no
| checking for _FILE_OFFSET_BITS value needed for large files... no
| checking whether C compiler accepts -Werror=unknown-warning-option... no
| checking whether C compiler accepts -Wall... yes
| checking whether C compiler accepts -Wextra... yes
| checking whether C compiler accepts -Walloc-zero... yes
| checking whether C compiler accepts -Walloca... yes
| checking whether C compiler accepts -Wbad-function-cast... yes
| checking whether C compiler accepts -Wcast-align... yes
| checking whether C compiler accepts -Wcast-qual... yes
| checking whether C compiler accepts -Wconversion... yes
| checking whether C compiler accepts -Wformat=2... yes
| checking whether C compiler accepts -Wformat-overflow=2... yes
| checking whether C compiler accepts -Wformat-signedness... yes
| checking whether C compiler accepts -Wformat-truncation=1... yes
| checking whether C compiler accepts -Wlogical-op... yes
| checking whether C compiler accepts -Wmissing-declarations... yes
| checking whether C compiler accepts -Wmissing-prototypes... yes
| checking whether C compiler accepts -Wnested-externs... yes
| checking whether C compiler accepts -Wnull-dereference... yes
| checking whether C compiler accepts -Wold-style-definition... yes
| checking whether C compiler accepts -Wpointer-arith... yes
| checking whether C compiler accepts -Wrestrict... yes
| checking whether C compiler accepts -Wshadow... yes
| checking whether C compiler accepts -Wstrict-overflow=2... yes
| checking whether C compiler accepts -Wstrict-prototypes... yes
| checking whether C compiler accepts -Wundef... yes
| checking whether C compiler accepts -Wvla... yes
| checking whether C compiler accepts -Wwrite-strings... yes
| checking whether C compiler accepts -Wpedantic... yes
| checking whether C compiler accepts -Werror... yes
| checking whether C compiler accepts -Werror=unknown-warning-option... no
| checking whether C compiler accepts -Wall... yes
| checking whether C compiler accepts -Wextra... yes
| checking whether C compiler accepts -Walloc-zero... yes
| checking whether C compiler accepts -Walloca... yes
| checking whether C compiler accepts -Wbad-function-cast... yes
| checking whether C compiler accepts -Wcast-align... yes
| checking whether C compiler accepts -Wcast-qual... yes
| checking whether C compiler accepts -Wconversion... yes
| checking whether C compiler accepts -Wformat=2... yes
| checking whether C compiler accepts -Wformat-overflow=2... yes
| checking whether C compiler accepts -Wformat-signedness... yes
| checking whether C compiler accepts -Wformat-truncation=1... yes
| checking whether C compiler accepts -Wlogical-op... yes
| checking whether C compiler accepts -Wmissing-declarations... yes
| checking whether C compiler accepts -Wmissing-prototypes... yes
| checking whether C compiler accepts -Wnested-externs... yes
| checking whether C compiler accepts -Wnull-dereference... yes
| checking whether C compiler accepts -Wold-style-definition... yes
| checking whether C compiler accepts -Wpointer-arith... yes
| checking whether C compiler accepts -Wrestrict... yes
| checking whether C compiler accepts -Wshadow... yes
| checking whether C compiler accepts -Wstrict-overflow=2... yes
| checking whether C compiler accepts -Wstrict-prototypes... yes
| checking whether C compiler accepts -Wundef... yes
| checking whether C compiler accepts -Wvla... yes
| checking whether C compiler accepts -Wwrite-strings... yes
| checking whether C compiler accepts -Wpedantic... yes
| checking whether C compiler accepts -Werror... yes
| checking how to print strings... printf
| checking for a sed that does not truncate output... (cached) sed
| checking for grep that handles long lines and -e... /pi5yocto/build/tmp/hosttools/grep
| checking for egrep... /pi5yocto/build/tmp/hosttools/grep -E
| checking for fgrep... /pi5yocto/build/tmp/hosttools/grep -F
| checking for ld used by aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot... aarch64-poky-linux-ld --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot
| checking if the linker (aarch64-poky-linux-ld --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot ) is GNU ld... yes
| checking for BSD- or MS-compatible name lister (nm)... aarch64-poky-linux-gcc-nm
| checking the name lister (aarch64-poky-linux-gcc-nm) interface... BSD nm
| checking the maximum length of command line arguments... 1572864
| checking how to convert x86_64-pc-linux-gnu file names to aarch64-poky-linux-gnu format... func_convert_file_noop
| checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
| checking for aarch64-poky-linux-ld --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot option to reload object files... -r
| checking for aarch64-poky-linux-file... no
| checking for file... file
| checking for aarch64-poky-linux-objdump... aarch64-poky-linux-objdump
| checking how to recognize dependent libraries... pass_all
| checking for aarch64-poky-linux-dlltool... no
| checking for dlltool... no
| checking how to associate runtime and link libraries... printf %s\n
| checking for aarch64-poky-linux-ar... aarch64-poky-linux-gcc-ar
| checking for archiver @FILE support... @
| checking for aarch64-poky-linux-strip... (cached) aarch64-poky-linux-strip
| checking for aarch64-poky-linux-ranlib... aarch64-poky-linux-gcc-ranlib
| checking command to parse aarch64-poky-linux-gcc-nm output from aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot object... ok
| checking for sysroot... /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot
| checking for a working dd... /pi5yocto/build/tmp/hosttools/dd
| checking how to truncate binary pipes... /pi5yocto/build/tmp/hosttools/dd bs=4096 count=1
| checking for aarch64-poky-linux-mt... no
| checking for mt... no
| checking if : is a manifest tool... no
| checking for dlfcn.h... yes
| checking for objdir... .libs
| checking if aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot supports -fno-rtti -fno-exceptions... no
| checking for aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot option to produce PIC... -fPIC -DPIC
| checking if aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot PIC flag -fPIC -DPIC works... yes
| checking if aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot static flag -static works... yes
| checking if aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot supports -c -o file.o... yes
| checking if aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot supports -c -o file.o... (cached) yes
| checking whether the aarch64-poky-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot linker (aarch64-poky-linux-ld --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot ) supports shared libraries... yes
| checking whether -lc should be explicitly linked in... no
| checking dynamic linker characteristics... GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking whether stripping libraries is possible... yes
| checking if libtool supports shared libraries... yes
| checking whether to build shared libraries... yes
| checking whether to build static libraries... no
| checking for _ prefix in compiled symbols... no
| checking whether the preprocessor (aarch64-poky-linux-gcc -E --sysroot=/pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/recipe-sysroot -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security) supports -dD... yes
| checking whether we are compiling with ASan... no
| checking whether sys/cdefs.h defines __BEGIN_DECLS and __END_DECLS... yes
| checking whether sys/cdefs.h defines __THROW... yes
| checking how to control data alignment... _Alignas
| checking how to query data alignment... _Alignof
| checking for max_align_t in stddef.h... yes
| checking for byte order macros... BYTE_ORDER and xxx_ENDIAN
| checking for static_assert in assert.h... yes
| checking for ld --wrap... yes
| checking linker version script flag... --version-script
| checking if version scripts can use complex wildcards... yes
| checking for attribute((symver))... yes
| checking how to make linking fail when undefined symbols remain... -Wl,-z,defs
| checking how to make linking fail when there are text relocations... -Wl,-z,text
| checking how to link with read-only relocations... -Wl,-z,relro
| checking how to link with immediate binding... -Wl,-z,now
| checking whether C compiler accepts -fno-plt... yes
| checking for arc4random_buf... yes
| checking for explicit_bzero... yes
| checking for explicit_memset... no
| checking for getentropy... yes
| checking for getrandom... yes
| checking for memset_s... no
| checking for open64... yes
| checking for syscall... yes
| checking for valgrind... no
| checking for Python 3.>=6 with Passlib... /pi5yocto/build/tmp/hosttools/python3
| checking whether all ucontext.h functions are available... yes
| when is deprecated at /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/git/build-aux/scripts/BuildCommon.pm line 522.
| Compilation failed in require at ../git/build-aux/scripts/expand-selected-hashes line 28.
| BEGIN failed--compilation aborted at ../git/build-aux/scripts/expand-selected-hashes line 28.
| configure: error: bad value 'all' for --enable-hashes
| NOTE: The following config.log files may provide further information.
| NOTE: /pi5yocto/build/tmp/work/cortexa72-poky-linux/libxcrypt/4.4.33-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/pi5yocto/poky/meta/recipes-core/libxcrypt/libxcrypt_4.4.33.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 998 tasks of which 957 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/pi5yocto/poky/meta/recipes-core/libxcrypt/libxcrypt_4.4.33.bb:do_configure
Summary: There were 2 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

0

2Answer

Yocto Project については何も知らないのですが、

$ bitbake core-image-base

の直後に

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.

と警告が出ていて、訳すと
「警告: ホスト・ディストリビューション「ubuntu-24.04」は、このバージョンのビルド・システムでは検証されていません。テスト済みのディストリビューションを使用することをお勧めします。」
となります。

このあたりがまず問題なのかもしれません。

2Like

Comments

  1. この後にも

    WARNING: Your host glibc version (2.39) is newer than that in uninative (2.38). Disabling uninative so that sstate is not corrupted.

    と警告が出ていて
    「警告:ホストのglibcのバージョン(2.39)はuninativeのバージョン(2.38)より新しいです。sstateが破損しないようにuninativeを無効にしてください。」
    ということですから、環境が合っていないのでは?

  2. @rapidkkkmmm

    Questioner

    ご回答ありがとうございます。
    core-image-minimalのような他のOSも試しましたが、上手くいきませんでした。
    suka-testさんの言うように、検証済みのubuntu22.04をホストに変更して再チャレンジしてみたいと思います。
    (私は今回初めてLinuxディストリビューションというものを触りましたが、環境構築するだけでも、きちんと条件通りにやらないと上手くいかないのですね。勉強のため、挫けずに頑張ってみたいと思います。)

参照されている『YoctoProject 4.2(mickledore)をラズベリーパイで試す』はRaspberry Pi OSが前提となっていると思われます。

Debian 10.x(buster) が必要か?

0Like

Comments

  1. 上記URLによると、Yocto Release 4.2 (mickledore) がサポートしているディストリビューションは、以下のようです。

    Supported distributions
    
    This release supports running BitBake on new GNU/Linux distributions:
    
    Fedora 36 and 37
    AlmaLinux 8.7 and 9.1
    OpenSuse 15.4
    
    On the other hand, some earlier distributions are no longer supported:
    
    Debian 10.x
    Fedora 34 and 35
    AlmaLinux 8.5
    

    この中で、ラズベリーパイで動作するOSは、Debian 10.x(buster)です。

Your answer might help someone💌