Legato Yocto 15.10 compilation error

Hello all,

I downloaded the latest version of the linux ditribution (Legato-Dist-Source-mdm9x15-SWI9X15Y_07.04.06.00.tar.bz2) and tried to compile that version initially.

My host is a Ubuntu 12.04.5 native linux system and from my point of view the tool environment matched to the version I want to compile.

Unfortunately I get an error:
| – Configuring incomplete, errors occurred!
| See also “/home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeOutput.log”.
| See also “/home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeError.log”.
| make: *** [build/wp7/Makefile] Error 1
| WARNING: /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do_compile.26876:1 exit 2 from
| make $LEGATO_TARGET
| ERROR: Function failed: do_compile (log file is located at /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.26876)
ERROR: Task 1447 (/home/user/swi/yocto/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb, do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 1339 tasks of which 1270 didn’t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

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

Determining if the function _strtoi64 exists failed with the following output:
Change Dir: /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec2711702980/fast”
make[1]: Entering directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp' make -f CMakeFiles/cmTryCompileExec2711702980.dir/build.make CMakeFiles/cmTryCompileExec2711702980.dir/build make[2]: Entering directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp’
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/cmake -E cmake_progress_report /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2711702980.dir/CheckFunctionExists.c.o
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/user/swi/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -fPIC -DCHECK_FUNCTION_EXISTS=_strtoi64 -o CMakeFiles/cmTryCompileExec2711702980.dir/CheckFunctionExists.c.o -c /home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2711702980
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2711702980.dir/link.txt --verbose=1
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/user/swi/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -fPIC -DCHECK_FUNCTION_EXISTS=_strtoi64 CMakeFiles/cmTryCompileExec2711702980.dir/CheckFunctionExists.c.o -o cmTryCompileExec2711702980 -rdynamic
CMakeFiles/cmTryCompileExec2711702980.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x14): undefined reference to _strtoi64’
make[2]: Leaving directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp' make[1]: Leaving directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp’
collect2: error: ld returned 1 exit status
make[2]: *** [cmTryCompileExec2711702980] Error 1
make[1]: *** [cmTryCompileExec2711702980/fast] Error 2

In the log file CMakeError.log the following information occur:

Determining if the function _snprintf exists failed with the following output:
Change Dir: /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make “cmTryCompileExec1826111171/fast”
make[1]: Entering directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp' make -f CMakeFiles/cmTryCompileExec1826111171.dir/build.make CMakeFiles/cmTryCompileExec1826111171.dir/build make[2]: Entering directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp’
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/cmake -E cmake_progress_report /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1826111171.dir/CheckFunctionExists.c.o
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/user/swi/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -fPIC -DCHECK_FUNCTION_EXISTS=_snprintf -o CMakeFiles/cmTryCompileExec1826111171.dir/CheckFunctionExists.c.o -c /home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1826111171
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1826111171.dir/link.txt --verbose=1
/home/user/swi/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon --sysroot=/home/user/swi/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -fPIC -DCHECK_FUNCTION_EXISTS=_snprintf CMakeFiles/cmTryCompileExec1826111171.dir/CheckFunctionExists.c.o -o cmTryCompileExec1826111171 -rdynamic
CMakeFiles/cmTryCompileExec1826111171.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x14): undefined reference to _snprintf’
collect2: error: ld returned 1 exit status
make[2]: Leaving directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp' make[1]: Leaving directory /home/user/swi/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/wp7/CMakeFiles/CMakeTmp’
make[2]: *** [cmTryCompileExec1826111171] Error 1
make[1]: *** [cmTryCompileExec1826111171/fast] Error 2

Does anybody know what went wrong?

When I am compiling the version matching to the release 15.08 the yocto project is building.

Best regards

WP710x module is no more supported and must be removed from the build.

Edit the following file;
meta-swi/meta-swi-mdm9x15/conf/machine/swi-mdm9x15.conf
And remove “wp7” from the list of Legato targets:
LEGATO_ROOTFS_TARGETS ?= “ar7 ar86 wp85”

Then do “make clean” followed by “make” to rebuild everything.

Hello,

yes that works. Many thanks!

Best regards