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?
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.
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.
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).
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
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!