From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cGUgN6KhimJEuwAAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 22:48:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UEgDN6KhimLKlAAA9RJhRA (envelope-from ) for ; Sun, 22 May 2022 22:48:34 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B1DF2A6E9 for ; Sun, 22 May 2022 22:48:34 +0200 (CEST) Received: from localhost ([::1]:56260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nssV7-0003el-3e for larch@yhetil.org; Sun, 22 May 2022 16:48:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nssUc-000395-8r for guix-patches@gnu.org; Sun, 22 May 2022 16:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nssUb-0000Zv-WF for guix-patches@gnu.org; Sun, 22 May 2022 16:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nssUb-0001ed-TU for guix-patches@gnu.org; Sun, 22 May 2022 16:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55321] Document building for foreign architectures Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 May 2022 20:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55321 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 55321@debbugs.gnu.org Received: via spool by 55321-submit@debbugs.gnu.org id=B55321.16532524436172 (code B ref 55321); Sun, 22 May 2022 20:48:01 +0000 Received: (at 55321) by debbugs.gnu.org; 22 May 2022 20:47:23 +0000 Received: from localhost ([127.0.0.1]:46530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nssTz-0001bU-27 for submit@debbugs.gnu.org; Sun, 22 May 2022 16:47:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nssTx-0001bI-P8 for 55321@debbugs.gnu.org; Sun, 22 May 2022 16:47:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nssTs-0000XS-GF for 55321@debbugs.gnu.org; Sun, 22 May 2022 16:47:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=P6CLd3Dqe+jvkvs+aOpfWqG6p8CD7CXr9dMkTafAncY=; b=d6M3exlYKpZHqEmkc+pW wgd/bguCifuao16y4CqKskUFXugr2/pf6HSG8dqBT4mJ2S5f9ndVWOka3nTVphAlDhBDmw/nisSPs ZDqhncDEeTdKI+yADI5NzWJ+latcMT146RNMCycBs8HVY0mJePBr15ei7xDOn0VCsIjbAoHBG2Uws 71eopa52ED60/le+XW9qfXfTcAuiirAYleF1oyzGgeaDXGAickkdhboQQEWHmziXUi3qVOUpDEmm/ MSe0MIAD9W0qhNDRaKm1s4yVnLo6AmTmvvajfIuIZLcL/B8dtcRKl0G+CTFxC54MjuR0GvDD0EFVi NJ0L9pyawvHs6Q==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55232 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nssTs-0003ZC-07; Sun, 22 May 2022 16:47:16 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87k0avdi8p.fsf@gnu.org> Date: Sun, 22 May 2022 22:47:13 +0200 In-Reply-To: <87k0avdi8p.fsf@gnu.org> (Mathieu Othacehe's message of "Sun, 08 May 2022 19:52:38 +0200") Message-ID: <874k1hqoq6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653252514; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=P6CLd3Dqe+jvkvs+aOpfWqG6p8CD7CXr9dMkTafAncY=; b=HzZr6ooN8qqasm1jOCp2Js3QHrTZy5CLfBkfNT/Fl6cNSgeDGpxeunsQkrFaWA8nACtGUR QsxuAw3eL3BJcLf6chDAQ8uhRIF/XqWUpXhlObLB3UYWTzeZCqzrpSJIvlK/Ke0o47namK r3LUsl0bPHWCzXvB56PSDDjVwsX8Ya5Q/uA8V29qzMe2UjRAmzwkofcItfVnb4xXZsC1Ja zpDAbZoOivnnfDy2a4cpqdvY5wV70KdUC9HWZCLeJOjmPLjmYF8ju67WIToAtY8y1KL7+B 3qKoYDD1sy6iP+FRW+5eoztSVMq+tocLmRmzpK4rnKWKVv0Az3Pw+cBMRoeH2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653252514; a=rsa-sha256; cv=none; b=UyQn4y4fsCWAxtpjjopVo3DGW29RqMdljhD3t+CwmVcJK6B4jVIX4sP80BasvEeofZTfur mEIDiPzqtCPEdinaZMeX5RorDrFYGWbbcJjIkTvCmpxvhXbX8QdFghv5IApmX0yMBvOD6K fhVzwhy5Ml7SVLAJSfwg7Vz2GY+eLs09Tc5zhj0UJoq/R60xQXGgzA+hxWi4s3UaqngU9H z9fHEA5K4JAoV3b8BUEyIXeFAHb2zuFaswYDN5vHHNuantcs3Fbi0lI5WVDfq6wgy+0x+K TRU5syKFmOv6RWwha6LfbA/gSII7bZNd6iqV5ezA94mhMGfuQyJef6y5gl2w/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=d6M3exlY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=d6M3exlY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3B1DF2A6E9 X-Spam-Score: -3.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: CmUED6cxNB0F Hi! I=E2=80=99m late to the party but I=E2=80=99d like to contribute this: =F0= =9F=91=8D Some nitpicking though: > +Foreign architectures > +* Using cross-compilation:: Build for foreign architecture using cross-= compilation. > +* Using native building:: Build for foreign architectures natively. Please use =E2=80=9Ctitle case=E2=80=9D for node and section names, as in: Foreign Architectures > +You might need to use GNU Guix to produce packages (@pxref{Invoking guix > +package}), packs (@pxref{Invoking guix pack}) or even full systems > +(@pxref{Invoking guix system}) targeting computers with different CPU > +architectures than the one of your current CPU. > + > +GNU Guix supports two distinct mechanisms to target foreign As a rule of thumb, I think it=E2=80=99s good to avoid repeating =E2=80=9CG= NU Guix=E2=80=9D because the reader most likely knows that it=E2=80=99s the manual they=E2= =80=99re reading :-) and because we can often be more precise or less verbose. In this case, we could write: You can build packages, packs, or even full systems targeting computers with a different CPU architecture than the CPU you are using, or running a different operating system. > +@item > +The second one, called native building, consists in building using the > +CPU instruction set of the foreign system you are targeting. It often > +requires emulation, using the QEMU program for instance. > +The targets are specified as GNU triplets (@pxref{Specifying Target s/The targets/Targets/ (or =E2=80=9CCross-compilation targets=E2=80=9D?) > +@node Using native building > +@section Using native building Or: =E2=80=9CNative Builds=E2=80=9D? (=E2=80=9CUsing [=E2=80=A6] building= =E2=80=9D sounds weird to me.) That=E2=80=99s all, thank you! :-) Ludo=E2=80=99.