From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#63523: 29.0.90; Failing to find -lgcc when running emacsclient Date: Wed, 24 May 2023 11:55:27 -0400 Message-ID: References: <835y8t1m4z.fsf@gnu.org> <83mt24z27m.fsf@gnu.org> <83a5xtohhs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000899fbf05fc728a5d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63523@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 24 17:57:48 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 1q1qs0-0005XG-4E for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 May 2023 17:57:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1qrN-00064k-P1; Wed, 24 May 2023 11:57:09 -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 1q1qrI-00064C-Na for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 11:57: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 1q1qrG-0007jf-FX for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 11:57:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1qrG-0006KN-7J for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 May 2023 15:57: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.168494377624053 (code B ref 63523); Wed, 24 May 2023 15:57:02 +0000 Original-Received: (at 63523) by debbugs.gnu.org; 24 May 2023 15:56:16 +0000 Original-Received: from localhost ([127.0.0.1]:44463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1qqU-0006Fj-Kx for submit@debbugs.gnu.org; Wed, 24 May 2023 11:56:16 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:57377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1qqQ-0006Ee-5e for 63523@debbugs.gnu.org; Wed, 24 May 2023 11:56:14 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1ae6b4c5a53so2977185ad.2 for <63523@debbugs.gnu.org>; Wed, 24 May 2023 08:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684943764; x=1687535764; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qZH3DH2QAINZDq6gJCZ+T0IXaVpCWVDBBQs+gN20TCs=; b=M38svS9TpP1PolTZor9cs9DfWQ273kpH7OQ8ecoi6UmSEk0lPUOmINY1m08iiMIy7x R43AJqE9cczz3iXqpOR7xAGv/aWuIPNZyAijBQViPtNO/BxhlwKfIgTpP5uNxUGDYoaE kW72gcRyy1bDGQ2idoJg/y3Mqq0aOLCtA1x65IpOGQEbolioDfAINm1tpMxszMp+CKCZ 1DMv85IGubo3Z+0NrxLlRoQNYfKd+0W+05Baek6ta7WPqtCmCUqzb4oFMhq5ziuLnyw8 zOqBnFWTZYYaidT0+r8Bcn68bWxliRw66f4/2rtufb6uQhdM7XMCfyAI7CITqnebzY4D 7cMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684943764; x=1687535764; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qZH3DH2QAINZDq6gJCZ+T0IXaVpCWVDBBQs+gN20TCs=; b=jhFRJ1gfXFh7z1b1mN417aicM0VwfJfVqoV8uWyOkZPMmDxUIHPZiWCyUBTu40n+2g zCSHQJW5v4ffuXqtbz0yHF6zvKy/7uRlhU+M4OHvSLewIUXEG15WOHwqbShLH8n8RuTT qAd3ydQthLJ4aVCau2wmJTtwpHVcHk2GhAAuGn76GnSK10iAKP2K0wdTw+FNpHtdK8JE wb/yXzE5gDsfgwQpGecaU8OSpGmCEQQtspfxn/wEy176G2tP93zu0Y2A6EwxU+MS1Pru bU8AYr1MN4FApjqERKv/EEouqXHoDGuohTCqRIBle1Zgn7R8Gs/Y073AYbtnSC+v7ETz esFQ== X-Gm-Message-State: AC+VfDwl9KcROgJs7mvY1lK1TiK1sfmpj2FgwyW34vNp3u21Jj2DBH3d 4cCX8FVU2bcKVOz/qXres+nMFsGvBi6MhajlyQDYSvk8N+Y= X-Google-Smtp-Source: ACHHUZ4hxXI0oFYkMdfKMRNGt5G3Iowd4zCsScRG5/9rIXQzrtB8H4yMdP/FX8j7I6GjXidPAfEDEDtA4XmtaRNTGSE= X-Received: by 2002:a17:902:db07:b0:1ac:8dae:d842 with SMTP id m7-20020a170902db0700b001ac8daed842mr21008084plx.46.1684943764297; Wed, 24 May 2023 08:56:04 -0700 (PDT) In-Reply-To: <83a5xtohhs.fsf@gnu.org> 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:262303 Archived-At: --000000000000899fbf05fc728a5d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 24, 2023 at 11:50=E2=80=AFAM Eli Zaretskii wrote= : > > From: Kaushal Modi > > Date: Wed, 24 May 2023 11:39:20 -0400 > > Cc: 63523@debbugs.gnu.org > > > > This issue happened to me again, but now I know what causes it. > > > > - I was building Emacs from a terminal with gcc 9.3.0 loaded. > > - I was launching emacsclient from a terminal with gcc 9.1.0 loaded. > > Sorry, I don't understand: what does it mean "terminal with gcc X.Y.Z > loaded"? how is GCC "loaded" in those cases? > Sorry, I used the wrong term.. meant to say shell instead of terminal. At work, we have a "module" system that allows loading different versions of various applications on the fly. So if I have 2 terminals open, I can have different versions of gcc in them. There's a default gcc version that's older (9.1.0) and then the gcc version I use to build emacs which is slightly newer (9.3.0). > > > Note to self: Ensure that the gcc versions used for building and runnin= g > emacs are the exact same > > (incl the minor versions). > > That's not a requirement. What _is_ a requirement is that when you > upgrade your GCC installation, you need to restart Emacs, if the > running Emacs session was built with native compilation, so that Emacs > starts using the version of GCC that you have installed for future > compilations. But the *.eln files that were built by libgccjit of one > version should be fully usable after you upgrade to another version. > I did do a complete restart of emacs/emacsclient. I ensured using ps that no emacsclient sessions were running in the background. If I have gcc 9.1.0 paths (PATH, LD_LIBRARY_PATH, etc.) loaded in the shell, I see this issue. But once I switch to gcc 9.3.0 paths, the issue is fixed. > > On the same note, is it possible for Emacs to give a more informative > error that says that libgcc of > > X.Y.Z version was not found? > > That error doesn't come from Emacs, it comes from the GCC compilation > driver. We just report it, as it was reported to us. > OK. --000000000000899fbf05fc728a5d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, May 24, 2023 at 11:50=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Kaushal Modi <kaushal.modi@gmail.com>
> Date: Wed, 24 May 2023 11:39:20 -0400
> Cc:
63523@d= ebbugs.gnu.org
>
> This issue happened to me again, but now I know what causes it.
>
> - I was building Emacs from a terminal with gcc 9.3.0 loaded.
> - I was launching emacsclient from a terminal with gcc 9.1.0 loaded.
Sorry, I don't understand: what does it mean "terminal with gcc X.= Y.Z
loaded"? how is GCC "loaded" in those cases?

Sorry, I used the wrong term.. meant to say shell inst= ead of terminal. At work, we have a "module" system that allows l= oading different versions of various applications on the fly. So if I have = 2 terminals open, I can have different versions of gcc in them.
T= here's a default gcc version that's older (9.1.0) and then the gcc = version I use to build emacs which is slightly newer (9.3.0).
=C2=A0

> Note to self: Ensure that the gcc versions used for building and runni= ng emacs are the exact same
> (incl the minor versions).

That's not a requirement.=C2=A0 What _is_ a requirement is that when yo= u
upgrade your GCC installation, you need to restart Emacs, if the
running Emacs session was built with native compilation, so that Emacs
starts using the version of GCC that you have installed for future
compilations.=C2=A0 But the *.eln files that were built by libgccjit of one=
version should be fully usable after you upgrade to another version.

I did do a complete restart of emacs/emacscli= ent. I ensured using ps that no emacsclient sessions were running in the ba= ckground.

If I have gcc 9.1.0 paths (PATH, LD_LIBR= ARY_PATH, etc.) loaded in the shell, I see this issue.
But once I= switch to gcc 9.3.0 paths, the issue is fixed.
=C2=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"> > On the same note, is it possible for Emacs to give a more informative = error that says that libgcc of
> X.Y.Z version was not found?

That error doesn't come from Emacs, it comes from the GCC compilation driver.=C2=A0 We just report it, as it was reported to us.
=

OK.=C2=A0
--000000000000899fbf05fc728a5d--