From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Buckley Newsgroups: gmane.emacs.bugs Subject: bug#55455: [macOS] Fix build when using brew's libgccjit Date: Mon, 16 May 2022 20:00:58 +0100 Message-ID: References: <83lev1ih0i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c2509105df25a575" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18462"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55455@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 16 21:02:30 2022 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 1nqfzC-0004Z9-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 May 2022 21:02:30 +0200 Original-Received: from localhost ([::1]:59022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqfzB-0001ZT-7B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 May 2022 15:02:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqfyo-0001ZB-L3 for bug-gnu-emacs@gnu.org; Mon, 16 May 2022 15:02:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqfyl-0005Tj-U4 for bug-gnu-emacs@gnu.org; Mon, 16 May 2022 15:02:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqfyk-0002aJ-Ry for bug-gnu-emacs@gnu.org; Mon, 16 May 2022 15:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Buckley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2022 19:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55455 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 55455-submit@debbugs.gnu.org id=B55455.16527276819858 (code B ref 55455); Mon, 16 May 2022 19:02:02 +0000 Original-Received: (at 55455) by debbugs.gnu.org; 16 May 2022 19:01:21 +0000 Original-Received: from localhost ([127.0.0.1]:55064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqfy4-0002Yv-JV for submit@debbugs.gnu.org; Mon, 16 May 2022 15:01:20 -0400 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:43922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqfy1-0002Yg-1k for 55455@debbugs.gnu.org; Mon, 16 May 2022 15:01:19 -0400 Original-Received: by mail-io1-f41.google.com with SMTP id o190so16965154iof.10 for <55455@debbugs.gnu.org>; Mon, 16 May 2022 12:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xsfK/B6LBP7AMHasvSy6Xac+FaGmSc/oq9Sbt0BNNkY=; b=D3ITLInIcJ4tbHP5+9FNMPdPUFltLrC1o6vhX7AeFvAQTyfLvY+wTUPkXLVdexzdk/ En1/FqRKSQPsXmCLp8I4Gava15rUyA5xbUf7br2eXAVaXZwycPYaGPdEkY76wRPgeQhc hhAaVt+/eRlw8XXLq5hlYe9yy+gsHb+VlAjrT9uhcTTEkZlW02XaHKz4dQABZyDOFxtq YNrIhP0gvPqiDvv9H+iriEXu60wswYow16hTe8/f8OuV+IPLQZ/lDkk/MpRJMBV8C/S5 bhKtzEovUr49viQpjsGzEwJhU1Bat5kFDdC1tirZSpYQKHF4tZ8ZBg+YYUhevgkXAwWw eXXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xsfK/B6LBP7AMHasvSy6Xac+FaGmSc/oq9Sbt0BNNkY=; b=2i5NaSXE5S3QMErPnCAwqGOHbmvRy+4hRkbSTA064qP89tKl73Blwnsj3K7fX7gCFK NPjaDThmQanxwqkarRRxnoSgf/ZuZ62kqUzKhEJQEM1r7w+P5gaJvaBmnqsP8ibaXsRG vcgszVGA7uB5WegldhtRjC0HqQe4vRV/Umrp6C6y1sCdPZUUh7nYbyZbpF0nkNXavFUM LoPklZ1LNdo2qOVA42Y4Llm9hS94uX3QnnaRCEGj7u0dZkGIgaFSrbQ2nVZEUtu0W8WI DEGi7afJoM/OqkQpM7IRQluamVcflpOY35MWuD4cPIUPKGhpdycyCSxz+DRxpduYUfHt pJFQ== X-Gm-Message-State: AOAM532STVMBMYoRinbazuYDTgKBEDfYtK+ZlT1Y3arm024WZ7IIhwoF WeY/WBsNUPjNeuYiIE2lq8GaJdgbcVU3NZuJ/GA= X-Google-Smtp-Source: ABdhPJyFq7vE0/0RoPWq2hP/zHzSo/ua4ZAa3z3hE8SI3XDHkgjxLffLcr4imWeKejVWPw5LH3gdxS6J265KOllVQc4= X-Received: by 2002:a05:6638:268d:b0:32b:83db:2560 with SMTP id o13-20020a056638268d00b0032b83db2560mr10091165jat.166.1652727671311; Mon, 16 May 2022 12:01:11 -0700 (PDT) In-Reply-To: <83lev1ih0i.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" Xref: news.gmane.io gmane.emacs.bugs:232410 Archived-At: --000000000000c2509105df25a575 Content-Type: text/plain; charset="UTF-8" > Daniel Martin > I think this is a duplicate of bug#55173, which should be fixed already. > Could you try to build Emacs with native compilation from the master branch? Yes it is as confirmed by Robert. All is ok now on `master`. I've been on emacs-28 for a while now, probably time to move to master. > Eli Zaretskii > By "now" do you mean in some recent enough version? That is, older > versions will still use the .so extension? Older versions of gcc used the wrong dynamic library extension for libgccjit on macOS. Brew on X86_64 uses the latest version. However, brew on ARM64 is still using the .so version because it depends on an older fork of gcc. So both need to be supported. > Shouldn't we try both extensions? The fix in master does this correctly. Thanks for the comments - all resolved now. On Mon, 16 May 2022 at 17:23, Eli Zaretskii wrote: > > From: John Buckley > > Date: Mon, 16 May 2022 12:38:14 +0100 > > > > libgccjit installed via Homebrew now uses the correct .dylib dynamic > library > > extension on macOS. > > By "now" do you mean in some recent enough version? That is, older > versions will still use the .so extension? > > > This causes configure to fail because it is still > > using the .so extension. > > > > The attached patch fixes the libgccjit library extension in configure.ac > > Shouldn't we try both extensions? > > Thanks. > --000000000000c2509105df25a575 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Daniel Martin <mardani29@yahoo.es>

>=C2=A0I think this is = a duplicate of bug#55173, which should be fixed already.
> Could you try to build Emacs with native compila= tion from the master=C2=A0branch?

Yes it is as con= firmed by Robert.=C2=A0
All is ok now on `master= `. I've been on emacs-28 for a while now, probably time to move to mast= er.

> Eli=C2=A0Zaretskii <eliz@gnu.org>

>= =C2=A0By "now" do you mean in some recent enough= version?=C2=A0 That is, older
> versions will still use the= .so extension?

Older versions of gcc used the wrong dynamic library extens= ion for libgccjit on macOS. Brew on X86_64 uses the latest version. However= , brew=C2=A0on ARM64 is still using the .so version= because it depends on an older fork of gcc. So both need to be supported.<= /span>

> Shouldn't we t= ry both extensions?

The fix in master does this co= rrectly.

Thanks for the comments - all resolved no= w.

On Mon, 16 May 2022 at 17:23, Eli Zaretskii <eliz@gnu.org> wrote:
> Fro= m: John Buckley <nhoj.buckley@gmail.com>
> Date: Mon, 16 May 2022 12:38:14 +0100
>
> libgccjit installed via Homebrew now uses the correct .dylib dynamic l= ibrary
> extension on macOS.

By "now" do you mean in some recent enough version?=C2=A0 That is= , older
versions will still use the .so extension?

> This causes configure to fail because it is still
> using the .so extension.
>
> The attached patch fixes the libgccjit library extension in configure.ac=

Shouldn't we try both extensions?

Thanks.
--000000000000c2509105df25a575--