I encountered an error while building BSP19.0 for S32v234EVB, the log as below:
----------------------------------------------------------------------------------------------------------
$ bitbake virtual/kernel -c menuconfig
WARNING: Host distribution "ubuntu-18.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 3423 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "s32v234evb"
DISTRO = "fsl-auto"
DISTRO_VERSION = "1.0"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:c770664d3125a0a0e73444a3a2a97418b7c0d7a5"
meta-oe
meta-multimedia
meta-python
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl
meta-xfce = "HEAD:6e3fc5b8d904d06e3aa77e9ec9968ab37a798188"
meta-virtualization = "HEAD:4277759428e96605b8dbe95a43891e217ae8d399"
meta-freescale = "HEAD:bf7fd9cfe0788fe2f819a4ae2cc7db8327fe161a"
meta-alb = "HEAD:79563288fea20bf8fcb09177c0c5b87cb8f2ba01"
meta-linaro-toolchain = "HEAD:30f0f5e158ba29c4b1ccfdd66f0368726e4179e0"
Initialising tasks: 100% |############################################################################| Time: 0:00:02
Checking sstate mirror object availability: 100% |####################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: glibc-initial-2.26-r0 do_configure: Function failed: do_configure (log file is located at /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/temp/log.do_configure.648)
ERROR: Logfile of failure stored in: /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/temp/log.do_configure.648
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| 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
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... aarch64-fsl-linux-gnu
| checking for aarch64-fsl-linux-gcc... aarch64-fsl-linux-gcc --sysroot=/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot
| checking for suffix of object files... o
| checking whether we are using the GNU C compiler... yes
| checking whether aarch64-fsl-linux-gcc --sysroot=/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot accepts -g... yes
| checking for gcc... gcc
| checking for aarch64-fsl-linux-readelf... aarch64-fsl-linux-readelf
| checking whether we are using the GNU C++ compiler... no
| checking whether aarch64-fsl-linux-g++ --sysroot=/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot accepts -g... no
| checking whether aarch64-fsl-linux-g++ --sysroot=/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot can link programs... no
| checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips nios2 powerpc s390 sh sparc tile x86_64
| configure: running configure fragment for add-on libidn
| checking for -fstack-protector... yes
| checking for -fstack-protector-strong... yes
| checking for -fstack-protector-all... yes
| checking for assembler and linker STT_GNU_IFUNC support... no
| checking for gcc attribute ifunc support... no
| checking sysdep dirs... sysdeps/unix/sysv/linux/aarch64 sysdeps/aarch64/nptl sysdeps/unix/sysv/linux/generic sysdeps/unix/sysv/linux/wordsize-64 sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix sysdeps/posix sysdeps/aarch64/fpu sysdeps/aarch64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-128 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/aarch64/soft-fp sysdeps/ieee754 sysdeps/generic
| checking for a BSD-compatible install... /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/hosttools/install -c
| checking whether ln -s works... yes
| checking whether /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/as is GNU as... yes
| checking whether /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/ld is GNU ld... no
| checking for /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/as... /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/as
| checking version of /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/as... 2.29.1.20170915, ok
| /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/ld: /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6: version `GLIBC_2.27' not found (required by /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/ld)
| checking for /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/ld... /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/ld
| checking version of /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux.gcc-cross-initial-aarch64/../../libexec/aarch64-fsl-linux.gcc-cross-initial-aarch64/gcc/aarch64-fsl-linux/6.3.1/ld... v. ?.??, bad
| checking for gnumake... make
| checking version of make... 4.1, ok
| checking for gnumsgfmt... no
| checking for gmsgfmt... no
| checking for msgfmt... no
| checking for makeinfo... makeinfo
| checking version of makeinfo... 6.5, ok
| checking for sed... sed
| checking version of sed... 4.4, ok
| checking for gawk... gawk
| checking version of gawk... 4.1.4, ok
| checking if aarch64-fsl-linux-gcc --sysroot=/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot is sufficient to build libc... yes
| checking for aarch64-fsl-linux-nm... aarch64-fsl-linux-nm
| checking for python3... python3
| configure: error:
| *** These critical programs are missing or too old: GNU ld
| *** Check the INSTALL file for required versions.
| WARNING: /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/temp/run.do_configure.648:1 exit 1 from '$cfgscript --host=aarch64-fsl-linux --build=x86_64-linux --prefix=/usr --without-cvs --disable-sanity-checks --with-headers=/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/recipe-sysroot/usr/include --enable-hacker-mode --enable-addons'
| ERROR: Function failed: do_configure (log file is located at /home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/build_s32v234evb/tmp/work/aarch64-fsl-linux/glibc-initial/2.26-r0/temp/log.do_configure.648)
ERROR: Task (/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/sources/poky/meta/recipes-core/glibc/glibc-initial_2.26.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 282 tasks of which 280 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/leon/work/S32V/S32V234EVB/yocto-bsp19.0/sources/poky/meta/recipes-core/glibc/glibc-initial_2.26.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
----------------------------------------------------------------------------------------------------------------------------------------
The log said:
'| *** These critical programs are missing or too old: GNU ld
| *** Check the INSTALL file for required versions.'
Which INSTALL file should I check?
Do anybody know how to fix the issue?
We do not build the linux image for NXP Vision Toolbox for Matlab. Instead we use the one that is shipped with the VSDK 1.2.0.
Kushal Shah can you help here?
Hi Kushal Shah, As I didn't find appropriate type, so I selected ' NXP Model-Based Design Tools for VISION'.