From mboxrd@z Thu Jan 1 00:00:00 1970 From: Protonmail Bridge Subject: Re: Clang c++ include path Date: Thu, 07 Nov 2019 03:17:16 +0000 Message-ID: <31726793-905E-4E1A-A8B3-906CF33ADDA5@carldong.me> Reply-To: Protonmail Bridge Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44105) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSYIc-0002Ho-1n for guix-devel@gnu.org; Wed, 06 Nov 2019 22:17:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSYIa-00078q-Lw for guix-devel@gnu.org; Wed, 06 Nov 2019 22:17:29 -0500 Received: from mail4.protonmail.ch ([185.70.40.27]:41109) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iSYIa-000740-GC for guix-devel@gnu.org; Wed, 06 Nov 2019 22:17:28 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ludo@gnu.org, guix-devel@gnu.org, m.othacehe@gmail.com So here=E2=80=99s my naive suggestion: We should have a MAKE-CLANG-TOOLCHAIN procedure that, given a clang package= , a libc package, and a libc++ package (either libc++ or libstdc++), return= s a fully-working clang toolchain. I did encounter some problems while attempting this as you can see here: ht= tps://lists.gnu.org/archive/html/bug-guix/2019-11/msg00042.html As Mathieu pointed out in that thread, the problem is probably that clang c= annot find libstdc++ headers. My first instinct is to use C{,PLUS}_INCLUDE_PATH and friends to solve this= , but I remember trying this and it not working=E2=80=A6 Perhaps this needs= to be a flag at compile/configure time for clang? By the way, getting clang to work is the last piece I need to get Bitcoin C= ore release builds fully working on Guix, so I=E2=80=99ll be focusing on th= is and would appreciate any help I can get from you wizards! Cheers, Carl Dong