From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#65123: 29.1; Build fails with "configure --without-all --with-tree-sitter" Date: Mon, 07 Aug 2023 12:44:38 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14336"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 65123@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 07 12:46:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qSxkq-0003WF-60 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Aug 2023 12:46:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSxkW-0007ZH-1E; Mon, 07 Aug 2023 06:46:08 -0400 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 1qSxkQ-0007Z3-Bx for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:46:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSxkQ-00082X-43 for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSxkP-0001wY-R1 for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Aug 2023 10:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65123 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16914051047386 (code B ref -1); Mon, 07 Aug 2023 10:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 10:45:04 +0000 Original-Received: from localhost ([127.0.0.1]:60684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSxjU-0001v4-78 for submit@debbugs.gnu.org; Mon, 07 Aug 2023 06:45:04 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:38108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSxjQ-0001uB-CD for submit@debbugs.gnu.org; Mon, 07 Aug 2023 06:45:02 -0400 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 1qSxjK-0007U0-Ma for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:44:54 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qSxjI-0007j8-PD for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 06:44:54 -0400 Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266880 Archived-At: Forwarding downstream bug: https://bugs.gentoo.org/911826 Linking of temacs fails with undefined references to symbols dynlib_error, dynlib_open and dynlib_sym when using configure options --without-all --with-tree-sitter. To reproduce: emacs-29.1 $ ./configure --without-all --without-x --with-tree-sitter [...] emacs-29.1 $ make V=1 [...] gcc -o temacs.tmp \ -Demacs -I. -I. -I../lib -I../lib -MMD -MF deps/.d -MP -g3 -O2 \ dispnew.o frame.o scroll.o xdisp.o menu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o emacs.o keyboard.o macros.o keymap.o sysdep.o bignum.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex-emacs.o undo.o alloc.o pdumper.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o sort.o font.o print.o lread.o syntax.o bytecode.o comp.o process.o gnutls.o callproc.o region-cache.o sound.o timefns.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o lcms.o profiler.o decompress.o thread.o systhread.o sqlite.o treesit.o itree.o json.o terminfo.o lastfile.o ../lib/libgnu.a -ltinfo -lanl -lm -ljansson -lgmp -ltree-sitter /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: treesit.o: in function `treesit_load_language': /local/home/ulm/emacs-29.1/src/treesit.c:617:(.text+0x4a6a): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:618:(.text+0x4a72): undefined reference to `dynlib_open' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:619:(.text+0x4a7a): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:634:(.text+0x4d41): undefined reference to `dynlib_error' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:644:(.text+0x4d68): undefined reference to `dynlib_sym' /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /local/home/ulm/emacs-29.1/src/treesit.c:646:(.text+0x4d78): undefined reference to `dynlib_error' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:704: temacs] Error 1 make[2]: Leaving directory '/local/home/ulm/emacs-29.1/src' make[1]: *** [Makefile:544: src] Error 2 make[1]: Leaving directory '/local/home/ulm/emacs-29.1' make[1]: Entering directory '/local/home/ulm/emacs-29.1' *** *** "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 *** make[1]: *** [Makefile:414: advice-on-failure] Error 2 make[1]: Leaving directory '/local/home/ulm/emacs-29.1' make: *** [Makefile:370: all] Error 2 emacs-29.1 $ Looks like configure.ac should set NEED_DYNLIB=yes when tree-sitter is requested. It already does so in one code path, but it doesn't for tree-sitter >= 0.20.2. $ pkg-config --modversion tree-sitter 0.20.9 (The above build failure will also occur with a simple "configure --without-all", because it leaves both json and tree-sitter enabled. Is this intentional? I'd have expected --without-all to turn these features off.)