Problem with make red_wp85 following linux guide


#1

I have followed this guide without trouble until step 5.1.4 at page 23.
After running make red_wp the command starts working as it should but ends with an error. Here is the end of what the command shows on the terminal:

    [100%] Linking C executable bin/test_memory_funcs
    /usr/bin/cmake -E cmake_link_script CMakeFiles/test_memory_funcs.dir/link.txt --verbose=0
    make[5]: Leaving directory '/home/marco/legato_framework/legato/build/wp85/framework/libjansson'
    [100%] Built target test_memory_funcs
    make[4]: Leaving directory '/home/marco/legato_framework/legato/build/wp85/framework/libjansson'
    /usr/bin/cmake -E cmake_progress_start /home/marco/legato_framework/legato/build/wp85/framework/libjansson/CMakeFiles 0
    make[3]: Leaving directory '/home/marco/legato_framework/legato/build/wp85/framework/libjansson'
    cp /home/marco/legato_framework/legato/build/wp85/framework/libjansson/lib/libjansson.so /home/marco/legato_framework/legato/build/wp85/framework/lib/libjansson.so
    make -f Makefile.targetTools DISABLE_SMACK=0
    make[3]: Entering directory '/home/marco/legato_framework/legato'
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/config /home/marco/legato_framework/legato/framework/tools/target/linux/config \
    		-i /home/marco/legato_framework/legato/build/wp85/framework/libjansson/include/ \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		--ldflags=-L/home/marco/legato_framework/legato/build/wp85/framework/lib \
    		--ldflags=-ljansson \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/config -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [10/10] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/log \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/logTool/logTool.c \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		-i /home/marco/legato_framework/legato/framework/daemons/linux/logDaemon \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/log -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [3/3] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/sdir \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/sdirTool \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
    		-i /home/marco/legato_framework/legato/framework/daemons/linux/serviceDirectory \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/sdir -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [7/7] Linking C executable
    ln -sf debugCfg /home/marco/legato_framework/legato/build/wp85/framework/bin/gdbCfg
    ln -sf debugCfg /home/marco/legato_framework/legato/build/wp85/framework/bin/straceCfg
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/inspect \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/inspect/inspect.c \
    		--cflags=-DLE_SVCDIR_SERVER_SOCKET_NAME="/tmp/legato/serviceDirectoryServer" \
    		--cflags=-DLE_SVCDIR_CLIENT_SOCKET_NAME="/tmp/legato/serviceDirectoryClient" \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
    		-i /home/marco/legato_framework/legato/framework/daemons/linux \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/inspect -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [3/3] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/xattr \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/xattr/xattr.c \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/xattr -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [3/3] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/_appStopClient \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/appStopClient/appStopClient.c \
    		--cflags=-DLE_RUNTIME_DIR='"/tmp/legato/"' \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/appStopClient -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [3/3] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/app \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/appCtrl \
    		-i /home/marco/legato_framework/legato/interfaces/supervisor \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/app -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [16/16] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/update \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/update \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/update -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [12/12] Linking C executable
    mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/sbtrace \
    		/home/marco/legato_framework/legato/framework/tools/target/linux/sbtrace \
    		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
    		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/sbtrace -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [8/8] Linking C executable
    cp -u -P --preserve=all framework/tools/target/linux/bin/configEcm framework/tools/target/linux/bin/install-hook framework/tools/target/linux/bin/legato framework/tools/target/linux/bin/setNet framework/tools/target/linux/bin/debugCfg framework/tools/target/linux/bin/start framework/tools/target/linux/bin/security-unpack framework/tools/target/linux/bin/saveLogs /home/marco/legato_framework/legato/build/wp85/framework/bin
    mkapp /home/marco/legato_framework/legato/apps/tools/devMode.adef \
    		-i /home/marco/legato_framework/legato/framework/liblegato \
    		 -o /home/marco/legato_framework/legato/build/wp85/tools -w /home/marco/legato_framework/legato/build/wp85/apps/tools/devMode -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
    [19/19] Packaging app
    make[3]: Leaving directory '/home/marco/legato_framework/legato'
    # Computing MD5 hash for contents of framework bin and lib directories.
    md5=` ( find /home/marco/legato_framework/legato/build/wp85/framework/bin && \
    		find /home/marco/legato_framework/legato/build/wp85/framework/bin -type f | xargs cat && \
    		find /home/marco/legato_framework/legato/build/wp85/framework/bin -type l | xargs -r -n 1 readlink && \
    		find /home/marco/legato_framework/legato/build/wp85/framework/lib && \
    		find /home/marco/legato_framework/legato/build/wp85/framework/lib -type f | xargs cat && \
    		find /home/marco/legato_framework/legato/build/wp85/framework/lib -type l | xargs -r -n 1 readlink \
    	  ) | md5sum` && \
    md5=${md5%% *} && \
    echo "$md5" > /home/marco/legato_framework/legato/build/wp85/framework/md5
    make[2]: Leaving directory '/home/marco/legato_framework/legato'
    make[1]: Leaving directory '/home/marco/legato_framework/legato'
    TOOLCHAIN_DIR=/opt/swi/y17-ext-wp85/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi \
    TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi- \
    MANGOH_BOARD=RED \
    mksys -t wp85 --object-dir=build/red_wp85 --output-dir=build/update_files/red mangOH.sdef
    ** ERROR:
    /home/marco/mangOH/mangOH.sdef:85:15: error: Unrecognized section name 'componentSearch'.
    Makefile:68: recipe for target 'red_wp85' failed
    make: *** [red_wp85] Error 1

#2

Do you use the correct toolchain for your firmware ?

To be sure :

  • remove actual toolchain
    -> sudo rm -rf /opt/swi/*

  • download and install the toolchain for your firmware (sierra website)

  • after “make clean” and “make red_wp85”


#3

I am getting the same error. I have downloaded the 64-bit ToolChain from here. This is the output after doing make clean and make red_wp85

marco@marco-Inspiron-5567:~/mangOH$ make clean
rm -rf build
marco@marco-Inspiron-5567:~/mangOH$ make red_wp85
make -C /home/marco/legato_framework/legato framework_wp85
make[1]: Entering directory '/home/marco/legato_framework/legato'
Module: WiFi
********************* VERSION ********************
Legato WiFi version: 18.05.0
**************************************************
Module: Dualsys
make -f Makefile.hostTools
make[2]: Entering directory '/home/marco/legato_framework/legato'
Using ninja installed at: /usr/bin/ninja
ln -sf ../build/tools/mk bin/mk
ln -sf mk bin/mkcomp
ln -sf mk bin/mkexe
ln -sf mk bin/mkapp
ln -sf mk bin/mksys
ln -sf ../framework/tools/scripts/splitdebug ../framework/tools/scripts/instsys ../framework/tools/scripts/settime ../framework/tools/scripts/mkinfo ../framework/tools/scripts/legato-qemu ../framework/tools/scripts/stoplegato ../framework/tools/scripts/cextgenerator.py ../framework/tools/scripts/settz ../framework/tools/scripts/createsdk ../framework/tools/scripts/systoimg ../framework/tools/scripts/instlegato ../framework/tools/scripts/checkpa ../framework/tools/scripts/legato-install ../framework/tools/scripts/update-pack ../framework/tools/scripts/security-pack ../framework/tools/scripts/instapp ../framework/tools/scripts/mklegatoimg ../framework/tools/scripts/app ../framework/tools/scripts/av-pack ../framework/tools/scripts/releaselegato ../framework/tools/scripts/findtoolchain ../framework/tools/scripts/remoteDebug ../framework/tools/scripts/systocwe ../framework/tools/scripts/configlegatoenv ../framework/tools/scripts/update ../framework/tools/scripts/sbhelper ../framework/tools/scripts/configtargetssh ../framework/tools/scripts/legs ../framework/tools/scripts/gettargettype ../framework/tools/scripts/update-util ../framework/tools/scripts/configToolchainDirEnvVars ../framework/tools/scripts/simu ../framework/tools/scripts/fwupdate ../framework/tools/scripts/setname ../framework/tools/scripts/mkdoc ../framework/tools/scripts/startlegato ../framework/tools/scripts/shlib ../framework/tools/scripts/mklegatotreero bin/
ln -sf /home/marco/legato_framework/legato/framework/tools/ifgen/ifgen bin/
ln -sf /home/marco/legato_framework/legato/3rdParty/ima-support-tools/ima-sign.sh bin/
ln -sf /home/marco/legato_framework/legato/3rdParty/ima-support-tools/ima-gen-keys.sh bin/
make -C framework/tools/mkPatch mkPatch
make[3]: Entering directory '/home/marco/legato_framework/legato/framework/tools/mkPatch'
/usr/bin/gcc -Wall -Werror -o /home/marco/legato_framework/legato/bin/mkPatch \
    mkPatch.c /home/marco/legato_framework/legato/framework/liblegato/crc.c \
    -I/home/marco/legato_framework/legato/framework/include \
    -I/home/marco/legato_framework/legato/3rdParty/include
make[3]: Leaving directory '/home/marco/legato_framework/legato/framework/tools/mkPatch'
ninja  -f /home/marco/legato_framework/legato/build/tools/build.ninja
ninja: no work to do.
make[2]: Leaving directory '/home/marco/legato_framework/legato'
# Generate an MD5 hash of everything in the source directories.
find framework components interfaces platformAdaptor modules apps/platformServices  apps/tools targetFiles Makefile.framework Makefile.hostTools Makefile.targetTools Makefile targetDefs CMakeLists.txt -type f | grep -v ".git" | sort | while read filePath ; \
do \
  echo "$filePath" && \
  cat "$filePath" ; \
done | md5sum | awk '{ print $1 }' > sources.md5
version=18.05.0
md5=671f1151b3b86e5e07fd38e82badb210
make -f Makefile.framework CC=/opt/swi/y17-ext-wp85/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
make[2]: Entering directory '/home/marco/legato_framework/legato'
ninja  -f /home/marco/legato_framework/legato/build/wp85/framework/build.ninja
ninja: no work to do.
/opt/swi/y17-ext-wp85/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -o /home/marco/legato_framework/legato/build/wp85/framework/bin/startSystem /home/marco/legato_framework/legato/framework/daemons/linux/start/start.c \
	-Wall -Werror \
	-I/home/marco/legato_framework/legato/framework/include \
                -I/home/marco/legato_framework/legato/framework/liblegato \
                -I/home/marco/legato_framework/legato/framework/liblegato/linux \
	-DVERSION=\"18.05.0\" \
	-DDISABLE_SMACK=0 \
	 \
	-Wl,--enable-new-dtags,-rpath="\$ORIGIN/../lib" \
	-L/home/marco/legato_framework/legato/build/wp85/framework/lib -llegato
mkexe  -o /home/marco/legato_framework/legato/build/wp85/framework/bin/supervisor -t wp85 -w /home/marco/legato_framework/legato/build/wp85/framework/supervisor -l /home/marco/legato_framework/legato/build/wp85/framework/lib -d /home/marco/legato_framework/legato/build/wp85/debug \
	/home/marco/legato_framework/legato/framework/daemons/linux/supervisor \
	-i /home/marco/legato_framework/legato/interfaces/supervisor \
	-i /home/marco/legato_framework/legato/framework/liblegato \
	-i /home/marco/legato_framework/legato/framework/liblegato/linux \
	-i /home/marco/legato_framework/legato/framework/daemons/linux/start \
	-s /home/marco/legato_framework/legato/framework/daemons/linux/supervisor \
	--cflags=-DDISABLE_SMACK=0 \
	 \
	--cflags=-DNO_LOG_CONTROL \
	--cflags=-DLEGATO_FRAMEWORK_NICE_LEVEL=-19
ninja: no work to do.
mkexe  -o /home/marco/legato_framework/legato/build/wp85/framework/bin/serviceDirectory -t wp85 -w /home/marco/legato_framework/legato/build/wp85/framework/serviceDirectory -l /home/marco/legato_framework/legato/build/wp85/framework/lib -d /home/marco/legato_framework/legato/build/wp85/debug \
	/home/marco/legato_framework/legato/framework/daemons/linux/serviceDirectory \
	--cflags=-I/home/marco/legato_framework/legato/framework/liblegato \
	--cflags=-I/home/marco/legato_framework/legato/framework/liblegato/linux \
	--cflags=-DNO_LOG_CONTROL \
	--cflags=-DLE_RUNTIME_DIR="/tmp/legato//" \
	--cflags=-DLE_SVCDIR_SERVER_SOCKET_NAME="/tmp/legato/serviceDirectoryServer" \
	--cflags=-DLE_SVCDIR_CLIENT_SOCKET_NAME="/tmp/legato/serviceDirectoryClient"
ninja: no work to do.
mkexe  -o /home/marco/legato_framework/legato/build/wp85/framework/bin/logCtrlDaemon -t wp85 -w /home/marco/legato_framework/legato/build/wp85/framework/logCtrlDaemon -l /home/marco/legato_framework/legato/build/wp85/framework/lib -d /home/marco/legato_framework/legato/build/wp85/debug \
	/home/marco/legato_framework/legato/framework/daemons/linux/logDaemon \
	--cflags=-DNO_LOG_CONTROL \
	-i /home/marco/legato_framework/legato/framework/liblegato \
	-i /home/marco/legato_framework/legato/framework/liblegato/linux \
	-i /home/marco/legato_framework/legato/interfaces/supervisor
ninja: no work to do.
mkexe  -o /home/marco/legato_framework/legato/build/wp85/framework/bin/configTree -t wp85 -w /home/marco/legato_framework/legato/build/wp85/framework/configTree -l /home/marco/legato_framework/legato/build/wp85/framework/lib -d /home/marco/legato_framework/legato/build/wp85/debug \
	/home/marco/legato_framework/legato/framework/daemons/linux/configTree \
	-i /home/marco/legato_framework/legato/framework/liblegato \
	-i /home/marco/legato_framework/legato/framework/liblegato/linux \
	--cflags=-std=c99
ninja: no work to do.
mkexe  -o /home/marco/legato_framework/legato/build/wp85/framework/bin/watchdog -t wp85 -w /home/marco/legato_framework/legato/build/wp85/framework/watchdog -l /home/marco/legato_framework/legato/build/wp85/framework/lib -d /home/marco/legato_framework/legato/build/wp85/debug \
	-i /home/marco/legato_framework/legato/framework/liblegato \
	-i /home/marco/legato_framework/legato/framework/liblegato/linux \
	/home/marco/legato_framework/legato/framework/daemons/linux/watchdog/watchdogDaemon #\
	#--cflags=-DLEGATO_FRAMEWORK_WDOG_DISABLE
ninja: no work to do.
mkexe  -o /home/marco/legato_framework/legato/build/wp85/framework/bin/updateDaemon -t wp85 -w /home/marco/legato_framework/legato/build/wp85/framework/updateDaemon -l /home/marco/legato_framework/legato/build/wp85/framework/lib -d /home/marco/legato_framework/legato/build/wp85/debug \
	/home/marco/legato_framework/legato/framework/daemons/linux/updateDaemon \
	-i /home/marco/legato_framework/legato/interfaces/updateDaemon \
	-i /home/marco/legato_framework/legato/components/appCfg \
	-i /home/marco/legato_framework/legato/framework/liblegato \
	-i /home/marco/legato_framework/legato/framework/liblegato/linux \
	-s /home/marco/legato_framework/legato/components \
	-s /home/marco/legato_framework/legato/framework/daemons/linux/updateDaemon \
	 \
	--ldflags=-L/home/marco/legato_framework/legato/build/wp85/framework/lib
ninja: no work to do.
make -f Makefile.targetTools DISABLE_SMACK=0
make[3]: Entering directory '/home/marco/legato_framework/legato'
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/config /home/marco/legato_framework/legato/framework/tools/target/linux/config \
		-i /home/marco/legato_framework/legato/build/wp85/framework/libjansson/include/ \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		--ldflags=-L/home/marco/legato_framework/legato/build/wp85/framework/lib \
		--ldflags=-ljansson \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/config -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/log \
		/home/marco/legato_framework/legato/framework/tools/target/linux/logTool/logTool.c \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		-i /home/marco/legato_framework/legato/framework/daemons/linux/logDaemon \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/log -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/sdir \
		/home/marco/legato_framework/legato/framework/tools/target/linux/sdirTool \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
		-i /home/marco/legato_framework/legato/framework/daemons/linux/serviceDirectory \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/sdir -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
ln -sf debugCfg /home/marco/legato_framework/legato/build/wp85/framework/bin/gdbCfg
ln -sf debugCfg /home/marco/legato_framework/legato/build/wp85/framework/bin/straceCfg
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/inspect \
		/home/marco/legato_framework/legato/framework/tools/target/linux/inspect/inspect.c \
		--cflags=-DLE_SVCDIR_SERVER_SOCKET_NAME="/tmp/legato/serviceDirectoryServer" \
		--cflags=-DLE_SVCDIR_CLIENT_SOCKET_NAME="/tmp/legato/serviceDirectoryClient" \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
		-i /home/marco/legato_framework/legato/framework/daemons/linux \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/inspect -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/xattr \
		/home/marco/legato_framework/legato/framework/tools/target/linux/xattr/xattr.c \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/xattr -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/_appStopClient \
		/home/marco/legato_framework/legato/framework/tools/target/linux/appStopClient/appStopClient.c \
		--cflags=-DLE_RUNTIME_DIR='"/tmp/legato/"' \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/appStopClient -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/app \
		/home/marco/legato_framework/legato/framework/tools/target/linux/appCtrl \
		-i /home/marco/legato_framework/legato/interfaces/supervisor \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/app -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/update \
		/home/marco/legato_framework/legato/framework/tools/target/linux/update \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/update -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/marco/legato_framework/legato/build/wp85/framework/bin/sbtrace \
		/home/marco/legato_framework/legato/framework/tools/target/linux/sbtrace \
		-i /home/marco/legato_framework/legato/framework/liblegato/linux \
		 -l /home/marco/legato_framework/legato/build/wp85/framework/lib -w /home/marco/legato_framework/legato/build/wp85/framework/tools/sbtrace -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
cp -u -P --preserve=all framework/tools/target/linux/bin/configEcm framework/tools/target/linux/bin/install-hook framework/tools/target/linux/bin/legato framework/tools/target/linux/bin/setNet framework/tools/target/linux/bin/debugCfg framework/tools/target/linux/bin/start framework/tools/target/linux/bin/security-unpack framework/tools/target/linux/bin/saveLogs framework/tools/target/linux/bin/pss /home/marco/legato_framework/legato/build/wp85/framework/bin
mkapp /home/marco/legato_framework/legato/apps/tools/devMode.adef \
		-i /home/marco/legato_framework/legato/framework/liblegato \
		 -o /home/marco/legato_framework/legato/build/wp85/tools -w /home/marco/legato_framework/legato/build/wp85/apps/tools/devMode -t wp85 -d /home/marco/legato_framework/legato/build/wp85/debug --cflags=" -O2 -fno-omit-frame-pointer"
[4/4] Packaging app
make[3]: Leaving directory '/home/marco/legato_framework/legato'
# Computing MD5 hash for contents of framework bin and lib directories.
md5=` ( find /home/marco/legato_framework/legato/build/wp85/framework/bin && \
		find /home/marco/legato_framework/legato/build/wp85/framework/bin -type f | xargs cat && \
		find /home/marco/legato_framework/legato/build/wp85/framework/bin -type l | xargs -r -n 1 readlink && \
		find /home/marco/legato_framework/legato/build/wp85/framework/lib && \
		find /home/marco/legato_framework/legato/build/wp85/framework/lib -type f | xargs cat && \
		find /home/marco/legato_framework/legato/build/wp85/framework/lib -type l | xargs -r -n 1 readlink \
	  ) | md5sum` && \
md5=${md5%% *} && \
echo "$md5" > /home/marco/legato_framework/legato/build/wp85/framework/md5
make[2]: Leaving directory '/home/marco/legato_framework/legato'
make[1]: Leaving directory '/home/marco/legato_framework/legato'
TOOLCHAIN_DIR=/opt/swi/y17-ext-wp85/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi \
TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi- \
MANGOH_BOARD=RED \
mksys -t wp85 --object-dir=build/red_wp85 --output-dir=build/update_files/red mangOH.sdef
** Warning: Ignoring empty app specification
** Warning: Ignoring empty app specification
[6/980] Build kernel driver module
FAILED: make -C /home/marco/mangOH/build/red_wp85/modules/0-led
make[1]: Entering directory '/home/marco/mangOH/build/red_wp85/modules/0-led'
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/marco/mangOH/build/red_wp85/modules/0-led modules
make[2]: Entering directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
  CC [M]  /home/marco/mangOH/build/red_wp85/modules/0-led/led.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target '/home/marco/mangOH/build/red_wp85/modules/0-led/led.o' failed
make[3]: *** [/home/marco/mangOH/build/red_wp85/modules/0-led/led.o] Error 127
Makefile:1276: recipe for target '_module_/home/marco/mangOH/build/red_wp85/modules/0-led' failed
make[2]: *** [_module_/home/marco/mangOH/build/red_wp85/modules/0-led] Error 2
make[2]: Leaving directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:12: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marco/mangOH/build/red_wp85/modules/0-led'
[6/980] Build kernel driver module
FAILED: make -C /home/marco/mangOH/build/red_wp85/modules/3-bmi160
make[1]: Entering directory '/home/marco/mangOH/build/red_wp85/modules/3-bmi160'
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/marco/mangOH/build/red_wp85/modules/3-bmi160 modules
make[2]: Entering directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
  CC [M]  /home/marco/mangOH/build/red_wp85/modules/3-bmi160/bmi160_core.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target '/home/marco/mangOH/build/red_wp85/modules/3-bmi160/bmi160_core.o' failed
make[3]: *** [/home/marco/mangOH/build/red_wp85/modules/3-bmi160/bmi160_core.o] Error 127
Makefile:1276: recipe for target '_module_/home/marco/mangOH/build/red_wp85/modules/3-bmi160' failed
make[2]: *** [_module_/home/marco/mangOH/build/red_wp85/modules/3-bmi160] Error 2
make[2]: Leaving directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:18: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marco/mangOH/build/red_wp85/modules/3-bmi160'
[6/980] Build kernel driver module
FAILED: make -C /home/marco/mangOH/build/red_wp85/modules/0-ltc294x
make[1]: Entering directory '/home/marco/mangOH/build/red_wp85/modules/0-ltc294x'
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/marco/mangOH/build/red_wp85/modules/0-ltc294x modules
make[2]: Entering directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
  CC [M]  /home/marco/mangOH/build/red_wp85/modules/0-ltc294x/ltc2941-battery-gauge.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target '/home/marco/mangOH/build/red_wp85/modules/0-ltc294x/ltc2941-battery-gauge.o' failed
make[3]: *** [/home/marco/mangOH/build/red_wp85/modules/0-ltc294x/ltc2941-battery-gauge.o] Error 127
Makefile:1276: recipe for target '_module_/home/marco/mangOH/build/red_wp85/modules/0-ltc294x' failed
make[2]: *** [_module_/home/marco/mangOH/build/red_wp85/modules/0-ltc294x] Error 2
make[2]: Leaving directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:12: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marco/mangOH/build/red_wp85/modules/0-ltc294x'
[6/980] Build kernel driver module
FAILED: make -C /home/marco/mangOH/build/red_wp85/modules/0-bq24296
make[1]: Entering directory '/home/marco/mangOH/build/red_wp85/modules/0-bq24296'
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/marco/mangOH/build/red_wp85/modules/0-bq24296 modules
make[2]: Entering directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
  CC [M]  /home/marco/mangOH/build/red_wp85/modules/0-bq24296/bq24190-charger.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target '/home/marco/mangOH/build/red_wp85/modules/0-bq24296/bq24190-charger.o' failed
make[3]: *** [/home/marco/mangOH/build/red_wp85/modules/0-bq24296/bq24190-charger.o] Error 127
Makefile:1276: recipe for target '_module_/home/marco/mangOH/build/red_wp85/modules/0-bq24296' failed
make[2]: *** [_module_/home/marco/mangOH/build/red_wp85/modules/0-bq24296] Error 2
make[2]: Leaving directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:12: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marco/mangOH/build/red_wp85/modules/0-bq24296'
[6/980] Build kernel driver module
FAILED: make -C /home/marco/mangOH/build/red_wp85/modules/0-iio
make[1]: Entering directory '/home/marco/mangOH/build/red_wp85/modules/0-iio'
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/marco/mangOH/build/red_wp85/modules/0-iio modules
make[2]: Entering directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
  CC [M]  /home/marco/mangOH/build/red_wp85/modules/0-iio/industrialio-core.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target '/home/marco/mangOH/build/red_wp85/modules/0-iio/industrialio-core.o' failed
make[3]: *** [/home/marco/mangOH/build/red_wp85/modules/0-iio/industrialio-core.o] Error 127
Makefile:1276: recipe for target '_module_/home/marco/mangOH/build/red_wp85/modules/0-iio' failed
make[2]: *** [_module_/home/marco/mangOH/build/red_wp85/modules/0-iio] Error 2
make[2]: Leaving directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:20: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marco/mangOH/build/red_wp85/modules/0-iio'
[6/980] Build kernel driver module
FAILED: make -C /home/marco/mangOH/build/red_wp85/modules/0-cp2130
make[1]: Entering directory '/home/marco/mangOH/build/red_wp85/modules/0-cp2130'
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/marco/mangOH/build/red_wp85/modules/0-cp2130 modules
make[2]: Entering directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
  CC [M]  /home/marco/mangOH/build/red_wp85/modules/0-cp2130/spi-cp2130.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target '/home/marco/mangOH/build/red_wp85/modules/0-cp2130/spi-cp2130.o' failed
make[3]: *** [/home/marco/mangOH/build/red_wp85/modules/0-cp2130/spi-cp2130.o] Error 127
Makefile:1276: recipe for target '_module_/home/marco/mangOH/build/red_wp85/modules/0-cp2130' failed
make[2]: *** [_module_/home/marco/mangOH/build/red_wp85/modules/0-cp2130] Error 2
make[2]: Leaving directory '/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:12: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/marco/mangOH/build/red_wp85/modules/0-cp2130'
ninja: build stopped: subcommand failed.
Makefile:68: recipe for target 'red_wp85' failed
make: *** [red_wp85] Error 1

#4

Sorry about this. There used to be a section in the getting started guide, but I thought it wasn’t required anymore so it was removed. The getting started guide will be updated eventually to include the relevant information again. For now, please follow Step 2 in the README.md on github.