From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter doc question Date: Tue, 13 Dec 2022 09:50:38 +1100 Message-ID: <86y1rc9qjd.fsf@gmail.com> References: <83y1rgzsk4.fsf@gnu.org> <83h6y3y7bj.fsf@gnu.org> <87sfhkmvdp.fsf@ucl.ac.uk> <83fsdkqyok.fsf@gnu.org> <878rjccw1q.fsf@telefonica.net> <874ju0ctu7.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="439"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.6; emacs 29.0.60 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 13 00:00:35 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 1p4rml-000AO2-2n for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Dec 2022 00:00:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4rmB-0004xQ-PN; Mon, 12 Dec 2022 17:59:59 -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 1p4rm9-0004xH-TV for emacs-devel@gnu.org; Mon, 12 Dec 2022 17:59:57 -0500 Original-Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4rm8-0000no-8z for emacs-devel@gnu.org; Mon, 12 Dec 2022 17:59:57 -0500 Original-Received: by mail-pg1-x530.google.com with SMTP id s196so9259323pgs.3 for ; Mon, 12 Dec 2022 14:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=o8DpoaqD/65E6tR0nDV+6GPM9v41LvzM2hCCiQ6ry48=; b=InlUcArsY/GMb/QMFr1JadFzAyQ9PkDT6jzzYlh+08wHg4blSQPLnoZGhBrycg4zv/ 7K1urfkrarlRIWaq88tD6nVnu2ehvFCBQvyGOHw7l3vHF3Ci8byyl75dI+QtKaJB9KlW BjSV3Kl8ATd5iQyI6gPDgIMa4GDg3NhPDydMQzsl66fCRJCAumgAQes/5u2NMwjmbQob 2UKXZD9J/hEVrJc0Ug5FpB0uSG1GNa1Zfncg08avLhBvvrbblQ5G6ZzSVGlEtFoKtiUr V7N5zTI1XkJT+hKTC/6/r/GSwDCp4hUZH15d4PetfBKuRqlkrdlcNF2Z2vi3/UH7UciY swWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:user-agent:references:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o8DpoaqD/65E6tR0nDV+6GPM9v41LvzM2hCCiQ6ry48=; b=43KyhD7YFGIw5TiB5s7bQTSY3BMhtOLfc/Pesof9luuGSF/fwWdVoWHA6y5OuguxJY nxWbfCqKTU/6pdIgw8LZHBKZWX/8Gn8z/p8Qkt16WheKz0WdVsdFxnV7RVh7JQCJ5KlP aphNtYvMKWSGop9WYPOThWBYRcmcpTG70B28oqsEUnwU3PLxIPEE+wKr7Trp224BWevN mwAViBnepYbnnmUG+bmMvslSW8mVAKkFC/2GPzgXkMQw/jAKPAcSldAltFU6auRK5aNO tnlK1KCuLfcxC1OSLgVnb2tqQd+c/j23J0A9iSpVMQYtZHtU2LXhYHACg23ceBylj+vv UbIA== X-Gm-Message-State: ANoB5pmhL5bjtwhr1tfXSWG0uvyom268uPgzSHdRuFeaR69rRL7Ohp+C H/1wV6ytR89r+ZDYdQYXQJGVsaQ0/3E= X-Google-Smtp-Source: AA0mqf4xGbPorIlA6FZLp9Sb+u3FmJOGQav8nvj4bsPAvUnG9imfW1RHSKUey9TKbkI9RW4oyaEFoA== X-Received: by 2002:aa7:91c5:0:b0:566:900d:a1cd with SMTP id z5-20020aa791c5000000b00566900da1cdmr15956993pfa.9.1670885994471; Mon, 12 Dec 2022 14:59:54 -0800 (PST) Original-Received: from dingbat (203-173-24-107.dyn.iinet.net.au. [203.173.24.107]) by smtp.gmail.com with ESMTPSA id n27-20020aa7985b000000b0056d7cc80ea4sm6292757pfq.110.2022.12.12.14.59.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 14:59:53 -0800 (PST) In-reply-to: <874ju0ctu7.fsf@telefonica.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:301288 Archived-At: =C3=93scar Fuentes writes: > Juanma Barranquero writes: > >> On Mon, Dec 12, 2022 at 7:33 PM =C3=93scar Fuentes wrot= e: >> >> >>> BTW, as I'm on Debian Testing getting the package is no problem. What I >>> don't know is how to install the parsers for the languages I'm >>> interested on. >>> >> >> admin/notes/tree-sitter/build-module/batch.sh >> >> Or am I misunderstanding you? > > Interesting, thank you. > > Why is that script and the accompanying README under `admin'? Why are no > references to them on INSTALL? I don't know the answer to those questions. However, I just tried that script and it doesn't work on my Fedora 37 system. I also followed the instructions for cloning the repo and building it yourself, which failed with the same errors. The errors I get are basically of the form Building c /usr/bin/ld: parser.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status cp: cannot stat 'libtree-sitter-c.so': No such file or directory Looking at the scripts, it isn't clear where I need to add the -fPIC (it already seems to be there?). This occurs for every lang. Building emacs with ./configure --with-tree-sitter seems to be fine (Emac 29 branch HEAD from this morning)= .=20