# Legato Yocto 15.10 compilation error

**URL:** <https://forum.legato.io/t/legato-yocto-15-10-compilation-error/2005>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [November 19, 2015, 3:26pm UTC](https://forum.legato.io/t/legato-yocto-15-10-compilation-error/2005 "2015-11-19T15:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddrews](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@ddrews](https://forum.legato.io/u/ddrews)\
**Post date:** [November 19, 2015, 3:26pm UTC](https://forum.legato.io/t/legato-yocto-15-10-compilation-error/2005/1 "2015-11-19T15:26:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [November 20, 2015, 2:00pm UTC](https://forum.legato.io/t/legato-yocto-15-10-compilation-error/2005/2 "2015-11-20T14:00:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ddrews](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@ddrews](https://forum.legato.io/u/ddrews)\
**Post date:** [November 23, 2015, 9:19am UTC](https://forum.legato.io/t/legato-yocto-15-10-compilation-error/2005/3 "2015-11-23T09:19:12Z")

</div>

Hello,

yes that works. Many thanks!

Best regards
