unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
@ 2022-08-07  3:29 ccqpein via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-07  6:50 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: ccqpein via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-07  3:29 UTC (permalink / raw)
  To: 57029

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

I just update the gcc and the libgccjit through `brew` tonight and find building the emacs from source has issue.

after `./autogen.sh`, I ran the `./configure --with-native-compilation` (for simplifying) and got the error message that

```
checking for gcc_jit_context_acquire in -lgccjit... no
configure: error: ELisp native compiler was requested, but libgccjit was not found.
Please try installing libgccjit or a similar package.
If you are sure you want Emacs be compiled without ELisp native compiler,pass the --without-native-compilation option to configure.

```

I add `echo $MAC_CFLAGS` and `echo $MAC_LIBS` after line 4269 in `configure.ac` and I figure out it gives me the right including path of libgccjit 12.

```
-I/usr/local/Cellar/libgccjit/12.1.0/include
-L/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12
```

my environment:

macOS 12.5
intel CPU

Thanks.

[-- Attachment #2: Type: text/html, Size: 2713 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
  2022-08-07  3:29 bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 ccqpein via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-07  6:50 ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2022-08-07  6:50 UTC (permalink / raw)
  To: ccqpein; +Cc: 57029

merge 57029 57015
thanks

> Date: Sun, 07 Aug 2022 03:29:47 +0000
> From:  ccqpein via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> I just update the gcc and the libgccjit through `brew` tonight and find building the emacs from source has
> issue. 
> 
> after `./autogen.sh`, I ran the `./configure --with-native-compilation` (for simplifying) and got the error
> message that 
> 
> ```
> checking for gcc_jit_context_acquire in -lgccjit... no
> configure: error: ELisp native compiler was requested, but libgccjit was not found.
> Please try installing libgccjit or a similar package.
> If you are sure you want Emacs be compiled without ELisp native compiler,
> pass the --without-native-compilation option to configure.
> ```
> 
> I add `echo $MAC_CFLAGS` and `echo $MAC_LIBS` after line 4269 in `configure.ac` and I figure out it gives
> me the right including path of libgccjit 12. 
> 
> ```
> -I/usr/local/Cellar/libgccjit/12.1.0/include
> -L/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12
> ```
> 
> my environment:
> 
> macOS 12.5
> intel CPU

Thanks, this is a duplicate of bug#57015.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
  2022-08-07  9:57   ` bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Stefan Kangas
@ 2022-08-07 12:58     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-07 12:58 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 57029, 57015, Eli Zaretskii, Naofumi Yasufuku

Stefan Kangas <stefankangas@gmail.com> writes:

>> Is it really a problem to use only libgccjit 12.0 and older for the
>> release branch?
>
> I'm afraid that it's a serious problem.

Yes, I think we have to put a fix for this on the release branch, but as
Eli says, it must be safe.  (And this has been a surprisingly difficult
thing to get right -- it seems so simple, but the differences between
brew/Macports/versions of the basic utilities have led to numerous
breakages here.)







^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
  2022-08-08  8:08           ` Andreas Schwab
@ 2022-08-08 12:57             ` Gerd Möllmann
  0 siblings, 0 replies; 7+ messages in thread
From: Gerd Möllmann @ 2022-08-08 12:57 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 57029, 57015, Eli Zaretskii, Naofumi Yasufuku

Andreas Schwab <schwab@suse.de> writes:

> This x prefix is not about emptyness, but preventing a pre-POSIX test
> utility from being confused by the leading dash.

Ah right, I forgot that.  Thanks.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
  2022-08-19  7:24                     ` bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Gerd Möllmann
@ 2022-08-19  7:38                       ` Eli Zaretskii
  2022-08-19  9:05                         ` Gerd Möllmann
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-08-19  7:38 UTC (permalink / raw)
  To: Gerd Möllmann; +Cc: 57029, 57015, dario.gjorgjevski, stefankangas, naofumi

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: Stefan Kangas <stefankangas@gmail.com>,  57029@debbugs.gnu.org,
>   57015@debbugs.gnu.org,  dario.gjorgjevski@gmail.com,
>   naofumi@yasufuku.dev
> Date: Fri, 19 Aug 2022 09:24:27 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > We could, but that won't help our users.
> 
> Any objections to a fix in master?

Not on master, no.  My problem is what to do with the release branch.
If you think the solution based on Ruby is fine and safe, please
install that on the release branch (and it will be soon merged to
master).

Otherwise, which of the other solutions proposed here and in related
discussions do you recommend that is safe enough for the release
branch?

Thanks.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
  2022-08-19  7:38                       ` Eli Zaretskii
@ 2022-08-19  9:05                         ` Gerd Möllmann
  2022-09-05 18:43                           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Gerd Möllmann @ 2022-08-19  9:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57029, 57015, dario.gjorgjevski, stefankangas, naofumi

Eli Zaretskii <eliz@gnu.org> writes:

> If you think the solution based on Ruby is fine and safe, please
> install that on the release branch (and it will be soon merged to
> master).

Thanks!  I've done that on emacs-28.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1
  2022-08-19  9:05                         ` Gerd Möllmann
@ 2022-09-05 18:43                           ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-05 18:43 UTC (permalink / raw)
  To: Gerd Möllmann
  Cc: naofumi, 57029, 57015, dario.gjorgjevski, stefankangas,
	Eli Zaretskii

Gerd Möllmann <gerd.moellmann@gmail.com> writes:

>> If you think the solution based on Ruby is fine and safe, please
>> install that on the release branch (and it will be soon merged to
>> master).
>
> Thanks!  I've done that on emacs-28.

And I guess that fixed this bug?  So I'm closing this bug report now.

(If I misunderstood, please respond to the debbugs address and we'll
reopen.)





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-05 18:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-07  3:29 bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 ccqpein via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07  6:50 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2022-08-06 11:38 bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Naofumi Yasufuku
2022-08-06 12:13 ` Eli Zaretskii
2022-08-06 15:13   ` Naofumi Yasufuku
     [not found]     ` <m1les1xrag.fsf@yasufuku.dev>
2022-08-06 16:44       ` Eli Zaretskii
2022-08-08  6:03         ` bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Gerd Möllmann
2022-08-08  8:08           ` Andreas Schwab
2022-08-08 12:57             ` Gerd Möllmann
2022-08-07  9:57   ` bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Stefan Kangas
2022-08-07 12:58     ` bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Lars Ingebrigtsen
2022-08-09 15:33 ` bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Dario Gjorgjevski
2022-08-10 14:42   ` Naofumi Yasufuku
2022-08-10 15:52     ` Eli Zaretskii
2022-08-10 16:14       ` Stefan Kangas
2022-08-11 16:20         ` Eli Zaretskii
2022-08-16 13:28           ` Dario Gjorgjevski
2022-08-16 13:44             ` Eli Zaretskii
2022-08-16 13:58               ` Dario Gjorgjevski
2022-08-16 14:32                 ` Stefan Kangas
2022-08-16 15:52                   ` Eli Zaretskii
2022-08-19  7:24                     ` bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Gerd Möllmann
2022-08-19  7:38                       ` Eli Zaretskii
2022-08-19  9:05                         ` Gerd Möllmann
2022-09-05 18:43                           ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).