AnsweredAssumed Answered

Why does the 1043ARDB fsl-image-full build fail?

Question asked by Tracy Smith on Mar 15, 2016
Latest reply on Mar 17, 2016 by Tracy Smith

Followed the recommendation provided by Pavel, but trying to build either minimum or full I see the same error as the other response with VlanConfig.c.  Can you try the SOURCE shipped with the 1041A and reconfirm it still works on 14.04.1-Ubuntu? There is likely something broken, or a configuration issue that isn't documented sufficiently.

 

| make: *** [/home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/Build/LS1043aRdb/RELEASE_GCC48/AARCH64/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe/DEBUG/VlanConfig.c] Aborted (core dumped)

|

|

| build.py...

|  : error 7000: Failed to execute command

|     make tbuild [/home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/Build/LS1043aRdb/RELEASE_GCC48/AARCH64/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe]

|

|

| build.py...

|  : error F002: Failed to build module

|     /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf [AARCH64, GCC48, RELEASE]

|

| - Failed -

| Build end time: 07:28:47, Mar.16 2016

| Build total time: 00:02:05

|

| WARNING: /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/run.do_compile.21041:1 exit 1 from

|   build -p /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/${UEFI_PATH}Pkg/${board}.dsc -a $ARCH -t $TARGET_TOOLS -b RELEASE

| ERROR: Function failed: do_compile (log file is located at /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/log.do_compile.21041)

ERROR: Task 95 (/home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/meta-fsl-networking/recipes-bsp/uefi/uefi-ls1043a_git.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1219 tasks of which 14 didn't need to be rerun and 1 failed.

 

 

Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release fails to build for fsl-image-full.  Building VlanConfig.c Aborted (core dumped).

 

$ uname -a

Linux linuxadmin-Latitude-E7440 3.19.0-51-generic #58~14.04.1-Ubuntu SMP Fri Feb 26 22:02:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 

After installing the non-cache source for Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release I do the following build procedure.

 

Build Procedure taken from the following community page and the LS1043A reference Manual. How to compile an image for LS1043A

  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

                Message:  /bin/sh -> dash

    2. 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'

    3. command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

    4. cd <yocto_install_path>

    5. ./poky/scripts/host-prepare.sh

 

Then I follow the Freescale Linux LS1043A SDK v0.5 Reference Manual AWRIQSDKLS1 Rev A, 12/2015.

 

Note I do not install nor use Install LS1043A SDK v0.5 AARCH64 BE CACHE nor LS1043A SDK v0.5 AARCH64 CACHE. I only use LS1043A SDK v0.5 SOURCE and attempt a full build non-cache build.

 

$ wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz

$ tar -xf Python-2.7.6.tar.xz

$ cd Python-2.7.6

$ ./configure --prefix=/opt/python-2.7.6

$ make

$ sudo make install

Please run below export command to ensure python 2.7.x is used for Yocto build.

$ export PATH=/opt/python-2.7.6/bin:$PATH

$ sudo apt-get install sed wget subversion git-core coreutils unzip

texi2html texinfo libsdl1.2-dev docbook-utils fop gawk python-pysqlite2

diffstat make gcc build-essential xsltproc g++ desktop-file-utils

chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool

xterm libxml-parser-perl vim-common xz-utils cvs tofrodos

libstring-crc32-perl ubuntu-minimal ubuntu-standard patch

libbonobo2-common libncurses5-dev

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 ia32-libs lib32ncurses5-dev (some of these libraries are no longer available)

$ source ./poky/fsl-setup-poky -m ls1043ardb

$ bitbake fsl-image-full

 

Here is the yocto build error I receive:

 

make: *** [/home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/Build/LS1043aRdb/RELEASE_GCC48/AARCH64/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe/DEBUG/VlanConfig.c] Aborted (core dumped)

|

|

| build.py...

|  : error 7000: Failed to execute command

|     make tbuild [/home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/Build/LS1043aRdb/RELEASE_GCC48/AARCH64/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe]

|

|

| build.py...

|  : error F002: Failed to build module

|     /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf [AARCH64, GCC48, RELEASE]

|

| - Failed -

| Build end time: 21:34:50, Mar.14 2016

| Build total time: 00:00:16

|

| WARNING: /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/run.do_compile.10176:1 exit 1 from

|   build -p /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/git/${UEFI_PATH}Pkg/${board}.dsc -a $ARCH -t $TARGET_TOOLS -b RELEASE

| ERROR: Function failed: do_compile (log file is located at /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/log.do_compile.10176)

ERROR: Task 95 (/home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/meta-fsl-networking/recipes-bsp/uefi/uefi-ls1043a_git.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 3374 tasks of which 3348 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

 

Summary: 1 task failed:

  /home/tlsmith/sb/src/Linux-LS1043A-SDK-V0.5-20151223-yocto/meta-fsl-networking/recipes-bsp/uefi/uefi-ls1043a_git.bb, do_compile

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

 

 

Why is there a  core dump?  Is there a library dependency, and if so, which library?

Universal/Network/VlanConfigDxe/VlanConfigDxe/DEBUG/VlanConfig.c] Aborted (core dumped)

Outcomes