Hi, On Tue, 26 Apr 2022 at 10:00, Mathieu Othacehe <othac...@gnu.org> wrote: > > I've had this experience before, it's very confusing (it goes on trying > > to build a toolchain for something that is sure to fail). Perhaps we > > could at least have a place to refer to in the manual for the common GNU > > triplets which make the most sense in for GNU Guix (e.g., the currently > > supported GNU system triplets). Currently I grep the manual for > > disparate examples when my memory fail me.
[...] > * Define all the supported architectures in (gnu platforms). We already > have ARM and Hurd defined there. > > * Define %supported-systems and %supported-targets lists constructed by > parsing the <platform> records. > > * Use those lists to check the values passed to --system and --target > arguments. > > * Add --list-available-systems and --list-available-targets arguments > for all the commands supporting --system and --target arguments. I agree. It would ease the dance. In addition, it would help to have a subsection in the manual about "cross-compilation"; maybe under the Development section. For instance, I do not find clear the difference between 'system' and 'target'. And the explanations for the triplet are outside the Guix manual, pointing to [1] which I do not find very clear. Something like an explicit list of possible values for this triplet would be worth. 1: <https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/autoconf.html#Specifying-target-triplets> Cheers, simon