From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GNpXFXQfDWKfUgEAgWs5BA (envelope-from ) for ; Wed, 16 Feb 2022 16:59:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KK36EXQfDWILJgAAauVa8A (envelope-from ) for ; Wed, 16 Feb 2022 16:59:48 +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 C78152A055 for ; Wed, 16 Feb 2022 16:59:47 +0100 (CET) Received: from localhost ([::1]:55760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKMiZ-0005ZW-1A for larch@yhetil.org; Wed, 16 Feb 2022 10:59:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKMhw-0005X6-77 for bug-guix@gnu.org; Wed, 16 Feb 2022 10:59:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKMhp-0004qi-Of for bug-guix@gnu.org; Wed, 16 Feb 2022 10:59:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKMhp-0001tW-P7 for bug-guix@gnu.org; Wed, 16 Feb 2022 10:59:01 -0500 Subject: bug#52054: clangd cannot find Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 16 Feb 2022 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 52054 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52054-done@debbugs.gnu.org Mail-Followup-To: 52054@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 52054-done@debbugs.gnu.org id=D52054.16450270897216 (code D ref 52054); Wed, 16 Feb 2022 15:59:01 +0000 Received: (at 52054-done) by debbugs.gnu.org; 16 Feb 2022 15:58:09 +0000 Received: from localhost ([127.0.0.1]:49278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKMgy-0001sJ-Rc for submit@debbugs.gnu.org; Wed, 16 Feb 2022 10:58:09 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:59788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKMgx-0001rl-2O for 52054-done@debbugs.gnu.org; Wed, 16 Feb 2022 10:58:07 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 326BCA27; Wed, 16 Feb 2022 16:58:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YBFH4mPy2X7W; Wed, 16 Feb 2022 16:57:59 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 3683F57B; Wed, 16 Feb 2022 16:57:58 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87ilwjjiav.fsf@inria.fr> Date: Wed, 16 Feb 2022 16:57:57 +0100 In-Reply-To: <87ilwjjiav.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 23 Nov 2021 11:08:24 +0100") Message-ID: <87wnhuvm62.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-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 326BCA27 X-Spamd-Result: default: False [0.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DBL_PROHIBIT(0.00)[5.0.0.8:email,12.0.0.1:email]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.56)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emmanuel.agullo@inria.fr Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" 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=1645027187; 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:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=mcq9XxhpSrk/ZmMNb7E5Gu2yBbfsIv7pHTn1PpKpXGA=; b=F/33x71Ot/bIwVkW2PDGge0E2TeN6jJyy8ZEz/mc6f98FNZzc2A2G5ciZceD8lD2VOUd6U onYhBxbL89jdABfStNrTO11MpdAwCe6iRIihobMxwRALNd+VsjYcoVY/GghTpmR2inkcEA 6wtM066CBhe9L5ZSDavCHkfFpE6mkddhTZX1xj0MPwBEFBTCGGOHzjvjFIG6VqbdkDe4GU 1yyjdpAGXnpy/YAMF34cbMiGqHfFh6Z4ViKH1qDi97ex4StshRbKlgTbc3L9xIA1k6Jenj s8Uhc3FvcLJqNPuc+eOnegQ0DWm0dMCCh81jzWn5YP+cF5/8zHbFRzNWz7aK8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645027187; a=rsa-sha256; cv=none; b=r2pD3lU7ZTR5JbkTVl8V2tz06OnvYATbaLwMsHkAAfDLKoLHJJNUn1La7yowuoiFwscfI5 6Tpep240/lbJXB7ZCGztohbaZy1dVHU/ayu3dYwHsIMKVhP2luWf+6zZpILMnSC6ULsYG6 9axzY6DxtwuMmXzPe2VUSaLUXEjAGRFZ6oxCBmZJORFpka3fnjeTUL8heJ2j1I/1moMNyQ mmCBUCTfieAfwOrz/LWIKVOI8g2XqT0v0LklBMQIoVL70j7C/5Ah4D0aa93gSyxRJiQvvZ 84aE1/Ftb1wYPkZZ1YGdo2aEhV1lS3TlB8vwqfRVE9g5le0zTgxoqKvwqoDMkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C78152A055 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: HKheArbT2VJo Hi, Ludovic Court=C3=A8s skribis: > =E2=80=98clangd=E2=80=99 fails to find , as shown here: > > $ printf '#include \nint foo (int x) {return x+2; }' > t.c > $ guix shell -C -D hello --with-c-toolchain=3Dhello=3Dclang-toolchain cla= ng:extra strace > guix shell: warning: transformation 'with-c-toolchain' had no effect on s= trace@5.8 > guix shell: warning: transformation 'with-c-toolchain' had no effect on c= lang@12.0.1 > [env]$ clang -c t.c > [env]$ clangd --check=3Dt.c > I[10:02:40.349] clangd version 12.0.1 > I[10:02:40.349] PID: 3 > I[10:02:40.349] Working directory: /home/ludo/tmp/clangd-bug > I[10:02:40.349] argv[0]: clangd > I[10:02:40.349] argv[1]: --check=3Dt.c > I[10:02:40.349] Entering check mode (no LSP server) > I[10:02:40.349] Testing on source file /home/ludo/tmp/clangd-bug/t.c > I[10:02:40.349] Loading compilation database... > I[10:02:40.349] Failed to find compilation database for /home/ludo/tmp/cl= angd-bug/t.c > I[10:02:40.349] Generic fallback command is: /gnu/store/nk5lp7wisgdlvds5c= amvcchgh19hnn23-clang-12.0.1/bin/clang /home/ludo/tmp/clangd-bug/t.c -fsynt= ax-only -resource-dir=3D/gnu/store/hnw2acjhfpj5l2zrazj5fvq5ksy002f1-clang-1= 2.0.1-extra/lib/clang/12.0.1 > I[10:02:40.350] Parsing command... > I[10:02:40.352] internal (cc1) args are: -cc1 -triple x86_64-unknown-linu= x-gnu -fsyntax-only -disable-free -disable-llvm-verifier -discard-value-nam= es -main-file-name t.c -mrelocation-model static -mframe-pointer=3Dall -fma= th-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-c= pu x86-64 -tune-cpu generic -fno-split-dwarf-inlining -debugger-tuning=3Dgd= b -resource-dir /gnu/store/hnw2acjhfpj5l2zrazj5fvq5ksy002f1-clang-12.0.1-ex= tra/lib/clang/12.0.1 -c-isystem /gnu/store/xl7wammzljnp0rg496n96h5m69y25isg= -profile/include -cxx-isystem /gnu/store/xl7wammzljnp0rg496n96h5m69y25isg-p= rofile/include -internal-isystem /usr/local/include -internal-isystem /gnu/= store/hnw2acjhfpj5l2zrazj5fvq5ksy002f1-clang-12.0.1-extra/lib/clang/12.0.1/= include -internal-externc-isystem /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0= cr-glibc-2.31/include -fdebug-compilation-dir /home/ludo/tmp/clangd-bug -fe= rror-limit 19 -fgnuc-version=3D4.2.1 -faddrsig -x c /home/ludo/tmp/clangd-b= ug/t.c > I[10:02:40.352] Building preamble... > I[10:02:40.368] Indexing headers... > E[10:02:40.382] [pp_file_not_found] Line 1: in included file: 'stddef.h' = file not found > I[10:02:40.382] Building AST... > I[10:02:40.386] Indexing AST... > I[10:02:40.386] Testing features at each token (may be slow in large file= s) > I[10:02:40.387] All checks completed, 1 errors Fixed with 35ea49daf6cdef5bf6156dd90add77cede364a4b (thanks, Greg!). Ludo=E2=80=99.