From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 UC0HAxLkJWJiGgAAgWs5BA (envelope-from ) for ; Mon, 07 Mar 2022 11:53:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id zh4kNxHkJWLmLgEAG6o9tA (envelope-from ) for ; Mon, 07 Mar 2022 11:53:05 +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 7984D2E165 for ; Mon, 7 Mar 2022 11:53:05 +0100 (CET) Received: from localhost ([::1]:45798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRAz9-0000im-3u for larch@yhetil.org; Mon, 07 Mar 2022 05:53:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRARj-0005WN-W7 for guix-devel@gnu.org; Mon, 07 Mar 2022 05:18:32 -0500 Received: from [2001:470:142:3::e] (port=39980 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRARY-0005DQ-U5; Mon, 07 Mar 2022 05:18:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=SGh6eQ8YyFsoIeLijpPJ2ue3bTg4sBrnAesSpSRgYbM=; b=VhWpHWUEfaEBHSFjn42J iy52wsetvrFqvEK3ncTstcU5iTG7nYnz0wJkjfVpodMCrlEGmGRBh94RQPWYSex3GNDUhv2W9Cqlp 5Ih94CA2GhZAVyEoHkMTYHlku9ZU0sdBGq4VqVv5ap1dADf1gBLjj08fFkuAKmiYUcySNeKBxfeLO VHETXNHSHQERytrOffURY1/EK+cZZh1v7gieuaIiaOEk8qASFO5Q3wbs95QZHrMCzmBt9CGBaYSSH qde7shxKqaU2CXd98lFg2TpGyFVHqPYAq0JPodFPC23rRuR8F79GQpA2dHc4zfQhNyQCSCCM9t8sJ Cko5D9IEKa2EQQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:63121 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRARV-000575-Dm; Mon, 07 Mar 2022 05:18:19 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Greg Hogan Subject: Re: Building clang with gcc-toolchain@11 References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?utf-8?Q?Vent=C3=B4se?= an 230 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 07 Mar 2022 11:18:15 +0100 In-Reply-To: (Greg Hogan's message of "Mon, 28 Feb 2022 11:36:17 -0500") Message-ID: <875yoq2hi0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1646650385; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SGh6eQ8YyFsoIeLijpPJ2ue3bTg4sBrnAesSpSRgYbM=; b=nom6vnnEAjncSsqlJApvkHnLxojJ2zaBM3/SoSYsKNdJUVeyvq2NqGNvglUiOAV14agjbH QORbfM432L5zd2lvjdLAlvNJkNCguQHCkaOrWJG25NY+M5UpVGQc61U3f+yHRcrJHATaVw +chS14+faAyqpE9Tjds99aZPFiBReZEVz01fNgKOSgXrqNDikjOh9IxiKVzzYxF7N0P4Xn UieANIfScWHDofxnNFJ9Jpnh7mXDTFJWa5Tvk/VmtOdM20B8X5FujlFJL0uy3ebfzVH5yK Zg9zo94AQsoINHT4iMy3/iHeeq+S0pOb0a7IvKMAK1FaoVI/xG5VP1743+8Ttg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646650385; a=rsa-sha256; cv=none; b=SMKo7C8mg/FyrKV6eW66Pcyv4hvPj2gIH1voSK/Y1tv+Ul78i/bbVu2c85pgxYhC6ILeJ+ hZR/cqnq4wd6j4NKKakwuYwaYgyO44zW+g16FMB7WQaZozQuszlp/YC/ZxWBrqe/5Hu0NX VstyAvgICu3O+fB0qM/5t0Fmq1OfcuBjg9JeuEB3EOzGim8g/630TW1LSwPtOKl/vwHVD7 A6VaKvZdUQwfZByO/at77Czy57PSqiCES0EzHiYA0AjZxbNtXPhVTznBBiF8aLO93oOzuV Si6aTvBV9d14IxXts4orJm1d7Qpcammh3UkalILngKh5ej2zRxgwxzc5fJxzfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VhWpHWUE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VhWpHWUE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7984D2E165 X-Spam-Score: -6.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: kFUTIXMYCLHa Hi, Greg Hogan skribis: > I'd like to instead use the latest gcc-toolchain (currently gcc-toolchain= @11) > and have clang-toolchain built with that gcc-toolchain. No matter what > I offer in the "--with-c-toolchain" or "--with-input" options I always see > the following error regarding '(assoc-ref %build-inputs "libc")' evaluati= ng > as false, even when specifying "--with-c-toolchain=3Dclang=3Dgcc-toolchai= n@10" > that should currently be in use by default. Any ideas for fixing this? The =E2=80=98clang=E2=80=99 definition reads: ;; Use a sane default include directory. (string-append "-DC_INCLUDE_DIRS=3D" (assoc-ref %build-inputs "libc") "/include") What happens if we don=E2=80=99t pass that option, or if we pass =E2=80=9C-DC_INCLUDE_DIRS=3D/no-such-directory=E2=80=9D? It might work because C_INCLUDE_PATH already contains libc=E2=80=99s include directory; that way, we=E2=80=99d no longer rely on the =E2=80=9Clibc=E2=80= =9D label, which is what prevents use of =E2=80=98--with-c-toolchain=E2=80=99 here. HTH, Ludo=E2=80=99.