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 14:25:33 +1100 Message-ID: <86k02w2ddt.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> <86y1rc9qjd.fsf@gmail.com> 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="1088"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.6; emacs 29.0.60 Cc: emacs-devel@gnu.org To: =?utf-8?Q?Jo=C3=A3o?= Paulo Labegalini de Carvalho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 13 04:26: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 1p4vwA-00005F-Vj for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Dec 2022 04:26:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4vvd-0004UH-4s; Mon, 12 Dec 2022 22:26:01 -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 1p4vvb-0004Tr-Es for emacs-devel@gnu.org; Mon, 12 Dec 2022 22:25:59 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4vvZ-0000to-VO for emacs-devel@gnu.org; Mon, 12 Dec 2022 22:25:59 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id t2so11234984ply.2 for ; Mon, 12 Dec 2022 19:25:57 -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:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=RT9y56s5yEPOLJrk+aaiIk2m31/ErDzcr93/efmv4sY=; b=E//9lLqrXPU8d/Fz89mnou4gfoecWtwE4c88/LoU4BE+VUS/uJelFsU1pkr7o+tI9j L5HyJ4GYfD1GDFbN55h5qY4WI7qtEKHrhhtgYBOwix4QhMsKyCL7tSbrPPoGPFohyZIB Ua9EesrWxQiC75dPnalfn4kTmaTQmWY1/4oXOyX46uKmjFKVWruG3zXrrSxGTETWdy6n Hs2Zx3UYx7sjrFCcttsDfLJg6TrwRx/4KqooV/aYfJgQ7n41Bo0nLdgzsQYgmiZhMG14 y1ok2yNek6U78KzP6bQgo4scQ9q7X7KuPKqB7ZWam43qR7z7yJ82XIiLr5MxdMDpiFfJ kfhQ== 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:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=RT9y56s5yEPOLJrk+aaiIk2m31/ErDzcr93/efmv4sY=; b=eqzZW3FA6AF2W14PzbL8hN/X4VfSHlc0aFgzs9xeuG5FxcUVu0rCA3orS7RnaX765Y lE2+5BC599wnvsxluq2ZDLZ2Sdr/tUBsTOwGUfyTHqag1EbmmHlaEMSIsJhuMYiMTTXk oJPf8UoK/gJDX8U2H+cgrxtnM+ptbP/YnJa9XZh8EoFCSs+ExNz0BjFL4aN/pcN0RUqw 0+urpRLmLcJgvO3ZS400e7kRjXBsCL2Qvfo10QIRG/BCsDcJGU3cltxyiF/qSU1433RY cVeEiAMB/4PIeJmyeYrEyVT8Ov4K78P45wQ6Gvm/qw9EJbbvDbK+TBDN4EQEmSQfGHzj XEKA== X-Gm-Message-State: ANoB5pmf4p/3YUpuvx+CG6c171Br93nB5x+3lKHOFIdVzhaGlc6hcrxk kfJAlOcx1fBQTf0XyqsAE4AxzOH26jE= X-Google-Smtp-Source: AA0mqf5nyltaCiXasGNcQ49gMYD2kYCvdmZr4YMaypkd5V2caAF6ycTHKH4vbZp6XyxbPFoWuXQrjA== X-Received: by 2002:a05:6a20:d2c3:b0:a3:7fcc:465a with SMTP id ir3-20020a056a20d2c300b000a37fcc465amr24018762pzb.49.1670901955960; Mon, 12 Dec 2022 19:25:55 -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 r19-20020a63d913000000b00478e7f87f3bsm5702429pgg.67.2022.12.12.19.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 19:25:55 -0800 (PST) In-reply-to: Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x636.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:301296 Archived-At: Jo=C3=A3o Paulo Labegalini de Carvalho writes: > 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?). > > You need to add to the like that builds the parser.c file, like in the at= tached patch. Thanks, that did the trick.