DS makefile generation problem?


#1

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?


#2

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


#3

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.


#4

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

Reunan,


#5

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


#6

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!