Legato Yocto 15.05.0.Beta Source Compilation Error


#1

Hello,
I’m trying to build v15.05 legato distro and getting following errors:

[code]nmkekrop@ubuntu:~/yocto$ make
git clone git://git.yoctoproject.org/poky
Cloning into ‘poky’…
remote: Counting objects: 278089, done.
remote: Compressing objects: 100% (68800/68800), done.
remote: Total 278089 (delta 204414), reused 277402 (delta 203754)
Receiving objects: 100% (278089/278089), 112.24 MiB | 746 KiB/s, done.
Resolving deltas: 100% (204414/204414), done.
cd poky && git checkout refs/tags/daisy-11.0.2
Note: checking out ‘refs/tags/daisy-11.0.2’.

You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at e3dd621… dev-manual: Updated the “Making Images More Secure” section.
git clone git://git.openembedded.org/meta-openembedded
Cloning into ‘meta-openembedded’…
remote: Counting objects: 49531, done.
remote: Compressing objects: 100% (17686/17686), done.
remote: Total 49531 (delta 29641), reused 49365 (delta 29511)
Receiving objects: 100% (49531/49531), 21.66 MiB | 747 KiB/s, done.
Resolving deltas: 100% (29641/29641), done.
cd meta-openembedded && git checkout 8e6f6e49c99a12a0382e48451f37adac0181362f
Note: checking out ‘8e6f6e49c99a12a0382e48451f37adac0181362f’.

You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 8e6f6e4… libmikmod: Adjust SRC_URI
"meta-swi-extras/build.sh" -p poky/ -o meta-openembedded/ -l meta-swi -x “kernel” -j 9 -t 9 -m swi-mdm9x15 -b build_bin -q -g
Poky dir: /home/nmkekrop/yocto/poky
OE meta: /home/nmkekrop/yocto/meta-openembedded
SWI meta dir: /home/nmkekrop/yocto/meta-swi
Linux repo dir: /home/nmkekrop/yocto/kernel
Number of make threads 9
Number of bitbake tasks 9
SWI machine: swi-mdm9x15
Build dir: /home/nmkekrop/yocto/build_bin
Enable Qualcomm Proprietary bin
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to use a
different MACHINE (target hardware) or enable parallel build options to take
advantage of multiple cores for example. See the file for more information as
common configuration options are commented.

The Yocto Project has extensive documentation about OE including a reference manual
which can be found at:
http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
http://www.openembedded.org/

You had no conf/bblayers.conf file. The configuration file has been created for
you with some default values. To add additional metadata layers into your
configuration please add entries to this file.

The Yocto Project has extensive documentation about OE including a reference manual
which can be found at:
http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
http://www.openembedded.org/

Shell environment set up for builds.

You can now run 'bitbake ’

Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
adt-installer
meta-ide-support

You can also run generated qemu images with a command like ‘runqemu qemux86’

  • layer: meta-swi-mdm9x15
  • layer: meta-swi
  • layer: meta-oe
  • layer: meta-networking
  • layer: meta-swi-bin
  • layer: meta-swi-extras
    Build image of minimal rootfs (for swi-mdm9x15).
    WARNING: Use of PRINC 1 was detected in the recipe /home/nmkekrop/yocto/poky/meta/recipes-bsp/formfactor/formfactor_0.0.bb (or one of its .bbappends)
    Use of PRINC is deprecated. The PR server should be used to automatically increment the PR. See: https://wiki.yoctoproject.org/wiki/PR_Service.
    Parsing recipes: 100% |#########################################| Time: 00:02:09
    Parsing of 1453 .bb files complete (0 cached, 1453 parsed). 1889 targets, 71 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.22.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-12.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "swi-mdm9x15"
DISTRO = "poky-swi-ext"
DISTRO_VERSION = "1.6.2"
TUNE_FEATURES = "armv7a vfp neon"
TARGET_FPU = "vfp-neon"
meta
meta-yocto
meta-yocto-bsp = "(nobranch):e3dd621197548b4cf64988e757e9bc926082db73"
meta-networking
meta-oe = "(nobranch):8e6f6e49c99a12a0382e48451f37adac0181362f"
meta-swi
meta-swi-mdm9x15 = "master:be0b8b1d84a3f8c9d7df2bc2c6d1a1d61cd8f08d"
meta-swi-extras
meta-swi-bin = “master:96623a548fbfe2cf5f7534bcb23b6ada32098a0e”

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Checksum failure encountered with download of http://downloads.sourceforge.net/opencore-amr/vo-amrwbenc-0.1.3.tar.gz - will attempt other sources if available
WARNING: Renaming /home/nmkekrop/yocto/build_bin/downloads/vo-amrwbenc-0.1.3.tar.gz to /home/nmkekrop/yocto/build_bin/downloads/vo-amrwbenc-0.1.3.tar.gz_bad-checksum_0103b909e19ca9c6497a7ae696c16480
WARNING: Checksum failure encountered with download of http://downloads.sourceforge.net/opencore-amr/opencore-amr-0.1.3.tar.gz - will attempt other sources if available
WARNING: Renaming /home/nmkekrop/yocto/build_bin/downloads/opencore-amr-0.1.3.tar.gz to /home/nmkekrop/yocto/build_bin/downloads/opencore-amr-0.1.3.tar.gz_bad-checksum_0103b909e19ca9c6497a7ae696c16480
WARNING: Failed to fetch URL http://procps.sourceforge.net/procps-3.2.8.tar.gz, attempting MIRRORS if available
ERROR: Fetcher failure for URL: ‘http://downloads.sourceforge.net/opencore-amr/vo-amrwbenc-0.1.3.tar.gz’. Checksum mismatch!
File: ‘/home/nmkekrop/yocto/build_bin/downloads/vo-amrwbenc-0.1.3.tar.gz’ has md5 checksum 0103b909e19ca9c6497a7ae696c16480 when f63bb92bde0b1583cb3cb344c12922e0 was expected
File: ‘/home/nmkekrop/yocto/build_bin/downloads/vo-amrwbenc-0.1.3.tar.gz’ has sha256 checksum 818a4b8bbcb50878a8b1b9f71b4274d242ab46bf860c74676e98dec1d0248821 when 5652b391e0f0e296417b841b02987d3fd33e6c0af342c69542cbb016a71d9d4e was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "0103b909e19ca9c6497a7ae696c16480"
SRC_URI[sha256sum] = "818a4b8bbcb50878a8b1b9f71b4274d242ab46bf860c74676e98dec1d0248821"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: ‘http://downloads.sourceforge.net/opencore-amr/vo-amrwbenc-0.1.3.tar.gz’. Unable to fetch URL from any source.
ERROR: Fetcher failure for URL: ‘http://downloads.sourceforge.net/opencore-amr/opencore-amr-0.1.3.tar.gz’. Checksum mismatch!
File: ‘/home/nmkekrop/yocto/build_bin/downloads/opencore-amr-0.1.3.tar.gz’ has md5 checksum 0103b909e19ca9c6497a7ae696c16480 when 09d2c5dfb43a9f6e9fec8b1ae678e725 was expected
File: ‘/home/nmkekrop/yocto/build_bin/downloads/opencore-amr-0.1.3.tar.gz’ has sha256 checksum 818a4b8bbcb50878a8b1b9f71b4274d242ab46bf860c74676e98dec1d0248821 when 106bf811c1f36444d7671d8fd2589f8b2e0cca58a2c764da62ffc4a070595385 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "0103b909e19ca9c6497a7ae696c16480"
SRC_URI[sha256sum] = "818a4b8bbcb50878a8b1b9f71b4274d242ab46bf860c74676e98dec1d0248821"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: ‘http://downloads.sourceforge.net/opencore-amr/opencore-amr-0.1.3.tar.gz’. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libopencore-amr/0.1.3-r0/temp/log.do_fetch.12505
ERROR: Logfile of failure stored in: /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libvo-amrwbenc/0.1.3-r0/temp/log.do_fetch.12084
ERROR: Task 413 (/home/nmkekrop/yocto/meta-swi/common/recipes-multimedia/libvo-amrwbenc/libvo-amrwbenc_0.1.3.bb, do_fetch) failed with exit code '1’
ERROR: Task 365 (/home/nmkekrop/yocto/meta-swi/common/recipes-multimedia/libopencore-amr/libopencore-amr_0.1.3.bb, do_fetch) failed with exit code '1’
NOTE: Tasks Summary: Attempted 633 tasks of which 0 didn’t need to be rerun and 2 failed.
Waiting for 0 running tasks to finish:

Summary: 2 tasks failed:
/home/nmkekrop/yocto/meta-swi/common/recipes-multimedia/libvo-amrwbenc/libvo-amrwbenc_0.1.3.bb, do_fetch
/home/nmkekrop/yocto/meta-swi/common/recipes-multimedia/libopencore-amr/libopencore-amr_0.1.3.bb, do_fetch
Summary: There were 6 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
make: *** [image_bin] Error 1
[/code]

I’m wondering if configuration DISTRO_VERSION = “1.6.2” is correct - the documentation says that only Yocto 1.6.1 was supported. Could it be a reason of the checksum mismatch ?

Could you help?

Efraim


#2

Hi,

It’s look like an issue with the SourceForge server.

I don’t have this issue on my side. Maybe it was a temporary issue with SourceForge?

Can you try again?

If it’s still failing then try to do a manual download of these 2 “.tar.gz” files from SourceForge and put them into the folder “meta-swi-extras/downloads”.

Jay


#3

Jay,

Thanks for the response. I have tried to re-build and it looks better but still failing when trying to build AR7 target.

[code]Build Configuration:
BB_VERSION = "1.22.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-12.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "swi-mdm9x15"
DISTRO = "poky-swi-ext"
DISTRO_VERSION = "1.6.2"
TUNE_FEATURES = "armv7a vfp neon"
TARGET_FPU = "vfp-neon"
meta
meta-yocto
meta-yocto-bsp = "(nobranch):e3dd621197548b4cf64988e757e9bc926082db73"
meta-networking
meta-oe = "(nobranch):8e6f6e49c99a12a0382e48451f37adac0181362f"
meta-swi
meta-swi-mdm9x15 = "master:be0b8b1d84a3f8c9d7df2bc2c6d1a1d61cd8f08d"
meta-swi-extras
meta-swi-bin = “master:96623a548fbfe2cf5f7534bcb23b6ada32098a0e”

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel config, see log.do_kernel_configcheck for details
ERROR: Function failed: do_compile (log file is located at /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.1850)
ERROR: Logfile of failure stored in: /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.1850
Log data follows:
| DEBUG: Executing shell function do_compile
| About to build for targets ar7 ar86 wp7 wp85
| Compiling legato-af for ar7
| /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do_compile.1850: 129: /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do_compile.1850: Bad substitution
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/nmkekrop/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.1850)
ERROR: Task 1292 (/home/nmkekrop/yocto/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb, do_compile) failed with exit code '1’
NOTE: Tasks Summary: Attempted 1604 tasks of which 6 didn’t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/home/nmkekrop/yocto/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [image_bin] Error 1
[/code]

Where should I go from there? Is there any workaround?

Efraim