On 28.08.2022 12:30, David C. Rankin wrote:
On 8/28/22 01:00, Andrei Borzenkov wrote:
There is no bare-metal subpackage alone. Instead you get the entire gcc, e.g.
cross-arm-none-gcc11-11.3.1+git1902-lp154.148.1.. 1529106760
That is not the package I told you about.
Wow!
So:
cross-arm-gcc12-12.1.1+git372-lp154.36.1.x86_64.rpm
Leap 15.4 includes cross-arm-gcc11 (and several lower versions) so you do not even need external project for it.
is the cross-arm-none-eabi-gcc variant?
It is built for arm-suse-linux-gnueabi target. But that really only determines default values for some options and you can (and should) define your precise target options when using it.
If so, at 102M that's fine for gcc/g++12.
I guess using Yast once in a while wouldn't hurt. The description is a little hidden, but:
"Note this is only useful for building freestanding things like the kernel since it fails to include target libraries and headers." would seem to be exactly arm-none-eabi as long as it includes the required freestanding headers and crt.
It is unrelated to build target. SUSE does not provide target libraries which means you cannot really compile any "normal" user space program that usually has quite a lot of external dependencies. Strictly speaking they are not part of compiler either. E.g. Ubuntu provides some cross-libraries as separate packages (starting with glibc itself).
That's the first time I've seen it packaged without the none-eabi. Thank you. (wkazubski's naming is what I'm used to seeing on Arch, Debian, Ubuntu, etc.. that was the confusing point)
Side note -- if you haven't played with the Pi-Pico, that is one hell of a 133MHz dual-core microcontroller for $4.00 (get the h model and you don't even have to solder the pin-headers in) The C/C++ pico-sdk is one hell of a good package and .uf2 format makes flashing a breeze with the pico started in mass-storage mode. The size and weight of a stick of gum and 100X the processing power it took to go to the moon.