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 eBLbEkwzIWJSOwEAgWs5BA (envelope-from ) for ; Thu, 03 Mar 2022 22:29:48 +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 AOZKEEwzIWIsewAA9RJhRA (envelope-from ) for ; Thu, 03 Mar 2022 22:29:48 +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 C513B11F22 for ; Thu, 3 Mar 2022 22:29:47 +0100 (CET) Received: from localhost ([::1]:60148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPt18-0000t0-UK for larch@yhetil.org; Thu, 03 Mar 2022 16:29:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPsjy-0003ei-TA for guix-patches@gnu.org; Thu, 03 Mar 2022 16:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPsjy-0006d9-GR for guix-patches@gnu.org; Thu, 03 Mar 2022 16:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nPsjy-000285-CL for guix-patches@gnu.org; Thu, 03 Mar 2022 16:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54239] [PATCH] gnu: Add cross-clang. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Mar 2022 21:12: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: Maxime Devos Cc: 54239@debbugs.gnu.org Received: via spool by 54239-submit@debbugs.gnu.org id=B54239.16463419048146 (code B ref 54239); Thu, 03 Mar 2022 21:12:02 +0000 Received: (at 54239) by debbugs.gnu.org; 3 Mar 2022 21:11:44 +0000 Received: from localhost ([127.0.0.1]:43912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPsjg-00027K-3k for submit@debbugs.gnu.org; Thu, 03 Mar 2022 16:11:44 -0500 Received: from lepiller.eu ([89.234.186.109]:57074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPsjd-00026v-MU for 54239@debbugs.gnu.org; Thu, 03 Mar 2022 16:11:42 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 4b66e3a0; Thu, 3 Mar 2022 21:11:39 +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=SqngmiwCVXFp JFqpmjqICtnd+67Qw98hbBDRQbGQOpU=; b=n+HsdfL0aP1OOe9FpWZ60lOQ7m1b BH1viaW1kyiXm3b0yRC4DVeuxVpa1lOpid4yl5erjqVAALDArC/DGNw+GjcZUl0K 35z5GqCz3/qwFhOcMhttN3neSNB0bKnu/oxWr3TkAPGDz89sf+xD+e+kU6Pjwjr4 E84tolxBr0E0FCW/0g1Lgv8Yn99/mfIeZoq+pyQ7lsx4NTeY4ThGOgqsBZzm9nK2 8cZFz+zutaSPRcjPyYMedhjoaGUtv6MvQ49rsMHcNx+XUDq3H2/Lpd3tvrcjxl1+ +RArwjy6I0dbiKfIWiORgldbXjRiitk+k4a+bbCbzHcodCid3md9tUb5sg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 14e7f955 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 3 Mar 2022 21:11:39 +0000 (UTC) Date: Thu, 3 Mar 2022 22:11:36 +0100 From: Julien Lepiller Message-ID: <20220303221136.5c131ada@tachikoma.lepiller.eu> In-Reply-To: <9cd9c6e72b5c3e2b32544fbcb46f14b2b52247b0.camel@telenet.be> References: <20220303170252.3caec0a6@tachikoma.lepiller.eu> <70c3446488f9b76479f4f989c351403c461369d1.camel@telenet.be> <20220303193503.4c055cec@tachikoma.lepiller.eu> <9cd9c6e72b5c3e2b32544fbcb46f14b2b52247b0.camel@telenet.be> 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=1646342987; 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=T5tFvn/bzoy9tVzFX55cpUShn1RhNg8U47mgSoUVbhw=; b=O5FZcDzA1L2pC5Yd+BArWdfWoisWHpIS3FPdAQTK3xNvTZq0u/bV9Wc7VJGlMDn5ZOzvHN rd1T68AvDPj7wRubAjGIoKXWdAS/gpkmvZzyl0qNMuM90NhLH2McVBm/A/PMDaIqiXkEJf 3tIlo5URq77DZBe4PwV4MyNqLvD5dg3JKoR+RieQ7r/Swoqwf3TZ6Z2Ir4cY3EssosLtiF G9NXt/NB6Vb3V2Nh7eUhian/EwEujiJQDVFibm6MaUrI5TuBI3Ryi8OTzZFKvkzd0Z3OtS tFmSoYKTkX2UccpVdAB27cd1wOitmfkmPSL5RMn7zNJJ9/TtK/fStby7F6e1QQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646342987; a=rsa-sha256; cv=none; b=A9XifPgWE98dZlwOln4jIAet0SuPPfIe0Y7S3zACh2uLx9V6muktzrIEdZ+8ucxKu0ytOR 7nhIRA7uKb7snqFXINyZV4RP0MxHRAhSBj2VA90NhiqOWC19Pt7DpSkN6oazeKEG6A78Qo eCMlDydrKiuQO76slmAGkEFuhSbUaZlLTRKX20LfbvRKMvufPgslQ298npWpUQLew3sLTJ ifCyPgRVPomKLyG0yDMQ1GylLmh39rVMoAXNjYgG/6rl0VS9P8zInH+43C75TN2iPerFES 81tEsh5W+8KbAaQO1Ds2jzCPfymq7bEil9YCLWdutbRN0nzr2J7V0YtMqy/tDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=n+HsdfL0; 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.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=n+HsdfL0; 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: C513B11F22 X-Spam-Score: 5.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: NNaKxnQ8/Lq1 Le Thu, 03 Mar 2022 19:59:17 +0100, Maxime Devos a =C3=A9crit : > Julien Lepiller schreef op do 03-03-2022 om 19:35 [+0100]: > > >=20 > > > Also, WDYT of making 'cross-clang' a memoising procedure, such > > > that there's only one package object for a cross-clang of a fixed > > > target system (and version)? =20 > >=20 > > I don't know how to do that. Are there some examples around? =20 >=20 > Search for 'cross-pkg-config' and 'standard-cross-packages'. >=20 > Greetings, > Maxime. Thanks! I used mlambda, I think it should work :) So I tried renaming clang to -clang, but then I noticed the build of libcxxabi fails: -- The CXX compiler identification is unknown -- The C compiler identification is unknown CMake Error at CMakeLists.txt:21 (project): The CMAKE_CXX_COMPILER: clang++ is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. This is because it really expects clang, not -clang. The autotools might be smarter (haven't tested), but they're the only one. I don't want to substitute* every CMakeList.txt to make sure they understand what we're the only ones to do. Furthermore, clang is already a cross-compiler, and cross-clang only makes it work in the context of guix packaging and changes the default target for convenience. Outside of a guix package, although not very convenient, our clang package already works like everyone else's I think. I don't think it makes sense to have clang AND i586-gnu-clang in your profile. Also, cross-clang just like cross-gcc is not accessible from the CLI. WDYT?