Wp7607 mangOH Red configuration issue - toolchain

Hello,

New in Legato platform, trying to configure my mangOH Red (+ Sierra Wireless wp7607), using Getting started mangOH Red Guide (HERE), everything was good until I tried to build the Legato AF and mangOH platforms for the CF3 module :

Below you will find the terminal response after asking for make red_wp76xx :

syd@SYDIBYD:~$ cd mangOH

syd@SYDIBYD:~/mangOH$ make red_wp76xx

make -C /home/syd/legato_framework/legato framework_wp76xx

make[1]: Entering directory '/home/syd/legato_framework/legato'

Module: WiFi

********************* VERSION ********************

Legato WiFi version: 18.09.0

**************************************************

Module: Dualsys

make -f Makefile.hostTools

make[2]: Entering directory '/home/syd/legato_framework/legato'

Using ninja installed at: /usr/bin/ninja

ln -sf /home/syd/legato_framework/legato/build/tools/mk /home/syd/legato_framework/legato/bin/mk

ln -sf mk /home/syd/legato_framework/legato/bin/mkcomp

ln -sf mk /home/syd/legato_framework/legato/bin/mkexe

ln -sf mk /home/syd/legato_framework/legato/bin/mkapp

ln -sf mk /home/syd/legato_framework/legato/bin/mksys

ln -sf /home/syd/legato_framework/legato/framework/tools/scripts/splitdebug /home/syd/legato_framework/legato/framework/tools/scripts/findtoolchain /home/syd/legato_framework/legato/framework/tools/scripts/instsys /home/syd/legato_framework/legato/framework/tools/scripts/settime /home/syd/legato_framework/legato/framework/tools/scripts/mkinfo /home/syd/legato_framework/legato/framework/tools/scripts/instlegato /home/syd/legato_framework/legato/framework/tools/scripts/stoplegato /home/syd/legato_framework/legato/framework/tools/scripts/cextgenerator.py /home/syd/legato_framework/legato/framework/tools/scripts/settz /home/syd/legato_framework/legato/framework/tools/scripts/createsdk /home/syd/legato_framework/legato/framework/tools/scripts/systoimg /home/syd/legato_framework/legato/framework/tools/scripts/legato-qemu /home/syd/legato_framework/legato/framework/tools/scripts/checkpa /home/syd/legato_framework/legato/framework/tools/scripts/legato-install /home/syd/legato_framework/legato/framework/tools/scripts/update-pack /home/syd/legato_framework/legato/framework/tools/scripts/security-pack /home/syd/legato_framework/legato/framework/tools/scripts/instapp /home/syd/legato_framework/legato/framework/tools/scripts/mklegatoimg /home/syd/legato_framework/legato/framework/tools/scripts/app /home/syd/legato_framework/legato/framework/tools/scripts/av-pack /home/syd/legato_framework/legato/framework/tools/scripts/releaselegato /home/syd/legato_framework/legato/framework/tools/scripts/sbhelper /home/syd/legato_framework/legato/framework/tools/scripts/remoteDebug /home/syd/legato_framework/legato/framework/tools/scripts/mkdelta /home/syd/legato_framework/legato/framework/tools/scripts/systocwe /home/syd/legato_framework/legato/framework/tools/scripts/configlegatoenv /home/syd/legato_framework/legato/framework/tools/scripts/update /home/syd/legato_framework/legato/framework/tools/scripts/configtargetssh /home/syd/legato_framework/legato/framework/tools/scripts/legs /home/syd/legato_framework/legato/framework/tools/scripts/gettargettype /home/syd/legato_framework/legato/framework/tools/scripts/update-util /home/syd/legato_framework/legato/framework/tools/scripts/configToolchainDirEnvVars /home/syd/legato_framework/legato/framework/tools/scripts/simu /home/syd/legato_framework/legato/framework/tools/scripts/fwupdate /home/syd/legato_framework/legato/framework/tools/scripts/setname /home/syd/legato_framework/legato/framework/tools/scripts/mkdoc /home/syd/legato_framework/legato/framework/tools/scripts/startlegato /home/syd/legato_framework/legato/framework/tools/scripts/shlib /home/syd/legato_framework/legato/framework/tools/scripts/mklegatotreero /home/syd/legato_framework/legato/bin/

ln -sf /home/syd/legato_framework/legato/framework/tools/ifgen/ifgen /home/syd/legato_framework/legato/bin/

ln -sf /home/syd/legato_framework/legato/3rdParty/ima-support-tools/ima-sign.sh /home/syd/legato_framework/legato/bin/

ln -sf /home/syd/legato_framework/legato/3rdParty/ima-support-tools/ima-gen-keys.sh /home/syd/legato_framework/legato/bin/

make -C framework/tools/patchTool/mkPatch

make[3]: Entering directory '/home/syd/legato_framework/legato/framework/tools/patchTool/mkPatch'

/usr/bin/gcc -Wall -Werror -o /home/syd/legato_framework/legato/bin/mkPatch \

mkPatch.c /home/syd/legato_framework/legato/framework/liblegato/crc.c \

-I/home/syd/legato_framework/legato/framework/include \

-I/home/syd/legato_framework/legato/3rdParty/include

make[3]: Leaving directory '/home/syd/legato_framework/legato/framework/tools/patchTool/mkPatch'

make -C framework/tools/patchTool/mkdiff

make[3]: Entering directory '/home/syd/legato_framework/legato/framework/tools/patchTool/mkdiff'

/usr/bin/gcc -Wall -Werror -o /home/syd/legato_framework/legato/bin/mkdiff \

mkdiff.c /home/syd/legato_framework/legato/framework/tools/patchTool/patch_utils.c /home/syd/legato_framework/legato/framework/liblegato/crc.c \

-I/home/syd/legato_framework/legato/framework/include \

-I/home/syd/legato_framework/legato/3rdParty/include \

-I/home/syd/legato_framework/legato/framework/tools/patchTool

make[3]: Leaving directory '/home/syd/legato_framework/legato/framework/tools/patchTool/mkdiff'

ninja -f /home/syd/legato_framework/legato/build/tools/build.ninja

ninja: no work to do.

make[2]: Leaving directory '/home/syd/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 Makefile.framework Makefile.hostTools Makefile.targetTools 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.09.0

md5=159b2d2fc9ff6ed261aa800af3e3bca7

make -f Makefile.framework CC=/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc

make[2]: Entering directory '/home/syd/legato_framework/legato'

ninja -f /home/syd/legato_framework/legato/build/wp76xx/framework/build.ninja

[1/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/singlyLinkedList.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/singlyLinkedList.c:6:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[2/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/test.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/test.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/test.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/test.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/test.c:9:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[3/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/addr.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/addr.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/linux/addr.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/addr.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/linux/addr.c:9:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[4/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/crc.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/crc.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/crc.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/crc.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/crc.c:12:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[5/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/clock.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/clock.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/linux/clock.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/clock.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/linux/clock.c:8:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[6/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/utf8.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/utf8.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/utf8.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/utf8.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/utf8.c:7:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[7/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/args.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/args.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/linux/args.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/args.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/linux/args.c:7:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[8/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/atomFile.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/atomFile.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/linux/atomFile.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/atomFile.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/linux/atomFile.c:24:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[9/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/doublyLinkedList.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/doublyLinkedList.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/doublyLinkedList.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/doublyLinkedList.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/doublyLinkedList.c:6:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

[10/52] Compiling liblegato source file

FAILED: /home/syd/legato_framework/legato/build/wp76xx/framework/obj/cgroups.c.o

/opt/swi/SWI9X07Y_02.18.06.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/wp76xx/sysroots/SWI9X07Y_02.18.06.00/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/syd/legato_framework/legato/build/wp76xx/framework/obj/cgroups.c.o.d -c /home/syd/legato_framework/legato/framework/liblegato/linux/cgroups.c -o /home/syd/legato_framework/legato/build/wp76xx/framework/obj/cgroups.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/syd/legato_framework/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/syd/legato_framework/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/syd/legato_framework/legato/framework/include -I/home/syd/legato_framework/legato/framework/liblegato -DDISABLE_SMACK=0 -DLE_SVCDIR_SERVER_SOCKET_NAME="\"/tmp/legato/serviceDirectoryServer\"" -DLE_SVCDIR_CLIENT_SOCKET_NAME="\"/tmp/legato/serviceDirectoryClient\""

In file included from /home/syd/legato_framework/legato/framework/liblegato/linux/cgroups.c:9:0:

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory

#include <unistd.h>

^

compilation terminated.

ninja: build stopped: subcommand failed.

Makefile.framework:147: recipe for target 'liblegato' failed

make[2]: *** [liblegato] Error 1

make[2]: Leaving directory '/home/syd/legato_framework/legato'

Makefile:379: recipe for target 'framework_wp76xx' failed

make[1]: *** [framework_wp76xx] Error 2

make[1]: Leaving directory '/home/syd/legato_framework/legato'

Makefile:36: recipe for target 'legato_wp76xx' failed

make: *** [legato_wp76xx] Error 2

syd@SYDIBYD:~/mangOH$

More information on device :

root@swi-mdm9x28:~# cm info
Device:                WP7607
IMEI:                  359779080105295
IMEISV:                4
FSN:                   VN745385660603
Firmware Version:      SWI9X07Y_02.14.04.00 000000 jenkins 2018/02/14 20:19:41
Bootloader Version:    SWI9X07Y_02.14.04.00 000000 jenkins 2018/02/14 20:19:41
MCU Version:           002.007
PRI Part Number (PN):  9907327
PRI Revision:          001.003 
Carrier PRI Name:      GENERIC
Carrier PRI Revision:  002.025_000
SKU:                   1103511
Last Reset Cause:      Power Down
Resets Count:          Expected: 9	Unexpected: 1

SDK direction :

SDK (default: /opt/swi/SWI9X07Y_02.18.06.00): /opt/swi/y22-ext-SWI9X07Y_02.18.06.00

home/syd/.bashrc file modification :

alias cfglegato=\
"pushd . && cd ~/legato_framework/legato && source ./bin/configlegatoenv ; popd"
export LEGATO_ROOT=~/legato_framework/legato
export WP76XX_SYSROOT=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-g$

And symbolic links :

syd@SYDIBYD:/opt/swi$ ls -la
total 16
drwxr-xr-x 4 root root 4096 Jan 26 13:41 .
drwxr-xr-x 4 root root 4096 Jan 17 20:45 ..
drwxr-xr-x 3 root root 4096 Jan 26 13:45 SWI9X07Y_02.18.06.00
lrwxrwxrwx 1 root root   20 Jan 17 20:53 WP7607 -> SWI9X07Y_02.18.06.00
lrwxrwxrwx 1 root root   20 Jan 25 17:24 wp76xx -> SWI9X07Y_02.18.06.00
drwxr-xr-x 3 root root 4096 Jan 26 13:44 y22-ext-SWI9X07Y_02.18.06.00
lrwxrwxrwx 1 root root   29 Jan 25 18:19 y22-ext-wp76xx -> /opt/swi/SWI9X07Y_02.18.06.00

Is there any recommendation?
Thanks in advance

Can you try the toolchain in WP76xx R9 release?

Hello jyijyi ,
Are you proposing to me using ’ WP76xx Firmware Release 9 ’ instead of actual used ’ WP76xx Firmware Release 10.1.1 ’ ?

In my case I can’t understand what is for this fatal error :

/home/syd/legato_framework/legato/framework/include/legato.h:146:20: fatal error: unistd.h: No such file or directory #include <unistd.h>

Could be fixed using ’ WP76xx Firmware Release 9 ’ ?

You can have a try.
I remember i dont see such problem in R9.

Ok, I’ll try it.

As I’m new with Legato, it’s really unknown to me, that’s why I can’t understand what this means :

fatal error: unistd.h: No such file or directory

I doubt that maybe this is due to some syntax or addressing error.

Hi @sydibyd,
did you have a try with R9? did you face similar issue?
best regards,

Hi,

I retried all steps from A to Z, this time using R9 and I passed from this step. But I’m not sure the solution was R9 of some thing else.

Thanks anyway,

Syd

It looks like your sysroot directory is incorrect, as it should be export WP76XX_SYSROOT=/opt/swi/SWI9X07Y_02.18.06.00/sysroots/armv7a-neon-poky-linux-gnueabi given your SDK installation.