On 8/28/22 05:06, Andrei Borzenkov wrote:
"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).
Yes, but at least for freestanding systems the C standard specifies the minimal set of features that shall be provided. C-18 Clause 4 https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2596.pdf#chapter.4 (paragraph 6) The pico-sdk should provide the glue from there. I'll have to test the devel/gcc package and see if that is indeed the case. Using wkabuzski's packages, everything compiles just fine. I suspect that will be the same with the devel/gcc packages also. -- David C. Rankin, J.D.,P.E.