GCCSDK on Linux
Lothar (3292) 134 posts |
What is the best proven Linux distribution for GCC cross-compiling ARM 32-bit ELF for RISC OS Debian x86 64-bit or 32 bit Pi OS ARM 64-bit or 32-bit And do you work with command line and editor only? Or with Eclipse? |
Steve Fryatt (216) 2105 posts |
It works fine on a 64-bit Ubuntu system here.
I have a recollection that it won’t work on ARM-based Linux, because things get confused. ISTR a longish thread on this (possibly in csa.programmer), which eventually got to the realisation that it was a non-starter. Whether that’s been fixed since or not, I’m not sure.
It’s CLI-only here; I’m sure that I could automate the build process in VSC, but debugging obviously won’t work. It’s fairly easy to get the auto-completion, code error highlighting and so on working with the GCCSDK environment, though, which is a nice feature to have — it’s just a case of pointing the C mode’s include path to the GCCSDK environment. |
David Pitt (3386) 1248 posts |
GCCSDK can be persuaded to run on the RPi, Chris Gransden posted a work around somewhere. It does work, I have built it on my RPi4. It is however very slow. Ubuntu in a VM on the Mac is a much better idea. The Pi has the advantage of being a bit cheaper though. I’m not near my Pi at the moment but I could post the fix later if required. |
Alan Buckley (167) 232 posts |
I’m currently using Visual Studio Code on Linux. I did use Eclipse for quite a while. I still occasionally just do a compile/make at the command line. When using the command line I tend to use whatever the GUI editor is in Linux to edit the code. |
Tristan M. (2946) 1039 posts |
gccsdk will build on most things. I’m running it normally on arm64 in Ubuntu on a Jetson nano. I have also used it it on various 32 bit arm devices. Unless you are building the big stuff, it’s pretty quick. For everything else, just pretend it’s 10 years ago. |
Rick Murray (539) 13840 posts |
Is that ten years ago in real world terms (when Eyjafjallajökull, and Windows 7 was shiny and new) or is that ten years in RISC OS terms (which would put it about the time Arthur 0.30 was released)? |