Man... this took me a while to understand why I couldn't build a cross toolchain for freebsd anymore. We use the tc-arch-kernel function in freebsd-lib to determine which target kernel arch we will use and it now returns x86 here which is not a valid kernel for FreeBSD. This causes incomplete headers to be installed and the build fails at the cross gcc stage 1... I'll attach a patch.
Created attachment 153609 [details, diff] patch
looks good, feel free to apply
(In reply to comment #2) > looks good, feel free to apply > applied, thanks for the review. mind if I also add a test for that in tests/toolchain-funcs.sh ?
as long as the tests continue to pass, should be OK :)