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 ms0.migadu.com with LMTPS id iHNyFHUeI2I/+wAAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 09:25:25 +0100 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 QP3sEXUeI2JFUgEA9RJhRA (envelope-from ) for ; Sat, 05 Mar 2022 09:25:25 +0100 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 AE82A32BD0 for ; Sat, 5 Mar 2022 09:25:24 +0100 (CET) Received: from localhost ([::1]:53056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQPj9-0000r6-KG for larch@yhetil.org; Sat, 05 Mar 2022 03:25:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQPio-0000qu-G5 for guix-patches@gnu.org; Sat, 05 Mar 2022 03:25:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQPio-0007jg-5v for guix-patches@gnu.org; Sat, 05 Mar 2022 03:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQPio-00083e-2O for guix-patches@gnu.org; Sat, 05 Mar 2022 03:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54239] [PATCH v2 1/5] gnu: Add cross-llvm. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 08:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54239 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: 54239@debbugs.gnu.org Received: via spool by 54239-submit@debbugs.gnu.org id=B54239.164646869130956 (code B ref 54239); Sat, 05 Mar 2022 08:25:02 +0000 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 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-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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646468724; 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=kGgksGK8ED9Q45RkPPi4oTiOeVzcLZ/B+/C3zu3L+AM=; b=Ccg6nbXlxrLz3nFKrfk+FK1zxEp8/kYyeSEgimVyaONNeCpWaFpY9b7D9GrPFVttN/rRnP CMfJ3udmFCLuZzQ3d6RfZrJJdMMF3ZJ5sLl5U8P/7kTUtkYIpk/WmmvnWdKzVEZbg5UjOs jRdnuNLFlRhheZaIwrn5UgiwawIw6DS8uVs2VyVhdFqisnAe8K2NzMlskVT1H5eDIZ7s9t l1XhNUPBKrcLw6oPPtNuO+FwFdycwAvH8P3+h8KHnmcNSo/lns1pqSRBiOvrlgGM8ISOYk eESBGLnpWduXUSA+uVTDqMlN3Hi9bfYszWv+ZH1j1Sqy+BRLdT3UuZGyoNqgSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646468724; a=rsa-sha256; cv=none; b=tfSv0ytpvxd+bSTNgn+5yjz0/qVjRmm155U/d6JUXPGfDulNeFkswTQTRJDpo82DGO/luX IbfOUNA5LDrjFlt997Eg8WhhxfF+Yf0UOMmEkvEHBz0MybxE4gmTELWo/ex0YlNel5yzXm 4PIxl70ZoN4wUPpJxQ2wsO3diThB0Ini6SgeTGPWB3ifjr0dQWbRMBvg4Ll9nApFqjvfRd AqPVedItDjF/aUTHDIXwLvbU3uHp8khwkG25BUYi34df1tqo0voa3QTC66BS05k5cf7Q6c fM409tyqfOBLENRVhZH25LEjb9uPwfeylrtvOXABtpBU2zTTYe9emC9tY4os5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=M8fp2nON; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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: 5.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=M8fp2nON; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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: AE82A32BD0 X-Spam-Score: 5.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: xyQqUpMCS/Q1 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