# ERROR, systocwe

**URL:** <https://forum.legato.io/t/error-systocwe/3197>\
**Category:** Uncategorized\
**Created:** [April 9, 2018, 3:45pm UTC](https://forum.legato.io/t/error-systocwe/3197 "2018-04-09T15:45:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [April 9, 2018, 3:45pm UTC](https://forum.legato.io/t/error-systocwe/3197/1 "2018-04-09T15:45:57Z")

</div>

I am building a legato framework, using the developer studio

when building building ends with this error:

systocwe wp76xx mangOH.wp76xx.update cwe  
\*\*\*ERROR: Bad system file mangOH.wp76xx.update  
Makefile:40: recipe for target ‘systocwe’ failed  
Try ‘systocwe --help’ for usage instructions.

please advice

---

<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 10, 2018, 1:31am UTC](https://forum.legato.io/t/error-systocwe/3197/2 "2018-04-10T01:31:12Z")

</div>

What’s your legato package version?  
Can you try systocwe or systoimg manually in command line?

---

<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:** [April 10, 2018, 2:07am UTC](https://forum.legato.io/t/error-systocwe/3197/3 "2018-04-10T02:07:25Z")

</div>

Hi,

I don’t see problem to build the legato framework on Ubuntu 14 using terminal command line.  
Please follow the steps below:

1. install the developer studio 5.3.1.
2. install the package “Legato for WP76 R8” in package manager
3. cd /home/owner/legato/packages/legato.sdk.18.1.0.wp76xx-native-i686-201803051402/resources/framework/legato
4. . bin/configlegatoenv
5. make wp76xx

Please have a try on your side.

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [April 12, 2018, 3:45am UTC](https://forum.legato.io/t/error-systocwe/3197/4 "2018-04-12T03:45:15Z")

</div>

building from developer studio for “create legato system” and build pass OK:

systocwe wp76xx wp76xx.wp76xx.update cwe  
Removing old content of cwe/\_staging\_wp76xx.wp76xx.update  
Unpacking wp76xx.wp76xx.update …  
Preparing staging directory cwe/\_staging\_wp76xx.wp76xx.update  
Creating images from directory cwe/\_staging\_wp76xx.wp76xx.update  
Using fakeroot /usr/bin/fakeroot …  
-t wp76xx -d cwe/\_staging\_wp76xx.wp76xx.update -o cwe  
Target: wp76xx  
Input: /home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/wp76xx/Target\_Legato\_Debug/cwe/\_staging\_wp76xx.wp76xx.update  
Output: /home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/wp76xx/Target\_Legato\_Debug/cwe  
Version: 18.01.0 ilan-HP-EliteBook-840-G3 2018/04/12 06:41:59  
wp76xx: Generating the framework image (squashfs.4k.ubi)  
wp76xx: Generating the framework image (squashfs)  
dlsym(acl\_get\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_fd  
dlsym(acl\_get\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_file  
dlsym(acl\_set\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_fd  
dlsym(acl\_set\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_file  
dlsym(acl\_get\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_fd  
dlsym(acl\_get\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_file  
dlsym(acl\_set\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_fd  
dlsym(acl\_set\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_file  
wp76xx: Generating the framework cwe (squashfs.4k.ubi)  
wp76xx: Generating the framework image (squashfs.2k.ubi)  
wp76xx: Generating the framework image (squashfs)  
dlsym(acl\_get\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_fd  
dlsym(acl\_get\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_file  
dlsym(acl\_set\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_fd  
dlsym(acl\_set\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_file  
dlsym(acl\_get\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_fd  
dlsym(acl\_get\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_get\_file  
dlsym(acl\_set\_fd): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_fd  
dlsym(acl\_set\_file): /usr/lib/x86\_64-linux-gnu/libfakeroot/libfakeroot-sysv.so: undefined symbol: acl\_set\_file  
wp76xx: Generating the framework cwe (squashfs.2k.ubi)  
make: Leaving directory ‘/home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/wp76xx/Target\_Legato\_Debug’

06:42:01 Build Finished (took 12s.985ms)

however, building from developer studio for “create mangoH system” and build failes:

[48/49] Packaging app  
[49/49] Packaging system  
systocwe wp76xx mangOH.wp76xx.update cwe  
\*\*\*ERROR: Bad system file mangOH.wp76xx.update  
Try ‘systocwe --help’ for usage instructions.  
Makefile:40: recipe for target ‘systocwe’ failed  
make: Leaving directory ‘/home/ilan/mangOH/devstudio-5.3.1-linux64/workspace/git/mangOH/Target\_Legato\_Debug’  
make: \*\*\* [systocwe] Error 1

06:44:49 Build Finished (took 9s.848ms)

please advice

---

<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:** [April 12, 2018, 8:32am UTC](https://forum.legato.io/t/error-systocwe/3197/5 "2018-04-12T08:32:54Z")

</div>

maybe you can have a try by using terminal command. You can follow here:

> <https://github.com/mangOH/mangOH/blob/master/README.md>

---

<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 12, 2018, 9:10am UTC](https://forum.legato.io/t/error-systocwe/3197/6 "2018-04-12T09:10:47Z")

</div>

Seems systocwe cannot find the mangOH.wp76xx.update file as it’s not locating in Target\_legato\_debug folder, you can manually run systocwe wp76xx $MANGOH\_ROOT/build/update\_files/red/mangOH.wp76xx.update cwe command in terminal.

e.g.  
#1: setup the environment: ~/legato/packages/legato.framework.18.1.0.wp76xx-201803051228/resources/legato$ source bin/configlegatoenv  
#2: Go back to ~/devstudio-5.3.1/workspace/git/mangOH folder  
#3: Run ~/devstudio-5.3.1/workspace/git/mangOH$ systocwe wp76xx $MANGOH\_ROOT/build/update\_files/red/mangOH.wp76xx.update cwe

Then you will get:  
~/devstudio-5.3.1/workspace/git/mangOH/cwe$ ls  
legato.cwe legatoimg legato.squashfs.2k.ubi legato.squashfs.4k.ubi \_staging\_mangOH.wp76xx.update  
legato.default legato.squashfs legato-squashfs.2k.ubi.cwe legato-squashfs.4k.ubi.cwe

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [April 17, 2018, 8:42am UTC](https://forum.legato.io/t/error-systocwe/3197/7 "2018-04-17T08:42:08Z")

</div>

I do not have this file :

~/mangOH/build(master)$ ls  
green\_wp76xx

~/mangOH/build/green\_wp76xx(master)$ find . -name “\*.update”  
./app/wifiWebAp/wifiWebAp.wp76xx.update  
./app/wifiService/wifiService.wp76xx.update  
./app/powerMgr/powerMgr.wp76xx.update  
./app/wifi/wifi.wp76xx.update  
./app/cellNetService/cellNetService.wp76xx.update  
./app/tools/tools.wp76xx.update  
./app/wifiApTest/wifiApTest.wp76xx.update  
./app/secStore/secStore.wp76xx.update  
./app/wifiClientTest/wifiClientTest.wp76xx.update  
./app/fwupdateService/fwupdateService.wp76xx.update  
./app/smsInboxService/smsInboxService.wp76xx.update  
./app/avcService/avcService.wp76xx.update  
./app/spiService/spiService.wp76xx.update  
./app/audioService/audioService.wp76xx.update  
./app/voiceCallService/voiceCallService.wp76xx.update  
./app/dataConnectionService/dataConnectionService.wp76xx.update  
./app/modemService/modemService.wp76xx.update  
./app/atService/atService.wp76xx.update  
./app/gpioService/gpioService.wp76xx.update  
./app/positioningService/positioningService.wp76xx.update  
./app/devMode/devMode.wp76xx.update  
./app/portService/portService.wp76xx.update

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [April 17, 2018, 11:52am UTC](https://forum.legato.io/t/error-systocwe/3197/8 "2018-04-17T11:52:52Z")

</div>

Hi @deadpoolcode,  
I haven’t tried with the developer studio, But i had tried with command line using the below steps, I was able to build the mangoH for both the Red and green for WP76xx

1. Download and install the latest WP76xx toolchain from ([http://downloads.sierrawireless.com/AirPrime/WP76xx/Release8/poky-swi-ext-glibc-x86\_64-meta-toolchain-swi-ext-armv7a-neon-toolchain-swi-ext-2.2.2.sh](http://downloads.sierrawireless.com/AirPrime/WP76xx/Release8/poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-neon-toolchain-swi-ext-2.2.2.sh))

2. Enable the toolchain to build kernel modules by running these commands:  
a. `export PATH=$PATH:/opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi`  
b. `cd /opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel/`  
c. `sudo chown -R $USER .`  
d. `ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- make scripts`  
e. `sudo chown -R root .`

3. Get the Legato source code, Myself used legati-18.01.0 which is the latest comes with Release 8( [https://downloads.sierrawireless.com/legato/1801/legato-18.01.0.tar.bz2](https://downloads.sierrawireless.com/legato/1801/legato-18.01.0.tar.bz2))

4. `cd` to the legato folder and run `make wp76xx`

5. Run `source bin/configlegatoenv` to setup the environment variables

6. `cd` to the home directory and clone the mangOH source code by running `git clone --recursive git://github.com/mangOH/mangOH`

7. `cd` into the mangOH folder and run `make red_wp76xx` or `make green_wp76xx` depending on which board is being targeted.

Regards,  
Muralidhara N.

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [April 17, 2018, 2:18pm UTC](https://forum.legato.io/t/error-systocwe/3197/9 "2018-04-17T14:18:47Z")

</div>

it fails on:

mangOH/apps/GpioExpander/gpioExpanderService/gpioExpanderCommon/gpioExpander.c:25:32: fatal error: linux/i2c-dev-user.h: No such file or directory  
#include \<linux/i2c-dev-user.h\>  
^  
compilation terminated.  
[801/1066] Generating IPC interface code  
ninja: build stopped: subcommand failed.  
Makefile:68: recipe for target ‘green\_wp76xx’ failed  
make: \*\*\* [green\_wp76xx] Error 1

---

<div class="post-metadata">

**Author:** ![Manukumar](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Manukumar](https://forum.legato.io/u/Manukumar)\
**Post date:** [October 18, 2018, 11:55am UTC](https://forum.legato.io/t/error-systocwe/3197/10 "2018-10-18T11:55:05Z")

</div>

Can you please share the steps that you are using to build.

---

<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, 9:39pm UTC](https://forum.legato.io/t/error-systocwe/3197/11 "2019-01-27T21:39:15Z")

</div>

> [@muralinagraj](#):
>
> S\_CO

Hello,  
Will this works with WP76xx Firmware Release 10.1.1 ?

I’m trying to fix this issue :

> [@Wp7607 mangOH Red configuration issue - toolchain](https://forum.legato.io/t/wp7607-mangoh-red-configuration-issue-toolchain/4066):
>
> 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/…

---

<div class="post-metadata">

**Author:** ![riotc](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@riotc](https://forum.legato.io/u/riotc)\
**Post date:** [January 31, 2019, 4:14pm UTC](https://forum.legato.io/t/error-systocwe/3197/12 "2019-01-31T16:14:16Z")

</div>

> [@deadpoolcode](#):
>
> green\_wp76xx

Hello @deadpoolcode, Do you still have this issue?
