LS1043ARDB SDK2.0 build failed : qemu build failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1043ARDB SDK2.0 build failed : qemu build failed

2,326 Views
hawkin
Contributor II

I setup SDK2.0 by document from ISO, I run command <bitbake fsl-image-minimal> success , but when i run command <bitbake fsl-image-full> failed every time, log as fellow:

QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb$ bitbake fsl-image-kernelitb
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.
Loading cache: 100% |##################################################################################################################| ETA: 00:00:00
Loaded 3421 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "ls1043ardb"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-linaro-toolchain = "HEAD:10b71bed9cfe76baa22c72806ff814cf85c2f73b"

NOTE: Preparing RunQueue
NOTE: Checking sstate mirror object availability (for 539 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.1517)
ERROR: Logfile of failure stored in: /opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.1517
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
|
| ERROR: User requested feature sdl
| configure was not able to find it.
| Install SDL devel
|
| WARNING: /opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/run.do_configure.1517:1 exit 1 from
| /opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/qemu-2.4.0/configure --prefix=/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/x86_64-linux/usr --sysconfdir=/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/x86_64-linux/etc --libexecdir=/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/x86_64-linux/usr/lib/qemu --localstatedir=/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/x86_64-linux/var --disable-strip --target-list=mips64-softmmu,arm-linux-user,arm-softmmu,aarch64-linux-user,aarch64-softmmu,i386-linux-user,i386-softmmu,mips-linux-user,mips-softmmu,mipsel-linux-user,mipsel-softmmu,ppc-linux-user,ppc-softmmu,x86_64-linux-user,x86_64-softmmu,ppc64-linux-user,ppc64-softmmu --disable-werror --disable-bluez --disable-libiscsi --with-system-pixman --extra-cflags='-isystem/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe' --audio-drv-list=oss,alsa --disable-linux-aio --disable-bzip2 --disable-curses --enable-fdt --disable-opengl --disable-gnutls --disable-gtk --disable-vte --disable-cap-ng --disable-curl --disable-libusb --disable-lzo --disable-smartcard-nss --disable-numa --enable-sdl --disable-libssh2 --enable-uuid --disable-virtfs --disable-vnc-jpeg --disable-vnc-png --disable-vnc-sasl --disable-vnc-tls --disable-xen --disable-xfsctl $KVMOPTS
| ERROR: Function failed: do_configure (log file is located at /opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.1517)
ERROR: Task 2685 (virtual:native:/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/qemu/qemu_2.4.0.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1156 tasks of which 1148 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
virtual:native:/opt/hazhang/install/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/qemu/qemu_2.4.0.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

What should i do?

Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

1,099 Views
Nguyen22
Contributor I

Sulution:

Add command to file: build<machine>/conf/local.conf

 BUILD_LDFLAGS_prepend_pn-qemu-native = "-Wl,-rpath-link,/lib/x86_64-linux-gnu " 

0 Kudos
Reply

1,399 Views
hawkin
Contributor II

@Pavel Chubakov Thanks Pavel, SDK build success by your method!

0 Kudos
Reply

1,399 Views
Pavel
NXP Employee
NXP Employee

We usually use the following command sequence for SDK installing under Ubuntu 14.04 and Ubuntu 16.04:

 

  1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. install SDK cache:
  2. install SDK source
  3. cd <sdk-install-dir>.
  4. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. bitbake fsl-image-minimal
  2. bitbake fsl-image-full

 
Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,399 Views
sandratrujillog
Contributor III

I have a question, What is SDK cache? and How I can install it?  You mean the SDK-V2.0-1703?

0 Kudos
Reply