-
• #2
Maybe try just running the compiler?
arm-none-eabi-gcc
- it looks like there's some problem with it.Can you try running
source scripts/provision.sh PUCKJS
and then building? That'll pull all the tools into the Espruino directory and set up the paths for you, which is the nice easy way to do it - it's possible there's something odd about/usr/local
on Bash for Windows 10. -
• #3
Gordon,
Thanks for the quick reply. I'll try running that this evening when I get a chance to dive back into this.
When I run source scripts/provision.sh PUCKJS that goes off without a hitch. The first time it did install gcc-arm-embed in the Espruino directory as a new folder "gcc-arm-none-eabi-6-2017-q1-update".
I take it I just need to change the export path to that location.
Regards and thank you,
-
• #4
Yes, I bet that's it then. It must be something about
/usr/local
...provision.sh
won't download the files if they already exist, so it's actually pretty quick to just call that every time you want to start cross compilation. Otherwise you could add the relevant paths to.profile
in your home directory. -
• #5
That appears to have done it. I can make clean && make for BOARD=PUCKJS and a new PUCKJS file is put into the boards folder. Alternately a simple make clean && make creates a LINUX file in the boards folder, and either or a new espruino file in the Espruino directory. So all appears to be normal.
I did have to add a line to my hosts file to include 127.0.0.1 YOURCOMPUTERNAME
so bash would stop with the unable to resolve host lines.Regards,
-
• #6
Now that I know I'm setup to compile under normal circumstances I can get on with the heavy lifting.
I'm evaluating Puck.js for a project that would require modifying existing custom firmware with jswrap. To get started I figured I would start with the basic steps of re-building the libraries.
After following the instructions within /master/README_Building.md and installing BASH under Windows 10 I can successfully build for Espruino, but I am running into problems for cross compilation for Puck.js.
First I assume line 8 should read since that is the folder that is created from the prior step:
sudo mv gcc-arm-none-eabi-5_4-2016q3 /usr/local
The error I'm encountering during the build process:
Any help would be appreciated.
Regards