From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 05 03:24:51 2022 Received: (at 54239) by debbugs.gnu.org; 5 Mar 2022 08:24:51 +0000 Received: from localhost ([127.0.0.1]:47255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQPid-00083E-Iz for submit@debbugs.gnu.org; Sat, 05 Mar 2022 03:24:51 -0500 Received: from lepiller.eu ([89.234.186.109]:57220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQPib-000833-Uu for 54239@debbugs.gnu.org; Sat, 05 Mar 2022 03:24:50 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id f5e47765; Sat, 5 Mar 2022 08:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=ZwmRAgqLuRxt Bge5PZA4raZSB2No5x33wgXRk/phDB0=; b=M8fp2nONt+DsR/s8svWXdvXjLQvC GBtvhqkqo3+yOITBnd84aM0SxfXfEx8UFTiD9WtX1BwpdjrMGBjHVfCv6E1XqsN2 yfn1MkjuJBs5ALioyp+YrwALaZpd4sVJ8J5FOCGh2HELyF1SIU9JZqqUc66le26h Qam1bcspQqqVO+MveEiYsKkCS47oT+RBy9Jn82PlmSD8QziqOqNUjCNMBmKmLa6i UQCigyaS57A7Jte2P8cR5y9mnbwVVr969T4QIK1MnPhMt6o/zsffXt3o9nRp9u1q 2GAYC5lswP9LZCRxU/hBph6ogX/9iSM9ng/Tug0Rb4Sa9jmym8EZWYD/FA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 6c054277 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 5 Mar 2022 08:24:47 +0000 (UTC) Date: Sat, 5 Mar 2022 09:24:45 +0100 From: Julien Lepiller To: Pierre Langlois Subject: Re: [bug#54239] [PATCH v2 1/5] gnu: Add cross-llvm. Message-ID: <20220305092445.27693167@tachikoma.lepiller.eu> In-Reply-To: <87bkylo6ai.fsf@gmx.com> References: <20220303170252.3caec0a6@tachikoma.lepiller.eu> <499e5dba47ef40df93a8b33fbb8e41cc2354e7a1.1646387919.git.julien@lepiller.eu> <87bkylo6ai.fsf@gmx.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 54239 Cc: 54239@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le Fri, 04 Mar 2022 19:34:07 +0000, Pierre Langlois a =C3=A9crit : > Hi Julien, >=20 > Julien Lepiller writes: >=20 > > * gnu/packages/llvm.scm (cross-llvm): New variable. =20 >=20 > Do you really need to define a cross package for LLVM? In my > experience it was possible to use the same llvm libraries for native > and cross compilation. By default LLVM builds support for all > supported targets (provided they are not "experimental" IIRC). No, I don't think it's required. I only need it so I can define a default target that's different from the host. >=20 > Whereas for the clang package, at the moment it does have to be built > for a specific target IIUC. I hope that one day we could have the same > clang for native and cross compilation in Guix, but I don't think it > can work without some serious re-design of how cross-compilation > works. I've been trying to think about it but I don't yet have a good > understanding of it. You can use --target to control which target clang builds for (although I don't know if our clang package can work like that). I wanted to have a default target though, because passing --target all the time is cumbersome and we would have to adjust all recipes to pass the flag. With the default target set appropriately, (clang-for-target) will always produce binaries for the correct architecture, whether cross-compiling or not. >=20 > Thanks, > Pierre >=20