Hi Steve, On Sat, Oct 05, 2024 at 09:01:25AM -0700, Steve M wrote: > Thank you for testing my package and providing a patch. I would take it as-is > and call it a day, but I am in the middle of switching my upstream source from > Microchip to the Debian package gcc-source as well as switching over to using > the dh sequencer. I don't know what impact this will have on cross building > so I > need to be able to reproduce the build errors that you reported. Is there a > cross build test case that uses amd64 as the host or were they only with other > host architectures? I do have an arm64 and riscv SBC available for me to build > on, it would just take longer than the amd64 host build.
I fear that at this time cross building in Debian is broken in testing and unstable for all packages. There is a disagreement between kernel maintainers and toolchain maintainers in the process of being resolved, but in the mean time a cross building simply doesn't work at all. Adding cross-toolchain-base from experimental does make it work somewhat. I expect it to be resolved within a month and maybe even within a week. The good thing about cross building is that you don't actually need special hardware. Quite the contrary, the point of cross building is to enable building for arm64 or riscv64 on amd64. gcc-avr is special here, because it is a compiler itself. In essence, cross building gcc-avr amounts to a "canadian cross build" (i.e. build, host and target mutually differ). Once cross building works again, you may do one of sbuild -d unstable --host=arm64 gcc-avr_*.dsc pbuilder build --host-arch=arm64 gcc-avr_*.dsc on your normal amd64 development machine and the expectation would be that it builds roughly the same speed as your native build just producing an arm64 .deb rather than an amd64 one. And then as you restructure and the proposed patch no longer is applicable, please consider closing the bug indicating that the proposed solution no longer works. That closure should raise my attention and I may look for a new patch for your restructured gcc-avr package. Helmut