From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CNojJ6I+kV8WIAAA0tVLHw (envelope-from ) for ; Thu, 22 Oct 2020 08:11:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MNaMIaI+kV+cJgAA1q6Kng (envelope-from ) for ; Thu, 22 Oct 2020 08:11:14 +0000 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 E1B2A940222 for ; Thu, 22 Oct 2020 08:11:13 +0000 (UTC) Received: from localhost ([::1]:44738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVVgm-0007v4-UR for larch@yhetil.org; Thu, 22 Oct 2020 04:11:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVVgc-0007ou-9J for bug-guix@gnu.org; Thu, 22 Oct 2020 04:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVVgb-0000ph-Rr for bug-guix@gnu.org; Thu, 22 Oct 2020 04:11:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVVgb-0005qd-Nd for bug-guix@gnu.org; Thu, 22 Oct 2020 04:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43023: clang++ in a {clang-toolchain + gcc-toolchain} environment Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 22 Oct 2020 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43023 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Emmanuel Agullo Received: via spool by 43023-submit@debbugs.gnu.org id=B43023.160335421422413 (code B ref 43023); Thu, 22 Oct 2020 08:11:01 +0000 Received: (at 43023) by debbugs.gnu.org; 22 Oct 2020 08:10:14 +0000 Received: from localhost ([127.0.0.1]:51368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVVfq-0005pR-I4 for submit@debbugs.gnu.org; Thu, 22 Oct 2020 04:10:14 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:40194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVVfo-0005pB-TJ for 43023@debbugs.gnu.org; Thu, 22 Oct 2020 04:10:13 -0400 X-IronPort-AV: E=Sophos;i="5.77,404,1596492000"; d="scan'208";a="362464327" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 10:10:05 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <109069324.10892414.1598276637610.JavaMail.zimbra@inria.fr> Date: Thu, 22 Oct 2020 10:10:05 +0200 In-Reply-To: <109069324.10892414.1598276637610.JavaMail.zimbra@inria.fr> (Emmanuel Agullo's message of "Mon, 24 Aug 2020 15:43:57 +0200 (CEST)") Message-ID: <87v9f2u1eq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -6.0 (------) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43023@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.49 X-TUID: pVkjKnHtn9FE Hi Emmanuel, Emmanuel Agullo skribis: > A typical "hello world" C++ fails in an environment with both > `gcc-toolchain' and `clang-toolchain', apperently due to the setup of > the `CPLUS_INCLUDE_PATH' environment variable (used because of the > `#include ' instruction), when compiling with `clang++'. Did you want to have both toolchains in the environment, or was the goal to use Clang, but GCC just happened to be already there (being the default toolchain)? In the latter case, the new =E2=80=98--with-c-toolchain=E2=80=99 option may= help: it allows you to select =E2=80=98clang-toolchain=E2=80=99 instead of the defau= lt GCC tool chain. Note =E2=80=9Cinstead of=E2=80=9D rather than =E2=80=9Cin addition = to=E2=80=9D, which means that there=E2=80=99s only one tool chain in the environment, so no risk of interference. https://guix.gnu.org/manual/devel/en/html_node/Package-Transformation-Opt= ions.html Now, if you really want the two toolchains in the same environment, we=E2=80=99ll have to investigate, though I=E2=80=99m not sure it=E2=80=99s= even fixable as it breaks assumptions behind uses of #include_next in libstdc++ and elsewhere. Thanks, Ludo=E2=80=99.