Is it just me or are the install instructions for gcc-arm missing some information? I've downloaded gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2 and uncompressed it. The readme file in there states that all you have to do is add the bin directory to the $PATH. What could be easier? And yes that is easy. The problem with that is that whilst you can find the executable arm-none-eabi-gcc, as it's now in the PATH, the compiler can't find anything it needs to actually work. I can't think of a good analogy at the moment. :-(
So maybe this is the wrong forum for this question. Perhaps it's not even supported, but just in case it is, or somebody in here knows anything about it what are the "real" install instructions. Say for example you had a file containing the text:
#include <stdio.h>
void main(void)
{
}
How would you get that to compile? Actually lets make it even simpler and remove the include file, the linker will probably fall over if you ever got that far.
I usually use other processors but the 1Bitsy kickstarter was an easy in to ARM which I've always meant to have a look at. So that dev board is using an ARM Cortex-M4F so maybe we could try compile with "arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 main.c"
as: unrecognized option '-mcpu=cortex-m4'
Oops the tool chain is executing the wrong executable. Install instructions Fail! :-(
For the laugh lets try clone and make libopencm3 Oops can't find include files yet another fail :-(
It's just not my day.
Yes this is targeting bare-metal systems so you should define at least some of these (eg. _sbrk which malloc uses) in the application for it to work. If doing semihosting you can use -specs=rdimon.specs which will define these. Otherwise, you can use -specs=nosys.specs that will silence this but as I said, at least some of them should be defined by you.Best regards.