From: Protonmail Bridge <contact@carldong.me>
To: ludo@gnu.org, guix-devel@gnu.org, m.othacehe@gmail.com
Subject: Re: Clang c++ include path
Date: Thu, 07 Nov 2019 03:17:16 +0000 [thread overview]
Message-ID: <31726793-905E-4E1A-A8B3-906CF33ADDA5@carldong.me> (raw)
So here’s 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++), returns a fully-working clang toolchain.
I did encounter some problems while attempting this as you can see here: https://lists.gnu.org/archive/html/bug-guix/2019-11/msg00042.html
As Mathieu pointed out in that thread, the problem is probably that clang cannot 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… 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 Core release builds fully working on Guix, so I’ll be focusing on this and would appreciate any help I can get from you wizards!
Cheers,
Carl Dong
next reply other threads:[~2019-11-07 3:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 3:17 Protonmail Bridge [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-10-28 8:30 Clang c++ include path Mathieu Othacehe
2019-10-28 17:58 ` Ricardo Wurmus
2019-10-28 22:08 ` Mark H Weaver
2019-10-28 22:48 ` Marius Bakke
2019-11-03 14:30 ` Ludovic Courtès
2019-11-07 16:29 ` Danny Milosavljevic
2019-11-07 17:34 ` Danny Milosavljevic
2019-11-07 18:43 ` Carl Dong
2019-11-07 19:52 ` Mark H Weaver
2019-10-29 15:37 ` Mathieu Othacehe
2019-11-11 15:12 ` David Truby
2019-11-11 17:17 ` Mathieu Othacehe
2019-11-13 16:59 ` David Truby
2019-10-28 8:19 Mathieu Othacehe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31726793-905E-4E1A-A8B3-906CF33ADDA5@carldong.me \
--to=contact@carldong.me \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=m.othacehe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).