Summary: | lang/gcc11: Add upstream patch to fix bug of libgccgit | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Yasuhiro Kimura <yasu> | ||||
Component: | Individual Port(s) | Assignee: | Yasuhiro Kimura <yasu> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | emacs, gerald, pkubaj, toolchain | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51688 | ||||||
Attachments: |
|
Description
Yasuhiro Kimura
![]() ![]() Created attachment 233223 [details] Patch file Add upstream patch to fix bug of libgccgit. I found the build failure is already reported in bug tracker of Emacs. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51688 According to it the cause of the problem is bug of libgccjit. So add upstream patch to fix it. lang/gcc11 currently doesn't have a maintainer, so if it fixes compilation for you, you can just commit it. Note if current lang/gcc11-devel is affected that one should be fixed as well - presumably by simply updating to a current snapshot, which is way overdue anyway. Can you please test with lang/gcc11-devel? (If you need help on how to go about that, let me know and I should be able to help.) (In reply to Gerald Pfeifer from comment #3) As I wrote in comment #0, build error also happens with current lang/gcc11-devel but is fixed by updating it to latest snapshot of GCC 11.2.1. So I'll also commit update of lang/gcc11-devel. Apologies, I missed item 5.3 in the original description. Thank you for your detailed analysis and plan to address this both in lang/gcc11 and lang/gcc11-devel. Those two ports are currently assigned to toolchain@, which is a list, but having maintained lang/gcc* for two decades you can go ahead with Approved by: gerald (toolchain@) if you wish. Take. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=427746f6a3ecdb70f182adfd42e48130f273fdda commit 427746f6a3ecdb70f182adfd42e48130f273fdda Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-04-14 18:11:17 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-04-16 08:07:56 +0000 lang/gcc11: Add upstream patch to fix bug of libgccjit After switching to LTO bootstrap with commit 2f6be9fb8281, build of editors/emacs-devel fails with segmentation fault of emacs if NATIVECOMP option is enabled. The cause of the problem is bug of libgccjit and it was unveiled by switching to LTO bootstrap. So add upstream patch to fix it. PR: 263271 Approved by: gerald (toolchain@) lang/gcc11/Makefile | 2 +- .../gcc11/files/patch-gcc_jit_jit-playback.c (new) | 33 ++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e66c56ac6a69696e3650e5f5d30514cfda4929d5 commit e66c56ac6a69696e3650e5f5d30514cfda4929d5 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2022-04-14 01:39:29 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2022-04-16 08:07:51 +0000 lang/gcc11-devel: Update to the 20220409 snapshot of GCC 11.2.1 PR: 263271 Approved by: gerald (toolchain@) lang/gcc11-devel/Makefile | 3 +-- lang/gcc11-devel/distinfo | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) |