From: Josua Stingelin <josuast@hotmail.com>
To: help-guix@gnu.org
Subject: clang-12 doesn't contain clang-extra-tools
Date: Tue, 10 Aug 2021 12:00:26 +0200 [thread overview]
Message-ID: <DB9PR06MB7657F871FDB7F4B6EE4D77ABAAF79@DB9PR06MB7657.eurprd06.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1921 bytes --]
Hi all,
I'm pretty new to the distribution so please forgive me if this question seems
trivial. - Also I'm not quite sure if this question belongs to guix-devel or
help-guix.
I've been trying to set up my system with some tools I use for developing to
get to know GNU Guix. One part is installing the `clangd` for c-code analysis
using the vim editor.
Now as far as I can see in `gnu/packages/llvm.scm` the definition of clang-12
contains the clang-extra-tools:
546 (define-public clang-12
547 (clang-from-llvm llvm-12 clang-runtime-12
548 "1vd9rhhrd8ghdg111lac7w8by71y9l14yh5zxfijsm6lj4p4avp2"
549 #:patches '("clang-11.0-libc-search-path.patch")
550 #:tools-extra
551 (origin
552 (method url-fetch)
553 (uri (llvm-uri "clang-tools-extra"
554 (package-version llvm-12)))
Which then again seem to contain the `clangd` executable:
147 (define* (clang-from-llvm llvm clang-runtime hash
148 #:key (patches '()) tools-extra)
...
169 (outputs (if tools-extra '("out" "extra") '("out")))
...
228 (mkdir-p bin*)
229 (for-each move
...
232 "clangd"
...
As far as I understand, if tools-extra is defined these get installed when
installing the 'out'-output of the package.
So basically all this compiles down to: Invoking `guix package --install=clang`
should install `clang` as well as `clangd` (among other things). -- Right?
However on my system clangd is missing after installing clang
% find | grep clangd
./lib/libclangdSupport.a
./lib/libclangdRemoteIndex.a
Any hints as to what I'm doing wrong?
Would you accept a patch adding `clangd` as a seperate package to llvm.scm?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2021-08-10 10:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 10:00 Josua Stingelin [this message]
2021-08-10 10:50 ` clang-12 doesn't contain clang-extra-tools Carlo Zancanaro
2021-08-10 11:59 ` Josua Stingelin
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=DB9PR06MB7657F871FDB7F4B6EE4D77ABAAF79@DB9PR06MB7657.eurprd06.prod.outlook.com \
--to=josuast@hotmail.com \
--cc=help-guix@gnu.org \
/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.
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).