Yocto Dunfell Build of t2080rdb fails GLIBC build

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

Yocto Dunfell Build of t2080rdb fails GLIBC build

460件の閲覧回数
vboroda
Contributor I

I just got the fresh git pull of Dunfell from the Yocto Project, and the bitbake fails configuring GLIBC.  I am building on Ubuntu 22.04. All patches are definitely applied, including the 0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch

| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-big', 'bit-64', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc-linux', 'powerpc64-linux', 'powerpc64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_configure
| NOTE: Running ../git/configure  --build=x86_64-linux            --host=powerpc64-sunh-linux             --target=powerpc64-sunh-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/lib64             --includedir=/usr/include            --oldincludedir=/usr/include            --infodir=/usr/share/info               --mandir=/usr/share/man                 --disable-silent-rules                  --disable-dependency-tracking                   --with-libtool-sysroot=/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/recipe-sysroot --enable-kernel=3.2.0                 --disable-profile                 --disable-debug --without-gd                 --enable-clocale=gnu                 --with-headers=/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/recipe-sysroot/usr/include                 --without-selinux                 --enable-tunables                 --enable-bind-now                 --enable-stack-protector=strong                 --enable-stackguard-randomization                 --disable-crypt                 --with-default-link                 --enable-nscd                                                    --with-cpu=e6500  --disable-static
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... powerpc64-sunh-linux-gnu
| checking for powerpc64-sunh-linux-gcc... powerpc64-sunh-linux-gcc  -mbig-endian -mhard-float -m64 -mcpu=e6500  --sysroot=/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/recipe-sysroot
| checking for suffix of object files... o
| checking whether we are using the GNU C compiler... yes
| checking whether powerpc64-sunh-linux-gcc  -mbig-endian -mhard-float -m64 -mcpu=e6500  --sysroot=/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/recipe-sysroot accepts -g... yes
| checking for gcc... gcc
| checking for powerpc64-sunh-linux-readelf... powerpc64-sunh-linux-readelf
| checking whether we are using the GNU C++ compiler... yes
| checking whether powerpc64-sunh-linux-g++  -mbig-endian -mhard-float -m64 -mcpu=e6500  --sysroot=/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/recipe-sysroot accepts -g... yes
| checking whether powerpc64-sunh-linux-g++  -mbig-endian -mhard-float -m64 -mcpu=e6500  --sysroot=/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/recipe-sysroot can link programs... no
| checking for sysdeps preconfigure fragments... aarch64 alpha arm csky hppa i386 m68k microblaze checking for grep that handles long lines and -e... /home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/hosttools/grep
| checking for egrep... /home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/hosttools/grep -E
| mips nios2 powerpc riscv s390 sh checking for grep that handles long lines and -e... (cached) /home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/hosttools/grep
| checking for egrep... (cached) /home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/hosttools/grep -E
| sparc x86_64
| checking for use of fpu sysdeps directories... yes
| checking for -fstack-protector... (cached) no
| checking for -fstack-protector-strong... (cached) no
| checking for -fstack-protector-all... (cached) no
| checking for assembler and linker STT_GNU_IFUNC support... yes
| checking for gcc attribute ifunc support... yes
| checking whether the linker supports textrels along with ifunc... no
| checking if compiler warns about alias for function with incompatible types... yes
| checking sysdep dirs... configure: error: The e6500 subspecies of powerpc64 is not supported.
| NOTE: The following config.log files may provide further information.
| NOTE: /home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/build-powerpc64-sunh-linux/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/build_t2080rdb-64b_test/tmp/work/ppc64e6500-sunh-linux/glibc/2.31+gitAUTOINC+2d4f26e5cf-r0/temp/run.do_configure.4068815' failed with exit code 1
ERROR: Task (/home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/poky-dunfell/meta/recipes-core/glibc/glibc_2.31.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 543 tasks of which 542 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/boroda/SureLine_OS/COTS/v5.x_newyocto/yocto-build/poky-dunfell/meta/recipes-core/glibc/glibc_2.31.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

 

0 件の賞賛
5 返答(返信)

431件の閲覧回数
Oswalag
NXP TechSupport
NXP TechSupport

Hello.

It seems that GLIBC package or dependencies is not complete. so configure failed.

Please share the complete process that you are following to build your project to review if there is a mistake or if you may downgrade the Yocto release to build successfully. 

0 件の賞賛

425件の閲覧回数
vboroda
Contributor I

My process was the same that I follow for other boards that we support. I cloned the Yocto GIT repos, including meta-freescale, then created the build folder, conf files, SOURCE_THIS script. Then I tried to bitbake u-boot-qoriq, which in turn attempted to build GLIBC and failed.

A few years ago, I used to download the Freescale SDK ISO image, and run a script that set everything up, but I am not sure if there is such a thing any more.

I was able to come up with a patch that allowed me to build GLIBC, however. It's very small so I can quote it here:

 

 

From 9c914f058e7020630c495be1f9d6568cb95f44e7 Mon Sep 17 00:00:00 2001
From: Vladimir Boroda <vxxx@xxxxillo.com>
Date: Thu, 8 Feb 2024 16:59:54 -0500
Subject: [PATCH] e6500 Configure Fix

---
 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/e6500/fpu/Implies | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/e6500/fpu/Implies

diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/e6500/fpu/Implies b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/e6500/fpu/Implies
new file mode 100644
index 0000000000..04ff8cc181
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/be/e6500/fpu/Implies
@@ -0,0 +1 @@
+powerpc/powerpc64/e6500/fpu
--
2.34.1

 

 

0 件の賞賛

372件の閲覧回数
Oswalag
NXP TechSupport
NXP TechSupport

Which version of SDK are you using?

0 件の賞賛

369件の閲覧回数
vboroda
Contributor I

I am not using the FreeScale SDK. Just plain vanilla Yocto Dunfell.

We have other boards (non-FreeScale, non-PowerPC), which we support.  Need to be able to build from the same generic Yocto base.

What is the current T2080 SDK version? The last one I worked with was 2.2, several years ago.

0 件の賞賛

363件の閲覧回数
Oswalag
NXP TechSupport
NXP TechSupport

The latest version supported by NXP is QorIQ SDK v2.0-1703.

0 件の賞賛