# DS makefile generation problem?

**URL:** <https://forum.legato.io/t/ds-makefile-generation-problem/2183>\
**Category:** Legato Application Framework\
**Created:** [October 10, 2016, 7:45am UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183 "2016-10-10T07:45:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.legato.io/u/karlkuhn)\
**Post date:** [October 10, 2016, 7:45am UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183/1 "2016-10-10T07:45:39Z")

</div>

Hi, I am not able to build my app in DS 14.1.1 with 16.04/07. I have an empty project with a component that prints hello world… that is it… But I get the following error when building the project

Makefile:51: recipe for target ‘airvantage’ failed

I am not using airvantage and can’t seem to remove it?

Manually removing from the airvantage stuff from the makefile and building from the command line works… but building from DS causes the makefile to be created incorrectly again?

How do I get this to work in DS?

---

<div class="post-metadata">

**Author:** ![reunan](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@reunan](https://forum.legato.io/u/reunan)\
**Post date:** [October 10, 2016, 4:24pm UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183/2 "2016-10-10T16:24:30Z")

</div>

Hello karlkuhn,  
I had the same problem than you. Did you check if the `Define target type` in the top of the makefile is matching your current target ? If it’s not matching you may have found your problem. Did you change anythings in the `Propertie->C/C++Build->Settings->mkappTool` ? This is maybe why it’s not matching.

If you want to reset these variables, I thinks you can remove your project from DS (without delete it from the disk ) and the reimport it using the good target.  
Another way, can be to modify directly these files : `.settings/.ebsdata` and `myComponent/.settings/.ebsdata` and change the `etpID` attribute by the correct target. (you can found it in the other projects).

I know this a little messy, but I hope it can give you a hint.

Cheers,  
Reunan

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [October 11, 2016, 5:41am UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183/3 "2016-10-11T05:41:47Z")

</div>

Hi,  
please can you give more details on the error?  
Maybe some more lines captured from the **Console** view…  
Please can you give as well more details on your host system?  
(Linux/Windows? which version?)  
Thanks.

@reunan: by the way, manually edit .ebsdata files is not recommended. You can edit the used Legato version by using the right-click menu on the project, then **Properties \> Legato Application** , and pick the desired version in the list.

---

<div class="post-metadata">

**Author:** ![reunan](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@reunan](https://forum.legato.io/u/reunan)\
**Post date:** [October 11, 2016, 6:12am UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183/4 "2016-10-11T06:12:57Z")

</div>

ok… I think I searched in all Properties fields expect this one… Anyway, thank you, it can be helpful in the future.

Reunan,

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.legato.io/u/karlkuhn)\
**Post date:** [October 11, 2016, 8:07am UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183/5 "2016-10-11T08:07:12Z")

</div>

Hi both, thanks for your replies… see below for more detail.

I am targeting

> [Built-in] Legato for WP85/WP75 (16.7.0.wp85-wp75-native-x86\_64-201609301633) - WP85XX.

This is for the MangOH green board.

I am running DevStudio in the Virtualbox Ubuntu image provided.Virtual box is running on a Win10 machin.  
I have upgraded to the latest version on DS.

The only change I have made is to try and build for C++ by including (-std=c++11) in the Addition C++ compiler options (-X) section. Also I might have flipped from 16.7 to 16.4 to try and get this to work. But I have flipped it back now.

Below is the console log (sorry for the long version, please let me know if there is a better way to include it…, file upload did not work).

> 10:03:27 \*\*\*\* Incremental Build of configuration Target\_Legato\_Debug for project DLC-Legato-Gateway \*\*\*\*  
> make -I /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato all  
> cd …;mkapp -t wp85 -o Target\_Legato\_Debug -w Target\_Legato\_Debug -v -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/modemServices” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/secureStorage” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/logDaemon” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/positioning” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/airVantage” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/supervisor” -i “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/wifi” -i “DLC-Legato-GatewayComponent/api” -i “…/…/…/…/…/legato/packages/legato.framework.16.7.0.201609081601/resources/legato/components” -s “/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/components” -s “.” -C -g -X -g -L -g -X -std:C++11 DLC-Legato-Gateway.adef  
> Command-line arguments are different this time.  
> – Last time (Target\_Legato\_Debug/mktool\_args) –  
> mkapp -t wp85 -o Target\_Legato\_Debug -w Target\_Legato\_Debug -v -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/modemServices -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/secureStorage -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/logDaemon -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/positioning -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/airVantage -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/supervisor -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/wifi -i DLC-Legato-GatewayComponent/api -i …/…/…/…/…/legato/packages/legato.framework.16.7.0.201609081601/resources/legato/components -s /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/components -s . -C -g -X -g -L -g -X -std:C++11 DLC-Legato-Gateway.adef --generate-code  
> – This time –  
> mkapp -t wp85 -o Target\_Legato\_Debug -w Target\_Legato\_Debug -v -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/modemServices -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/secureStorage -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/logDaemon -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/positioning -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/airVantage -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/supervisor -i /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/wifi -i DLC-Legato-GatewayComponent/api -i …/…/…/…/…/legato/packages/legato.framework.16.7.0.201609081601/resources/legato/components -s /home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/components -s . -C -g -X -g -L -g -X -std:C++11 DLC-Legato-Gateway.adef  
> Parsing file: ‘/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-Gateway.adef’.  
> Modelling application: ‘DLC\_Legato\_Gateway’  
> defined in: ‘/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-Gateway.adef’  
> Application ‘DLC\_Legato\_Gateway’ contains executable ‘dlc’.  
> Parsing file: ‘/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent/Component.cdef’.  
> Modelling component: ‘DLC\_Legato\_GatewayComponent’  
> found at: ‘/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent’  
> == ‘DLC\_Legato\_GatewayComponent’ component summary ==  
> Component library: ‘Target\_Legato\_Debug/staging/read-only/lib/libComponent\_DLC\_Legato\_GatewayComponent.so’  
> C++ sources:  
> ‘/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent/DLC-Legato-Gateway.cpp’  
> Executable ‘dlc’ in application ‘DLC\_Legato\_Gateway’ contains component ‘DLC\_Legato\_GatewayComponent’ (/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent).

> == ‘DLC\_Legato\_Gateway’ application summary ==

> Uses components:  
> ‘DLC\_Legato\_GatewayComponent’  
> Builds executables:  
> ‘dlc’  
> Instantiates components:  
> ‘DLC\_Legato\_GatewayComponent’  
> Runs inside a sandbox.  
> Has the following limits:  
> maxSecureStorageBytes: 8192  
> maxThreads: 20  
> maxMQueueBytes: 512  
> maxQueuedSignals: 100  
> maxMemoryBytes: 40960000  
> cpuShare: 1024  
> maxFileSystemBytes: 524288  
> Has access to the following configuration trees:  
> Its own tree: read + write  
> Will be started automatically when the Legato framework starts.  
> When started, will run process: ‘dlc’  
> Executing file: ‘dlc’  
> Without any command line arguments.  
> With the following environment variables:  
> LE\_LOG\_LEVEL=DEBUG  
> PATH=/usr/local/bin:/usr/bin:/bin  
> Fault recovery action: ignore (default)  
> Watchdog timeout: disabled  
> With the following limits:  
> Max. core dump file size: 524288 bytes  
> Max. file size: 524288 bytes  
> Max. locked memory size: 8192 bytes  
> Max. number of file descriptors: 256  
> Executable ‘dlc’:

> Generating system configuration data for app ‘DLC\_Legato\_Gateway’ in file ‘Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/staging/root.cfg’.  
> Generating startup code for executable ‘dlc’ (app/DLC\_Legato\_Gateway/staging/read-only/bin/dlc) in ‘Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/src/dlc/\_main.c’.  
> ninja explain: output Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/f7b7546393eb753b2adcf66e0a7251a4.o older than most recent input /home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent/DLC-Legato-Gateway.cpp (1476102735 vs 1476111278)  
> Generating Air Vantage manifest: Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/manifest.app  
> Generating interfaces.h for component 'DLC\_Legato\_GatewayComponent’in ‘Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src/interfaces.h’.  
> Generating component-specific IPC code for component ‘DLC\_Legato\_GatewayComponent’ in ‘Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src/\_componentMain.c’.  
> Generating ninja build script: ‘Target\_Legato\_Debug/build.ninja’.  
> Executing ninja build system…  
> $ ninja -v -d explain -f Target\_Legato\_Debug/build.ninja  
> ninja explain: Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/f7b7546393eb753b2adcf66e0a7251a4.o is dirty  
> ninja explain: output Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/\_componentMain.c.o older than most recent input Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src/\_componentMain.c (1476172698 vs 1476173007)  
> ninja explain: Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/\_componentMain.c.o is dirty  
> ninja explain: Target\_Legato\_Debug/staging/read-only/lib/libComponent\_DLC\_Legato\_GatewayComponent.so is dirty  
> ninja explain: Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/staging/read-only/lib/libComponent\_DLC\_Legato\_GatewayComponent.so is dirty  
> ninja explain: output Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/obj/dlc/\_main.c.o older than most recent input Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/src/dlc/\_main.c (1476172706 vs 1476173007)  
> ninja explain: Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/obj/dlc/\_main.c.o is dirty  
> ninja explain: Target\_Legato\_Debug/staging/read-only/lib/libComponent\_DLC\_Legato\_GatewayComponent.so is dirty  
> ninja explain: Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/staging/read-only/bin/dlc is dirty  
> ninja explain: Target\_Legato\_Debug/app/DLC\_Legato\_Gateway/staging/info.properties is dirty  
> [1/8] /home/legato/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07100400-wp85-native-x86\_64-201606090913/resources/native/wrapper/arm-poky-linux-gnueabi-gcc --sysroot=/home/legato/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07100400-wp85-native-x86\_64-201606090913/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -MMD -MF Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/\_componentMain.c.o.d -c Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src/\_componentMain.c -o Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/\_componentMain.c.o -Wall -fPIC -Werror -fvisibility=hidden -DMK\_TOOLS\_BUILD -DLEGATO\_EMBEDDED -g -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/framework/c/inc -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/modemServices -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/secureStorage -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/logDaemon -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/positioning -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/airVantage -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/supervisor -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/wifi -IDLC-Legato-GatewayComponent/api -I…/…/…/…/…/legato/packages/legato.framework.16.7.0.201609081601/resources/legato/components -I/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway -ITarget\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src -DLE\_COMPONENT\_NAME=DLC\_Legato\_GatewayComponent -DLE\_LOG\_SESSION=DLC\_Legato\_GatewayComponent\_LogSession -DLE\_LOG\_LEVEL\_FILTER\_PTR=DLC\_Legato\_GatewayComponent\_LogLevelFilterPtr “-DCOMPONENT\_INIT=LE\_CI\_LINKAGE LE\_SHARED void \_DLC\_Legato\_GatewayComponent\_COMPONENT\_INIT()”  
> [2/8] /home/legato/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07100400-wp85-native-x86\_64-201606090913/resources/native/wrapper/arm-poky-linux-gnueabi-g++ --sysroot=/home/legato/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07100400-wp85-native-x86\_64-201606090913/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -MMD -MF Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/f7b7546393eb753b2adcf66e0a7251a4.o.d -c /home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent/DLC-Legato-Gateway.cpp -o Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/f7b7546393eb753b2adcf66e0a7251a4.o -Wall -fPIC -Werror -fvisibility=hidden -DMK\_TOOLS\_BUILD -DLEGATO\_EMBEDDED -g -std:C++11 -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/framework/c/inc -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/modemServices -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/secureStorage -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/logDaemon -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/positioning -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/airVantage -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/supervisor -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/wifi -IDLC-Legato-GatewayComponent/api -I…/…/…/…/…/legato/packages/legato.framework.16.7.0.201609081601/resources/legato/components -I/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway -ITarget\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src -DLE\_COMPONENT\_NAME=DLC\_Legato\_GatewayComponent -DLE\_LOG\_SESSION=DLC\_Legato\_GatewayComponent\_LogSession -DLE\_LOG\_LEVEL\_FILTER\_PTR=DLC\_Legato\_GatewayComponent\_LogLevelFilterPtr “-DCOMPONENT\_INIT=LE\_CI\_LINKAGE LE\_SHARED void \_DLC\_Legato\_GatewayComponent\_COMPONENT\_INIT()” -std=c++11  
> FAILED: /home/legato/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07100400-wp85-native-x86\_64-201606090913/resources/native/wrapper/arm-poky-linux-gnueabi-g++ --sysroot=/home/legato/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07100400-wp85-native-x86\_64-201606090913/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -MMD -MF Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/f7b7546393eb753b2adcf66e0a7251a4.o.d -c /home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway/DLC-Legato-GatewayComponent/DLC-Legato-Gateway.cpp -o Target\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/obj/f7b7546393eb753b2adcf66e0a7251a4.o -Wall -fPIC -Werror -fvisibility=hidden -DMK\_TOOLS\_BUILD -DLEGATO\_EMBEDDED -g -std:C++11 -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/framework/c/inc -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/modemServices -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/secureStorage -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/logDaemon -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/positioning -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/airVantage -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/supervisor -I/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/interfaces/wifi -IDLC-Legato-GatewayComponent/api -I…/…/…/…/…/legato/packages/legato.framework.16.7.0.201609081601/resources/legato/components -I/home/legato/VSTS-Products/DLC-XPlat-Gateways/Branches/Work-DevEnvSetup/DLC-Legato-Gateway -ITarget\_Legato\_Debug/component/9fb502c5985e309c60c3a2026e5703f9/src -DLE\_COMPONENT\_NAME=DLC\_Legato\_GatewayComponent -DLE\_LOG\_SESSION=DLC\_Legato\_GatewayComponent\_LogSession -DLE\_LOG\_LEVEL\_FILTER\_PTR=DLC\_Legato\_GatewayComponent\_LogLevelFilterPtr “-DCOMPONENT\_INIT=LE\_CI\_LINKAGE LE\_SHARED void \_DLC\_Legato\_GatewayComponent\_COMPONENT\_INIT()” -std=c++11  
> arm-poky-linux-gnueabi-g++: error: unrecognized command line option ‘-std:C++11’  
> ninja: build stopped: subcommand failed.  
> make: \*\*\* [target] Error 1  
> Makefile:48: recipe for target ‘target’ failed

---

<div class="post-metadata">

**Author:** ![karlkuhn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@karlkuhn](https://forum.legato.io/u/karlkuhn)\
**Post date:** [October 11, 2016, 8:20am UTC](https://forum.legato.io/t/ds-makefile-generation-problem/2183/6 "2016-10-11T08:20:02Z")

</div>

Hi reunan, I have tried your method of deleting the project and associated make/build files… Then re-imported it and it now builds fine. Thanks for the tip!
