# Liblegato failure when "make wp76xx"

**URL:** <https://forum.legato.io/t/liblegato-failure-when-make-wp76xx/3157>\
**Category:** Uncategorized\
**Created:** [March 13, 2018, 5:57pm UTC](https://forum.legato.io/t/liblegato-failure-when-make-wp76xx/3157 "2018-03-13T17:57:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HDe2OA](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@HDe2OA](https://forum.legato.io/u/HDe2OA)\
**Post date:** [March 13, 2018, 5:57pm UTC](https://forum.legato.io/t/liblegato-failure-when-make-wp76xx/3157/1 "2018-03-13T17:57:43Z")

</div>

I have been trying to get through the Basic Build for the Application Framework, with little luck.

I followed the Getting Started, and was able to download the toolchain and successfully run “make”.

Afterwards if I configure my shell (source bin/configlegatoenv) it will locate my toolchain for the wp76xx. However, I see to be getting an unrelated issue (below) where it will always fail. I am getting it has something to do with how I changed my toolchain location (per the Basic Build Instructions). However, I can’t seem to figure out where it is missing the location.

`
[3/51] Compiling liblegato source file
FAILED: /opt/swi/y22-ext-1801/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/parallels/workspace/legatoAF/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o.d -c /home/parallels/workspace/legatoAF/legato/framework/liblegato/singlyLinkedList.c -o /home/parallels/workspace/legatoAF/legato/build/wp76xx/framework/obj/singlyLinkedList.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/parallels/workspace/legatoAF/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/parallels/workspace/legatoAF/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/parallels/workspace/legatoAF/legato/framework/include -I/home/parallels/workspace/legatoAF/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/parallels/workspace/legatoAF/legato/framework/liblegato/singlyLinkedList.c:6:0:
/home/parallels/workspace/legatoAF/legato/framework/include/legato.h:145:20: fatal error: unistd.h: No such file or directory
 #include 
                    ^
compilation terminated.
[3/51] Compiling liblegato source file
FAILED: /opt/swi/y22-ext-1801/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/parallels/workspace/legatoAF/legato/build/wp76xx/framework/obj/crc.c.o.d -c /home/parallels/workspace/legatoAF/legato/framework/liblegato/crc.c -o /home/parallels/workspace/legatoAF/legato/build/wp76xx/framework/obj/crc.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/parallels/workspace/legatoAF/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/parallels/workspace/legatoAF/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/parallels/workspace/legatoAF/legato/framework/include -I/home/parallels/workspace/legatoAF/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/parallels/workspace/legatoAF/legato/framework/liblegato/crc.c:12:0:
/home/parallels/workspace/legatoAF/legato/framework/include/legato.h:145:20: fatal error: unistd.h: No such file or directory
 #include 
                    ^
compilation terminated.
[3/51] Compiling liblegato source file
FAILED: /opt/swi/y22-ext-1801/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -MMD -MF /home/parallels/workspace/legatoAF/legato/build/wp76xx/framework/obj/eventLoop.c.o.d -c /home/parallels/workspace/legatoAF/legato/framework/liblegato/linux/eventLoop.c -o /home/parallels/workspace/legatoAF/legato/build/wp76xx/framework/obj/eventLoop.c.o -Wall -Werror -DLEGATO_EMBEDDED -fPIC -I/home/parallels/workspace/legatoAF/legato/framework/daemons/linux -g -O2 -fno-omit-frame-pointer -I/home/parallels/workspace/legatoAF/legato/framework/liblegato/linux -DLE_COMPONENT_NAME=framework -I/home/parallels/workspace/legatoAF/legato/framework/include -I/home/parallels/workspace/legatoAF/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/parallels/workspace/legatoAF/legato/framework/liblegato/linux/eventLoop.c:96:0:
/home/parallels/workspace/legatoAF/legato/framework/include/legato.h:145:20: fatal error: unistd.h: No such file or directory
 #include 
                    ^
compilation terminated.
ninja: build stopped: subcommand failed.
Makefile.framework:108: recipe for target 'liblegato' failed
make[1]: *** [liblegato] Error 1
make[1]: Leaving directory '/home/parallels/workspace/legatoAF/legato'
Makefile:258: recipe for target 'framework_wp76xx' failed
make: *** [framework_wp76xx] Error 2
`

---

<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:** [March 13, 2018, 6:41pm UTC](https://forum.legato.io/t/liblegato-failure-when-make-wp76xx/3157/2 "2018-03-13T18:41:08Z")

</div>

Hi @HDe2OA,

which version of the framework and which version of the toolchain are you working with?

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [April 20, 2018, 8:31am UTC](https://forum.legato.io/t/liblegato-failure-when-make-wp76xx/3157/3 "2018-04-20T08:31:02Z")

</div>

Seems you didn’t set the toolchain path correctly.  
Please use path /opt/swi/y22-ext instead of /opt/swi/y22-ext-1801.
