Hi,
I did the above build using the 0.5 source toolchain, all but one task ran successfully, but one task continues to fail. The log is below. Any ideas on what is wrong would be greatly appreciated.
Thanks!!!!
Don
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile (log file is located at /home/don/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/log.do_compile.5226)
ERROR: Logfile of failure stored in: /home/don/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/log.do_compile.5226
Log data follows:
| DEBUG: Executing shell function do_compile
| /home/don/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/run.do_compile.5226: 101: /home/don/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/run.do_compile.5226: source: not found
| WARNING: exit code 127 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/don/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release/tmp/work/ls1043ardb-fsl-linux/uefi-ls1043a/git-r0/temp/log.do_compile.5226)
ERROR: Task 95 (/home/don/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 2732 tasks of which 2729 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
/home/don/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.
don@don-LTJ843:~/Linux-LS1043A-SDK-V0.5-20151223-yocto/build_ls1043ardb_release$ bitbake fsl-image-x11
Solved! Go to Solution.
Hello Don Berkowitz,
There is issue of UEFI build in dash environment. You can change the default shell to bash and try again. I can build succesfully on Ubuntu 14.04 with V03. Below are my steps:
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jul 2 2014 /bin/sh -> dash
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ sudo dpkg-reconfigure dash
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'
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Aug 17 16:07 /bin/sh -> bash
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ bitbake fsl-image-kernelitb
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 2010 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.22.0"
BUILD_SYS = "i686-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "ls1043ardb"
DISTRO = "fsl-networking"
DISTRO_VERSION = "1.6.1"
TUNE_FEATURES = "aarch64"
meta
meta-yocto
meta-yocto-bsp = "(detachedfromee91d21):error:"
meta-fsl-arm = "(detachedfrom9400922):error:"
meta-fsl-networking = "(detachedfromd489088):error:"
meta-fsl-toolchain
meta-virtualization = "<unknown>:<unknown>"
meta-oe
meta-networking
meta-perl
toolchain-layer = "(detachedfrome0bb767):<unknown>"
meta-linaro-toolchain = "(detachedfrom6452ef4):error:"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2424 tasks of which 2148 didn't need to be rerun and all succeeded.
Have a great day,
Lunmin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Don Berkowitz,
There is issue of UEFI build in dash environment. You can change the default shell to bash and try again. I can build succesfully on Ubuntu 14.04 with V03. Below are my steps:
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jul 2 2014 /bin/sh -> dash
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ sudo dpkg-reconfigure dash
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'
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Aug 17 16:07 /bin/sh -> bash
freescale@freescale-sdk:~/Linux-LS1043A-SDK-V0.3-20150729-yocto/build_ls1043ardb_release$ bitbake fsl-image-kernelitb
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 2010 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.22.0"
BUILD_SYS = "i686-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "ls1043ardb"
DISTRO = "fsl-networking"
DISTRO_VERSION = "1.6.1"
TUNE_FEATURES = "aarch64"
meta
meta-yocto
meta-yocto-bsp = "(detachedfromee91d21):error:"
meta-fsl-arm = "(detachedfrom9400922):error:"
meta-fsl-networking = "(detachedfromd489088):error:"
meta-fsl-toolchain
meta-virtualization = "<unknown>:<unknown>"
meta-oe
meta-networking
meta-perl
toolchain-layer = "(detachedfrome0bb767):<unknown>"
meta-linaro-toolchain = "(detachedfrom6452ef4):error:"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2424 tasks of which 2148 didn't need to be rerun and all succeeded.
Have a great day,
Lunmin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I would also add that this error is easily reproduced on a freshly installed Xubuntu 14.04, while the CentOS 7.2 builds the image just fine.
$ uname -a
Linux yacht 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
P.S.
After some investigation, the solution appears to be very simple. It appears that the ubuntu links /bin/sh to /bin/dash shell. As the build scripts rely on that the /bin/sh is actually /bin/bash, they use source directive extensively. For dash shell that does not work.
So to resolve the issue:
$ sudo rm /bin/sh
$ sudo ln -s /bin/bash /bin/sh