# Wp7607 mangOH Red configuration issue - toolchain

**URL:** <https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066>\
**Category:** Uncategorized\
**Created:** [January 26, 2019, 1:32pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066 "2019-01-26T13:32:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sydibyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/sydibyd/32/619_2.png) [@sydibyd](https://forum.legato.io/u/sydibyd)\
**Post date:** [January 26, 2019, 1:32pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/1 "2019-01-26T13:32:26Z")

</div>

Hello,

New in Legato platform, trying to configure my mangOH Red (+ Sierra Wireless wp7607), using Getting started mangOH Red Guide ([HERE](https://forum.mangoh.io/t/mangoh-red-configuration-toolchain/2334)), 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 &quot;.git&quot; | sort | while read filePath ; \

do \

echo &quot;$filePath&quot; &amp;&amp; \

cat &quot;$filePath&quot; ; \

done | md5sum | awk '{ print $1 }' &gt; 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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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=&quot;\&quot;/tmp/legato/serviceDirectoryServer\&quot;&quot; -DLE_SVCDIR_CLIENT_SOCKET_NAME=&quot;\&quot;/tmp/legato/serviceDirectoryClient\&quot;&quot;

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 &lt;unistd.h&gt;

^

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [January 27, 2019, 12:32pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/2 "2019-01-27T12:32:29Z")

</div>

Can you try the toolchain in WP76xx R9 release?

---

<div class="post-metadata">

**Author:** ![sydibyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/sydibyd/32/619_2.png) [@sydibyd](https://forum.legato.io/u/sydibyd)\
**Post date:** [January 27, 2019, 10:53pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/3 "2019-01-27T22:53:31Z")

</div>

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 &amp;lt;unistd.h&amp;gt;`

Could be fixed using ’ WP76xx Firmware Release 9 ’ ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [January 27, 2019, 11:54pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/4 "2019-01-27T23:54:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sydibyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/sydibyd/32/619_2.png) [@sydibyd](https://forum.legato.io/u/sydibyd)\
**Post date:** [January 28, 2019, 12:27am UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/5 "2019-01-28T00:27:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [February 7, 2019, 9:06am UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/6 "2019-02-07T09:06:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sydibyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/sydibyd/32/619_2.png) [@sydibyd](https://forum.legato.io/u/sydibyd)\
**Post date:** [February 7, 2019, 4:08pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/7 "2019-02-07T16:08:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [February 11, 2019, 3:06pm UTC](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066/8 "2019-02-11T15:06:01Z")

</div>

> [@sydibyd](#):
>
> export WP76XX\_SYSROOT=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-g

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.
