AnsweredAssumed Answered

Error occurs when bitbake fsl-image-qt5 on Ubuntu 16.04

Question asked by tsung li wang on Nov 28, 2018
Latest reply on Nov 29, 2018 by tsung li wang

Hi Community,

I'm using yocto 2.4 to build rootfs.

I had install the essential package that mentioned in i.MX Yocto Project User's Guide.

 

But when I execute bitbake fsl-image-qt5, I would get a warning like below.

WARNING: Host distribution "Ubuntu-16.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.

Then compile will keep running until I met a new error like below.

| make[4]: Leaving directory `/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/git/nptl'
| make[3]: Leaving directory `/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/git/elf'
| arm-poky-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/sysroots/imx6qsabresd-tcbootstrap -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux-armhf.so.3 -B/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/csu/ -Wl,--version-script=/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/math -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/elf -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/dlfcn -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/nss -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/nis -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/rt -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/resolv -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/crypt -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/mathvec -L/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/nptl -Wl,-rpath-link=/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/math:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/elf:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/dlfcn:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/nss:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/nis:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/rt:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/resolv:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/crypt:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/mathvec:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/nptl -o /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/libc.so -T /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/shlib.lds /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/csu/abi-note.o /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/elf/soinit.os /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/libc_pic.os /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/elf/sofini.os /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/elf/interp.os /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/elf/ld.so -lgcc
| /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi.gcc-cross-initial-arm/gcc/arm-poky-linux-gnueabi/6.2.0/ld:/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/shlib.lds:156: syntax error
| collect2: error: ld returned 1 exit status
| make[2]: *** [/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/build-arm-poky-linux-gnueabi/libc.so] Error 1
| make[2]: Leaving directory `/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/git/elf'
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory `/mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/git'
| ERROR: oe_runmake failed
| make: *** [all] Error 2
| ERROR: Function failed: do_compile (log file is located at /mnt/raid121/victor/yocto2.4/build-wayland-q/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/glibc/2.24-r0/temp/log.do_compile.5975)
ERROR: Task (/mnt/raid121/victor/yocto2.4/sources/poky/meta/recipes-core/glibc/glibc_2.24.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2902 tasks of which 2899 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/mnt/raid121/victor/yocto2.4/sources/poky/meta/recipes-core/glibc/glibc_2.24.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I think the main cause is "shlib.lds:156: syntax error".

 

Did I miss anything?

How to fix this error?

 

Thanks in Advanced!

Outcomes