Build fail with cmake on Blinky app

Hi,

As I’m new on mbed I’m trying to compile with yotta instead of the online tool.
Well I followed all the yotta instructions for linux users (I’m on manjaro).
Clone the example-mbedos-blinky git enter into it, perform a yotta target frdm-k64f-gcc and next a yotta build. Here is next the output I have:

If you need here is the CMakeError.log: CMakeError.log - Pastebin.com
And here is the CMakeOutput.log: CMakeOutput.log - Pastebin.com

I really don’t know what appends. Moreover, 2 days ago I was able to build on the same computer before I reinstall my manjaro yesterday… Maybe I missed a library but can’t find which one…

Thanks,

RoToR

Just tested on a clean target and that went fine… Can you run:

yt update
yt clean
yt build

If that fails can you post the content of your module.json file?

Looks like this error is caused by the combination of CMake 3.5 and your build target: what’s the output of yotta target? (A yotta update should update these, which will probably fix the problem)

Hi janjongboom,

Here is the output : ➜ example-mbedos-blinky git:(master) yt update info: get versions for frdm-k6 - Pastebin.com

There is still a problem…

jamcro01: Here is the output of yotta target:

Thanks. Should be fixed by mbed-gcc 1.2.1 (run yotta update, then yotta clean once more!)

1 Like

You guys are AWESOME !!!

Everything works well !! Here is the output for futur person who may pass here: awesome - Pastebin.com

Thanks a lot !

Okay well…
Tried to remove the git and try again with a clean git and now have compile error when I try to build for another official board (for example F401RE) which did works well in the past.
output: F401RE-build - Pastebin.com
Same problem after a yotta update and a yotta clean
Sorry I don’t really know how everythings works but it looks like it on the mbed library that the error is.

Maybe when you updated the mbed-gcc it created compilation errors on some devices; for example when I run a yotta target:
st-nucleo-f401re-gcc 0.2.5
mbed-gcc 1.2.1

Hey it works !

Well, how did you find that solution ?

Now I’m trying to build for my F411RE (no official support…) and… ninja fail ! Awesome :joy: (but already had this error so that’s “normal”)

Thanks for the help everyone and @jamcro01 I’ml interested about your point of view for theory I had on my previous post !

I don’t think the mbed-gcc 1.2.1 target fix would have caused the second build failure, but other things might have been updated by yotta update. I think @dbaba’s analysis is correct.