On 06.08.21 15:09, Philippe Gerum wrote: > > Jan Kiszka <jan.kis...@siemens.com> writes: > >> Hi all, >> >> just wanted to debug the RTnet issues we now see in CI on arm and arm64. >> I picked arm as first target, but that apparently starts to break with >> gcc-9 or newer (tried 9.2 and 10.2): >> >> make[5]: Entering directory '/xenomai/lib/cobalt/arch/arm' >> CC libarch_la-features.lo >> features.c: In function 'cobalt_arch_check_features': >> features.c:82:1: error: r7 cannot be used in 'asm' here >> 82 | } >> | ^ >> >> That seems to be related to passing the syscall number via r7 on ARM. Is >> our ABI soon no longer compilable, or can we fix this? >> >> Jan > > r7 may be used as a scratch register by gcc in some > cases. -fomit-frame-pointer for debug builds may help (i.e. when the > optimizer is switched off). >
Good hint. I had --enable-debug=full set, and it builds without it (and now reports other issues that Debian's gcc-10 sees). But how to resolve this properly? Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux