Getting started - `Failed to parse bakefile` error for example project blinky

29 views
Skip to first unread message

jisaa...@gmail.com

unread,
May 12, 2016, 7:00:42 PM5/12/16
to nerves-project
Hey guys. I am working through the tutorial with no previous experience in embedded systems and only limited experience with BEAM languages.

Here is my first blocker

in the blinky demo

http://nerves-project.org/learn/blinky-demo/

running this bake command ->

`bake toolchain get --target rpi2`

results in this error

>bake firmware --target rpi2** (Bake.Error) Failed to parse bakefile: %Code.LoadError{file: "/Users/jistone/nerves/nerves-examples/blinky/Bakefile", message: "could not load /Users/jistone/nerves/nerves-examples/blinky/Bakefile"}

And it's true! blinky/Bakefile does not exist.

my first thought is I need to run some mix commands first?

on the GitHub page [https://github.com/nerves-project/nerves] it lists a few (such as mix deps.get and mix firmware)

Is that correct?

thanks,
- isaac

Frank Hunleth

unread,
May 12, 2016, 7:50:56 PM5/12/16
to nerves-...@googlegroups.com
Hi Isaac,

I think you hit an inconsistency with our docs that was introduced very recently. The build command, bake, has now been integrated with the mix build tool. Justin Schneck who did the work gave a presentation on it this morning at ElixirConfEU. He has been updating docs, but the website is unfortunately out of date now.

I'll alert him to the additional updates. We did a lot of work leading up to ElixirConfEU and will be taking a little breather over the weekend.

I think you have a couple options. One would be to check out the version of the examples from a few days ago. The Bakefile should be there. The other option is to wait for us to finish updating all of the docs next week. I'd go with the second, since using mix is an improvement over bake.

Also, we hang out on the elixir-lang slack now. It seems that people like it better now, so you can usually get more immediate help there. The invite is at https://elixir-slackin.herokuapp.com/.

Frank

--
You received this message because you are subscribed to the Google Groups "nerves-project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nerves-projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Frank Hunleth
Troodon Software LLC
Embedded Software Development
http://troodon-software.com/

jisaa...@gmail.com

unread,
May 12, 2016, 8:12:02 PM5/12/16
to nerves-project
Yeah I'll get around to installing slack one of these days. Probably just before it becomes obsolete... :P

Anyway I seem to have things working now using the example Bakefile I found here:

http://nerves-project.org/news/2016/01/15/get-cooking/

Are the changes already complete and just need to be merged? I am willing to help update the docs if you point me to the right place :)

jisaa...@gmail.com

unread,
May 12, 2016, 8:15:01 PM5/12/16
to nerves-project
PS,

why Bakefile and not bakefile.exs? I could get some syntax-highlighting for free that way. Now I need to read through the syntastic documentation again ....

Frank Hunleth

unread,
May 12, 2016, 8:23:24 PM5/12/16
to nerves-...@googlegroups.com
Cool - you should be good with that Bakefile.

The Bakefile is going away completely and everything will be in mix.exs. Actually that transistion was intended to be today. This allows us to reuse the mix infrastructure for package management and building rather than replicating it in our own tool. Unfortunately, we have a lot of references to bake to update.

The changes to the website haven't been made yet, but I heard from Greg Mefford that he'd make a pass over the next couple days. I'll post when he has something to share. If you're still up for it, having someone really new to the project run through the instructions would be helpful.

On the chance that you find any other inconsistencies, our website repository is at https://github.com/nerves-project/nerves-project.github.com. Please log a PR, and we'll update right away.

Thanks!
Frank

jisaa...@gmail.com

unread,
May 12, 2016, 10:50:37 PM5/12/16
to nerves-project
Yeah, let me know when the new documentation/methods are posted and I'll do a run through ^_^

jisaa...@gmail.com

unread,
May 13, 2016, 12:37:51 AM5/13/16
to nerves-project
Hey so I couldn't resist messing around some more and I've hit on another issue.

mix firmware is failing because of a badmatch in :erlware_commons.

Should I keep posting in this thread or would another location be more appropriate?

anyway I threw up the logs here

https://gist.github.com/jisaacstone/e37d54a6946a6c55a35819901bc1b17f

I'm on OSX, target is rpi, and I've got development version of elixir running ... I'll downgrade and try again tomorrow but if anybody wants to glance over my logs in the meantime I'd appreciate it.

thanks
 - isaac

jisaa...@gmail.com

unread,
May 13, 2016, 8:51:33 PM5/13/16
to nerves-project
OK downgrading elixir to 1.2.4 worked

:)
Reply all
Reply to author
Forward
0 new messages