Dear I.MX Community
I am doing the Yocto build setup on NXP recommended Ubuntu version ie., 14.04 for NXp's I.mX6ULL EVK, but I am seeing some compilation issues as below, could you please let me know why I am seeing and do the needful in resolving the below issue
Ubuntu Version
===========
test@test-ThinkCentre-M72e:~/fsl-release-bsp$ uname -a
Linux test-ThinkCentre-M72e 3.13.0-143-generic #192-Ubuntu SMP Tue Feb 27 10:45:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
test@test-ThinkCentre-M72e:~/fsl-release-bsp$
Error Logs:
========
DISTRO=fsl-imx-x11 MACHINE=imx6ull14x14evk source fsl-setup-release.sh -b build-x11
test@test-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake fsl-image-validation-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:01
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ull14x14evk"
DISTRO = "fsl-imx-x11"
DISTRO_VERSION = "4.9.11-1.0.0"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe
meta-multimedia = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp
meta-sdk = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5 = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"
Initialising tasks: 100% |######################################################################################################| Time: 0:00:21
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: util-linux-native-2.28.1-r0 do_compile: oe_runmake failed
ERROR: util-linux-native-2.28.1-r0 do_compile: Function failed: do_compile (log file is located at /home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/temp/log.do_compile.28393)
ERROR: Logfile of failure stored in: /home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/temp/log.do_compile.28393
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 ARCH=x86_64 CPU= CPUOPT= OPT=-isystem/home/test/fsl-release-bsp/build-x11/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe
| ERROR: oe_runmake failed
| make all-recursive
| make[1]: Entering directory `/home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/build'
| Making all in po
| make[2]: Entering directory `/home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/build/po'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/build/po'
| make[2]: Entering directory `/home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/build'
| gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../util-linux-2.28.1 -include config.h -I../util-linux-2.28.1/include -DLOCALEDIR=\"/home/test/fsl-release-bsp/build-x11/tmp/sysroots/x86_64-linux/usr/share/locale\" -D_PATH_LOCALSTATEDIR=\"/home/test/fsl-release-bsp/build-x11/tmp/sysroots/x86_64-linux/var\" -isystem/home/test/fsl-release-bsp/build-x11/tmp/sysroots/x86_64-linux/usr/include -fsigned-char -fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wimplicit-function-declaration -isystem/home/test/fsl-release-bsp/build-x11/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c -o schedutils/chrt.o ../util-linux-2.28.1/schedutils/chrt.c
| In file included from /usr/include/x86_64-linux-gnu/sys/syscall.h:31:0,
| from ../util-linux-2.28.1/schedutils/chrt.c:63:
| ../util-linux-2.28.1/schedutils/chrt.c: In function ‘sched_setattr’:
| ../util-linux-2.28.1/schedutils/chrt.c:88:17: error: ‘__NR_sched_setattr’ undeclared (first use in this function)
| return syscall(SYS_sched_setattr, pid, attr, flags);
| ^
| ../util-linux-2.28.1/schedutils/chrt.c:88:17: note: each undeclared identifier is reported only once for each function it appears in
| ../util-linux-2.28.1/schedutils/chrt.c: In function ‘sched_getattr’:
| ../util-linux-2.28.1/schedutils/chrt.c:93:17: error: ‘__NR_sched_getattr’ undeclared (first use in this function)
| return syscall(SYS_sched_getattr, pid, attr, size, flags);
| ^
| ../util-linux-2.28.1/schedutils/chrt.c: In function ‘sched_setattr’:
| ../util-linux-2.28.1/schedutils/chrt.c:89:1: warning: control reaches end of non-void function [-Wreturn-type]
| }
| ^
| ../util-linux-2.28.1/schedutils/chrt.c: In function ‘sched_getattr’:
| ../util-linux-2.28.1/schedutils/chrt.c:94:1: warning: control reaches end of non-void function [-Wreturn-type]
| }
| ^
| make[2]: *** [schedutils/chrt.o] Error 1
| make[2]: Leaving directory `/home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/build'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/build'
| make: *** [all] Error 2
| ERROR: Function failed: do_compile (log file is located at /home/test/fsl-release-bsp/build-x11/tmp/work/x86_64-linux/util-linux-native/2.28.1-r0/temp/log.do_compile.28393)
ERROR: Task (virtual:native:/home/test/fsl-release-bsp/sources/poky/meta/recipes-core/util-linux/util-linux_2.28.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 558 tasks of which 553 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/home/test/fsl-release-bsp/sources/poky/meta/recipes-core/util-linux/util-linux_2.28.1.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Kindly do the needful in resolving the above issue as early as possible, as I am stuck with this issue from past week
Many Thanks in advance
Awaiting for your replies
已解决! 转到解答。
Dear Gusarambula,
The issue got resolved after installing the below additional packages in a freshly installed Ubuntu 14.04 machine, pls update the i.mx linux yocto user's guide the same
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install g++-4.8-multilib sudo apt-get install chrpath curl dosfstools gawk g++-multilib gcc-multilib lib32z1-dev libcrypto++9:i386 libcrypto++-dev:i386 liblzo2-dev:i386 lzop libsdl1.2-dev libstdc++-4.8-dev:i386 libusb-1.0-0:i386 libusb-1.0-0-dev:i386 texinfo uuid-dev:i386 cd /usr/lib; sudo ln -s libcrypto++.so.9.0.0 libcryptopp.so.6
Thanks,
Sri
Dear Gusarambula,
The issue got resolved after installing the below additional packages in a freshly installed Ubuntu 14.04 machine, pls update the i.mx linux yocto user's guide the same
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install g++-4.8-multilib sudo apt-get install chrpath curl dosfstools gawk g++-multilib gcc-multilib lib32z1-dev libcrypto++9:i386 libcrypto++-dev:i386 liblzo2-dev:i386 lzop libsdl1.2-dev libstdc++-4.8-dev:i386 libusb-1.0-0:i386 libusb-1.0-0-dev:i386 texinfo uuid-dev:i386 cd /usr/lib; sudo ln -s libcrypto++.so.9.0.0 libcryptopp.so.6
Thanks,
Sri