I get errors when try to build the firmware. I seriously have no idea what you mean by this:
arm-none-eabi-gcc and other required gcc/arm binaries not in the PATH. Solution: Add the /bin folder to your $PATH (i.e. export PATH="$PATH:<SOME_GCC_ARM_DIR>/bin). Google “Add binary to PATH” for more details.
I searched Google, nothing close to my answer. Any tips?
Sounds like you are missing some files or your computer doesn’t know where to look for them.
stdatomic.h is part of GNU GCC arm toolchain files used to compile your code. Have you installed them? you can get the link from here https://github.com/spark/firmware
If you have installed them then the computer doesn’t know where they are. the location will need to be set in your Path Variables. the path variables can be set in Control panel - system - Advanced system settings - Evnironment variables… make sure path is highlighted and click edit. you should find something like this, if not then you will need to add it in (just make sure that the folder structure matches your setup and the version matches the one your using)
Tick YES on all the above! Still the same problem as before!!! Btw Im on 10.6.8 if something has got to do with it.
Question: Are the repositories (firmware, core-communication-lib and core-common-lib) supposed to go altogether? I have created a folder namer Spark in my User/Local directory, and in there each folder exists (with the gcc_arm too).
Shouldn't matter, as all the build related binaries/includes are coming from the arm-gcc package.
Yep as they are currently included in the makefile via relative paths and assuming you trigger make from inside core-firmware/build/.
It's a little bit weird issue, as stdatomic should indeed be a part of the arm-gcc toolchain. To get closer to the source of this error, please copy&paste the output of arm-none-eabi-gcc --version - thanks!
However, I suspect that there might be a problem with the installation of arm using brew. I used this process to install it at first, and possibly I have to undo this installation and install it fresh.
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
This is a very unrelated problem to the previous on, I tried compiling the mentioned sparkcore_osc and ran into deprecated and dozens of other compilation errors. Try directly contacting the software maintainers with a detailed error output copy&paste via their Issues · trublion/sparkcore_osc · GitHub tracker (or maybe their post here or here) to get support related to their code - good luck!
It looks the compiler thinks you are defining all the OSC stuff more than once. Assuming you don’t have multiple copies of the code being compiled, then the usual way this happens is by #include'ing something like a header file more than once and it is not protected against that.
Try going to into any .h file and adding this at the top: