From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mFrDK3xhI2Jx7AAAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 14:11:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 1jRcJHxhI2LGegEAG6o9tA (envelope-from ) for ; Sat, 05 Mar 2022 14:11:24 +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 257E93E78C for ; Sat, 5 Mar 2022 14:11:24 +0100 (CET) Received: from localhost ([::1]:55656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQUBu-0004Sm-RA for larch@yhetil.org; Sat, 05 Mar 2022 08:11:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQUBh-0004Sc-O0 for guix-patches@gnu.org; Sat, 05 Mar 2022 08:11:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQUBa-0006ET-N0 for guix-patches@gnu.org; Sat, 05 Mar 2022 08:11:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQUBa-00037L-Fk for guix-patches@gnu.org; Sat, 05 Mar 2022 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54239] [PATCH v2 1/5] gnu: Add cross-llvm. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 13:11: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: Julien Lepiller Cc: 54239@debbugs.gnu.org, Pierre Langlois Received: via spool by 54239-submit@debbugs.gnu.org id=B54239.164648585511971 (code B ref 54239); Sat, 05 Mar 2022 13:11:02 +0000 Received: (at 54239) by debbugs.gnu.org; 5 Mar 2022 13:10:55 +0000 Received: from localhost ([127.0.0.1]:47481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQUBT-00036z-7k for submit@debbugs.gnu.org; Sat, 05 Mar 2022 08:10:55 -0500 Received: from mout.gmx.net ([212.227.17.21]:40029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQUBR-00036m-9t for 54239@debbugs.gnu.org; Sat, 05 Mar 2022 08:10:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646485845; bh=CuA2q6em7bJ53i7SNigugqXb73QACcsxw6HRH8BqY2o=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=W4F1eFb5BIdnqFqi7i2V+fxval+1P9GBgpu5B6cxyZ1VxMRWPEB9/Fym2SbIgyhiW CPbwnBDvP/g3QArDnCZCzynl4skv1dM9M1KyLxml9tpHNdeYt2erfw/b5cgsThblme rIDqEA2jzXV91CcjoxIR8cxQZtYS7vshgBN7SiUE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MEFzx-1nITq42Uuj-00ADkn; Sat, 05 Mar 2022 14:10:45 +0100 References: <20220303170252.3caec0a6@tachikoma.lepiller.eu> <499e5dba47ef40df93a8b33fbb8e41cc2354e7a1.1646387919.git.julien@lepiller.eu> <87bkylo6ai.fsf@gmx.com> <20220305092445.27693167@tachikoma.lepiller.eu> User-agent: mu4e 1.6.10; emacs 27.2 From: Pierre Langlois Date: Sat, 05 Mar 2022 13:02:48 +0000 In-reply-to: <20220305092445.27693167@tachikoma.lepiller.eu> Message-ID: <874k4cmtny.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:3lbqJlNdLUOgVoXV3F/dwLZk6U//oAHF0ihfcXt9gGr2eHZXxyW h6qTxlWzlwBdi7OA7iwsM1STBd/XMHSsP/QZ4SuS9HbYsRKaHlr+Ywn0qHPKizOKVmiuxoZ 3VcXxN2QGUAi7sl0hbFroaymOM4rhsMvIDSDc+s8Vz2wGIYsl3w+2/yTNO69qZ4r84NJ5Ea dKGEZyOQxLPoOpUQfc4fw== X-UI-Out-Filterresults: notjunk:1;V03:K0:z52kRtVncSk=:Sx+EtOC4bzTWI9qOOltJPH ip6VBibv0D7YFUqrpJJ3DHyW+c0auvGurCs2KwNFXVTYXD/1GVM+/K49xTsoCqMSh7VCkmpzv P5jtUf9hHMd50+QHWfmv6vxia8qel1qJxN2LqKr6nale1NtIt6hSM+if3TYKh9kf+0+MuHeuW bL564VtLRPv+CJl+65Kb32VuDlFnwSZauJ2rigymvG8wuRcxBD8PpIme/hMDsLMCaUxCJehQr GPFwKR4Mt3jrZvREvgFNIXTZSv+jJebcigxhYLdkL7tLobs7Yqswemfocecu1ltDuS1ervnUa z8yXPc75ilymelMg8Z8zHeivsEBIQL9Y1unVj1xw46ZRR+c7tcg2YSSmYhkCV2G2IjqDmh1tA PnIRIKUlM1WCDAMmCjMgtYEHhFkFRaQSYlbO0iCCVU3kmo06iIN2nSmgwOAknNrZTRs//iO6T BIdvHMjLpVwao8ChbHSgsTjCL+AIp5fn244Mq5eVq94BKV/Hs5uhSmH0yAvEldKTk63ONrjnC yEGcozsw2oKKbZWLn4yHWLN9dfCaI0rPS0nMkU6ArxeqaMMq5dqO3scGMFqubCmG+ZmL0mQnH Y+odgBIhYdyn0u8PDf+LUBp0HUtkM8nAiFfYcMdvrxo+6T8iFf0SvDbQWmsFNemvfygcWxkqP n8JxTE9VEhLF1z6gctpiwKORKFK2ZQfz9/qYTVRDIovuMC1yfE5n5q31DGlASi4QhI2M28LMC I6nqbeNmMONuWTFo0nMrkBC78u7iH+VQULUaFLdFOHWSYVFrddQxZneadoIMCcVt4ltdZ5KoK 4k04QGUaf6pv4ghA2AHTa5SGztwX8u6mgfS43b0Fq42JCI5bz3jqYySRRHWXJfVgXwlr8AdMH qbfcWYJUtW5Bp3KotEfDTMZVDSiDoYNR9vys78Hc3doFw7cm+CeIVR6RkZmcA8nbNrgBE9cg7 LeAF8wvwop6Kh6mL3EpZkTsidPWlB++lcvpzvwZleAnusrF5Bu6GCqDHM9MTjSueLtLrvuTl3 nEcSHEoIn2SFco8+PboTx0eHsrS2D8j0+SBXTvLgFWRsWd40Fe75tm31bJc1yQfR+knzw3Tg3 PJa9U36RqYUEbU= 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=1646485884; 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: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=doZz3agTTZ3LVUfYBoqbpZBqJPaB5my4iHd3F51MtxA=; b=SSvR8eUuAMyrrPHQL5qlzl7/XcGisUSPylFID2sY4JxMC6k0ZtO9yP8uzYhF5H5ASpKx89 ibLrWyNwfeKYRgo8RvfqZmnU4ev+43vT0PODNI47nLGN9Wta33jH4DfHTn90HEdqaWwGhj eSt3NvfSw7FohrWPuKo0XfgM2HbBAH3YYbYO/NuH5mOb7pxufbIBNwXr1OCUvtegEzQi7q zczZr3u/SfBCZK7mycCUrhl2o48zOpzns4tQELxZ/tMfHbF+IR9FqfElF26HzdK1qOHEC9 53NL85pDBYGt38E1l3EOIt9KhuWryqiqBexqgr5t2hJ2ZaeB80fJ5NQSDxuQNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646485884; a=rsa-sha256; cv=none; b=Ms1BlCYPrcnV9UFzxZTvU85ZwrrSSBwTTjIVCmOuXspXw1e788SDWjWg17VQfuYDfT0cv9 VK8/NAPwXLYXxFhX8UvDirOsp3CFW76cUdtJLOsvmE7b5EdbnMyWUtsncKPoxBLB5kC7LY 0To2ck2GNpCkv8Z8DE/5+rVkj1ZUxCzSilqLxfvm5sz6Gw9TlVaJ2z02cBwqz8C4kND4DM JMpG44qTCWBN1zHgUETgXP5qjoWp2Au3XKS4XngciiZHx2MMd9Y6Lj3ccVW3El+DwmNXnr qc8/+HGDZm5H7MnD9wt8tbJGfTCXATVJQPUyszh3yyWPwsRnyZnF0ey7Zk+1uQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=W4F1eFb5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (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: 2.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=W4F1eFb5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (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: 257E93E78C X-Spam-Score: 2.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: TO3FhdB+czOV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Julien Lepiller writes: > 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 >>=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. > Ah I see, that makes sense! I suppose a possible alternative could be to define a wrapper around clang to pass the `--target=3D' option by default, but that might be a bit ugly (although we already have a ld-wrapper). Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmIjYVEYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31Ux6kIALKVi4SszzwqrEnhV3Ie0UD/ vyWtGDyn7fnsAesFA/90tvNjCoKuyYZtIam7fNIlCZHvc5GihMqGCyF8az9MSrt3 DpsIJjTYqXK9yhlHCcX2yO6FkrGzYUoaG12PiyFtg9cGJFWCmc3V+LsvUEN0EfrF +Eh2wsEypTrzApq9zXkZKhDuoi9BEVGbwW/5EP7guZGD+5iTn7PvNyTkKWE3uTyf Twt+C9cSRyd+SaSTtczdBGpsqcnQj1CGAsYpW18L7WjamyIBIlS7DnkBUK+vguBR PY+7yEtuGrHG4NYklarTsRkaoR8yLMGtfyi8emkXt5lz2N1296BugLQF3Pb92cg= =yIpi -----END PGP SIGNATURE----- --=-=-=--