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.bugs Subject: bug#63523: 29.0.90; Failing to find -lgcc when running emacsclient Date: Mon, 15 May 2023 21:32:12 +0300 Message-ID: <835y8t1m4z.fsf@gnu.org> References: 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="35712"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63523@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 15 20:33:26 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 1pyd0f-00092e-8V for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 May 2023 20:33:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyd0M-0006Mx-RQ; Mon, 15 May 2023 14:33:06 -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 1pyd0J-0006M1-Tm for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 14:33:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyd0I-0003Ib-NV for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 14:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyd0I-0002La-JJ for bug-gnu-emacs@gnu.org; Mon, 15 May 2023 14:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 May 2023 18:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63523 X-GNU-PR-Package: emacs Original-Received: via spool by 63523-submit@debbugs.gnu.org id=B63523.16841755418970 (code B ref 63523); Mon, 15 May 2023 18:33:02 +0000 Original-Received: (at 63523) by debbugs.gnu.org; 15 May 2023 18:32:21 +0000 Original-Received: from localhost ([127.0.0.1]:44390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyczc-0002Kb-Q5 for submit@debbugs.gnu.org; Mon, 15 May 2023 14:32:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyczb-0002KP-8U for 63523@debbugs.gnu.org; Mon, 15 May 2023 14:32:19 -0400 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 1pyczV-00039m-NC; Mon, 15 May 2023 14:32:13 -0400 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=6zJbp1mX1Auh+G/BxFcZMzr+evBJB465I1o/eO+grAI=; b=KZePs0xuQtuhnfJj+5rm PT8H6u37N51N0YNo5V6ZHeW4IlMz/xR7lhIP5judZBc2Lkh8QG/Em/gVI4UOJG8qMht09NulGmEoj QIBxT1uyUuS4Qe+8iRSj782IxOFemsd90bevFYicHsFj2x5wxULguzxSRJJY14x8pIgGooT7KGrNU GrDBHVdlh5bY5JKvoDlLOxAJzZr12Nr6VpirbktYJ8/mb2KBPauHodvxw0LINeLY1DbVWP9YaXfsW DMHQZr0v7VMJ+xBk5P7Wk/VLaeyGiydS45aTGuXFjasI3Bmv358Wdw3yiX1P0yRcB/AXLHfCYUhdI VXJa4LIXMu65Rw==; 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 1pyczQ-0007yw-7t; Mon, 15 May 2023 14:32:11 -0400 In-Reply-To: (message from Kaushal Modi on Mon, 15 May 2023 13:46:43 -0400) 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:261759 Archived-At: > From: Kaushal Modi > Date: Mon, 15 May 2023 13:46:43 -0400 > > This is a recent regression (probably in the last week or 2) in emacs built from the emacs-29 branch. > > I have always been using emacsclient. > > But the emacs built from 09d6070e56ea21a5e9720bc619c439c09e5b2680 is the first version where > I see this error upon starting emacsclient&. This error doesn't come from emacsclient, it comes from the async native compilation. Did you upgrade your system lately, in particular GCC and/or Binutils? > ■ Warning (initialization): An error occurred while loading ‘/home/kmodi/.emacs.d/init.el’: > > Native compiler error: (lambda (arg3 &optional arg4) (let ((f #'start-kbd-macro)) (funcall f arg3 arg4))), > Compiling > /home/kmodi/.emacs.d/eln-cache/29.0.90-f902ddd0/subr--trampoline-73746172742d6b62642d6d6163726f_start_kbd_macro_0.eln... > > ld: cannot find crtbeginS.o: No such file or directory > ld: cannot find -lgcc > ld: cannot find -lgcc > libgccjit.so: error: error invoking gcc driver > Internal native compiler error: "failed to compile", > "/home/kmodi/.emacs.d/eln-cache/29.0.90-f902ddd0/subr--trampoline-73746172742d6b62642d6d6163726f_start_kbd_macro_0.eln", > "error invoking gcc driver" See? it's ld, the linker, complaining that it cannot find a library (libgcc) it needs for producing the .eln file. You should verify your libgccjit installation is working correctly. Which GCC version do you have? FWIW, I have no problems building the current emacs-29 branch with native-compilation. I just tried. > In GNU Emacs 29.0.90 (build 3, x86_64-pc-linux-gnu, GTK+ Version > 3.22.30, cairo version 1.15.12) of 2023-05-12 built on > kmodi-lx01.engus1.analog.com > Repository revision: 09d6070e56ea21a5e9720bc619c439c09e5b2680 > Repository branch: emacs-29 This is not the latest emacs-29 branch, btw (not that I expect a slightly outdated revision of the branch to fail to compile).