Recipe for target 'wp77' failed - Error 1

Hi All,

New to MangOH, just got a board recently and working through installing Legato environment and the basic tutorials now.

I have installed the WP7702 CF3 module, working through the instructions on

and

The device itself is pinagable.

I downloaded and installed legato-18.01.0-R8-WP77-linux-64bit.zip.

Running through the examples, I am encountering problems with building the HelloWorld example program.

I navigate to the HelloWorld folder using CLI and type

$make wp77

And I get a whole lot of messages. The following is the output after the above CLI command:

mkapp -v -t wp77
helloWorld.adef
C compiler = gcc
C++ compiler =g++
Compiler sysroot = /home/ledmidi/legato/packages/legato.toolchain.2.2.2.SWI9X06Y_02140400-wp77xx-native-x86_64-201803061027/resources/native/sysroots/armv7a-neon-poky-linux-gnueabi
Linker = ld
Static lib archiver = ar
Assembler = as
Debug symbol stripper = strip
Object file copier/translator = objcopy
ELF file info extractor = readelf
Command-line arguments from previous run not found.
Parsing file: ‘/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/apps/sample/helloWorld/helloWorld.adef’.
Modelling application: ‘helloWorld’
defined in ‘/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/apps/sample/helloWorld/helloWorld.adef’
Application ‘helloWorld’ contains executable ‘helloWorld’.
Parsing file: ‘/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/apps/sample/helloWorld/helloComponent/Component.cdef’.
Modelling component: ‘helloComponent’
found at: ‘/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/apps/sample/helloWorld/helloComponent’
== ‘helloComponent’ component summary ==
C sources:
‘/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/apps/sample/helloWorld/helloComponent/helloWorld.c’
Executable ‘helloWorld’ in application ‘helloWorld’ contains component ‘helloComponent’ (/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/apps/sample/helloWorld/helloComponent).

== ‘helloWorld’ application summary ==

Uses components:
‘helloComponent’
Builds executables:
‘helloWorld’
Instantiates components:
‘helloComponent’
Runs inside a sandbox.
Has the following limits:
maxSecureStorageBytes: 8192
maxThreads: 20
maxMQueueBytes: 512
maxQueuedSignals: 100
maxMemoryBytes: 40960000
cpuShare: 1024
maxFileSystemBytes: 131072
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: ‘helloWorld’
Executing file: ‘helloWorld’
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: 102400 bytes
Max. file size: 102400 bytes
Max. locked memory size: 8192 bytes
Max. number of file descriptors: 256
Executable ‘helloWorld’:

Generating interfaces.h for component ‘helloComponent’ in ‘_build_helloWorld/wp77/component/8b29a5280e9ca49193f0d66f33bd9409/src/interfaces.h’.
Generating component-specific IPC code for component ‘helloComponent’ in ‘_build_helloWorld/wp77/component/8b29a5280e9ca49193f0d66f33bd9409/src/_componentMain.c’.
Generating system configuration data for app ‘helloWorld’ in file ‘_build_helloWorld/wp77/app/helloWorld/staging/root.cfg’.
Generating startup code for executable ‘helloWorld’ (app/helloWorld/obj/helloWorld/helloWorld) in ‘_build_helloWorld/wp77/app/helloWorld/src/helloWorld/_main.c’.
Generating ninja build script: ‘_build_helloWorld/wp77/build.ninja’.
Executing ninja build system…
$ ninja -v -d explain -f _build_helloWorld/wp77/build.ninja
ninja explain: depfile ‘_build_helloWorld/wp77/component/8b29a5280e9ca49193f0d66f33bd9409/obj/53273d9cca84aa4699425b4ab92cd0f2.o.d’ is missing
ninja explain: _build_helloWorld/wp77/component/8b29a5280e9ca49193f0d66f33bd9409/obj/53273d9cca84aa4699425b4ab92cd0f2.o is dirty
ninja explain: depfile ‘_build_helloWorld/wp77/component/8b29a5280e9ca49193f0d66f33bd9409/obj/_componentMain.c.o.d’ is missing
ninja explain: _build_helloWorld/wp77/component/8b29a5280e9ca49193f0d66f33bd9409/obj/_componentMain.c.o is dirty
ninja explain: /home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/build/wp77/framework/lib/liblegato.so has no in-edge and is missing
ninja explain: /home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/build/wp77/framework/lib/liblegato.so is dirty
ninja explain: _build_helloWorld/wp77/staging/read-only/lib/libComponent_helloComponent.so is dirty
ninja explain: _build_helloWorld/wp77/app/helloWorld/staging/read-only/lib/libComponent_helloComponent.so is dirty
ninja explain: depfile ‘_build_helloWorld/wp77/app/helloWorld/obj/helloWorld/_main.c.o.d’ is missing
ninja explain: _build_helloWorld/wp77/app/helloWorld/obj/helloWorld/_main.c.o is dirty
ninja explain: _build_helloWorld/wp77/staging/read-only/lib/libComponent_helloComponent.so is dirty
ninja explain: /home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/build/wp77/framework/lib/liblegato.so is dirty
ninja explain: /home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/build/wp77/framework/lib/liblegato.so is dirty
ninja explain: _build_helloWorld/wp77/app/helloWorld/obj/helloWorld/helloWorld is dirty
ninja explain: _build_helloWorld/wp77/app/helloWorld/staging/read-only/bin/helloWorld is dirty
ninja explain: _build_helloWorld/wp77/app/helloWorld/staging/info.properties is dirty
ninja: error: ‘/home/ledmidi/legato/packages/legato.framework.18.1.0.wp77xx-201803061033/resources/legato/build/wp77/framework/lib/liblegato.so’, needed by ‘_build_helloWorld/wp77/staging/read-only/lib/libComponent_helloComponent.so’, missing and no known rule to make it
Makefile:7: recipe for target ‘wp77’ failed
make: *** [wp77] Error 1

I have looked through forums and found similar looking errors, however I can’t progress from here based on the info that I have found.
Is there something really obvious going on here? Assistance would be greatly appreciated.

Cheers,
Aleo

Hi Aleo, it happened twice to to me on a MangOH Red as well. The first time went away after reinstalling but I didn’t know exactly why. After checking the number of files in the legato framework directory and making sure that my new installation had all the scripts of the original one I could move on and make for all modems.

To find the number of files in both directories I used:

find legato_framework -type f | wc -l 

Hope it helps for you as well.
Marc