From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Make failure - progmodes/typescript-ts-mode.elc Date: Thu, 29 Dec 2022 12:47:01 +0200 Message-ID: <83edsi8p22.fsf@gnu.org> References: <87cz82mu37.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35846"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: m43cap@yandex.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 29 11:47:18 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pAqRS-00093O-9v for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Dec 2022 11:47:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAqR3-0002wX-DM; Thu, 29 Dec 2022 05:46:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAqR1-0002wI-4v for emacs-devel@gnu.org; Thu, 29 Dec 2022 05:46:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAqQz-0001IF-5d; Thu, 29 Dec 2022 05:46:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=uxkJWelzFTg6M1G+oXTIuGA8iMTJMuk+QBLDlbIctYk=; b=cf91G1TagSuwD/5hmnIN UU+MTZlczg8dYS5Qh0BTwey8qWs4Miouf1BT4eib+0O/9J/8+dcgwCxlnNh3RaawG3PbZrDulXzEg 393lqzNErKFQkizHFPaXkPt98fYISpi6bfjELHvRW7hr6StaVNBgz0AauSfKv0YDE3txY50VkdDbR HZEP6BLaMWZ1Ca/VC5VQHYUOSQOwth8I7Pet6MWKGv9Gx8zb75YAoB1dS54LgJsnnV1t4nbCDP8S8 lKGzoTknevRtTkD7q2yO77Zj0f5MhnAVPYcrI/uJfm5FjDot7VGaC0Rla0QtQjA5qM0oht4ILfo0h JLBtzoIdwPxsNA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAqQy-0006Da-5h; Thu, 29 Dec 2022 05:46:48 -0500 In-Reply-To: <87cz82mu37.fsf@yandex.com> (message from Colin Baxter on Thu, 29 Dec 2022 09:34:36 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302028 Archived-At: > From: Colin Baxter > Date: Thu, 29 Dec 2022 09:34:36 +0000 > > > On a fresh git pull I have this 'make' failure: > > --8<---------------cut here---------------start------------->8--- > > ELC progmodes/typescript-ts-mode.elc > > In toplevel form: > progmodes/typescript-ts-mode.el:31:2: Error: Symbol’s function definition is void: treesit-query-compile > Makefile:332: recipe for target 'progmodes/typescript-ts-mode.elc' failed > make[4]: *** [progmodes/typescript-ts-mode.elc] Error 1 > make[4]: Leaving directory '/home/redknight/git/emacs/lisp' > Makefile:366: recipe for target 'compile-main' failed > make[3]: *** [compile-main] Error 2 > make[3]: Leaving directory '/home/redknight/git/emacs/lisp' > Makefile:533: recipe for target 'lisp' failed > make[2]: *** [lisp] Error 2 > make[2]: Leaving directory '/home/redknight/git/emacs' > make[2]: Entering directory '/home/redknight/git/emacs' > *** > *** "make all" failed with exit status 2. > *** > *** You could try to: > *** - run "make bootstrap", which might fix the problem > *** - run "make V=1", which displays the full commands invoked by make, > *** to further investigate the problem > *** > > --8<---------------cut here---------------end--------------->8--- > > I have tried both make bootstrap , and make extraclean > followed by make , but to no avail. > > I am on Linux bluestar 4.9.0-19-686-pae #1 SMP Debian 4.9.320-2 > (2022-06-30) i686 GNU/Linux. Doesn't happen here. However, I'm guessing that your build is without tree-sitter. Please make a point of using report-emacs-bug, so that we won't need to guess. Yuan, this code in js.el: (defvar js--treesit-lhs-identifier-query (treesit-query-compile 'javascript '((identifier) @id (property_identifier) @id)) "Query that captures identifier and query_identifier.") cannot unconditionally call treesit-query-compile, because it will fail to load in a build without tree-sitter. (It also need a declare-function.) The above failure is caused because typescript-ts-mode.el requires js.el.