Created attachment 870822 [details] build.log I'm using an LLVM profile, but defined a GCC environment to build Emacs with.
Created attachment 870823 [details] emerge --info '=app-editors/emacs-29.1-r1::gentoo'
Created attachment 870824 [details] emerge -pqv '=app-editors/emacs-29.1-r1::gentoo'
Created attachment 870825 [details] emerge --info gcc
Created attachment 870826 [details] emerge -pqv gcc
Created attachment 870827 [details] environment
Questions: 1. Is this reproducible? 2. Does it also occur with -O2 instead of -O3 and without -flto in CFLAGS?
(In reply to Ulrich Müller from comment #6) > Questions: > 1. Is this reproducible? > 2. Does it also occur with -O2 instead of -O3 and without -flto in CFLAGS? Quite frankly, I'm not sure. However, it is fixed now after I recompiled GCC with the GCC environment instead of Clang.
For the record, the file where it fails is ja-dic.el which is by far the largest elisp file: $ wc /usr/share/emacs/29.1/lisp/leim/ja-dic/ja-dic.el 148654 353920 4798823 /usr/share/emacs/29.1/lisp/leim/ja-dic/ja-dic.el The file is also trivial, so my guess is that the problem is not with Emacs but with gcc or clang. *** This bug has been marked as a duplicate of bug 20600 ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589d9bedff04817f4c3f0fdbbcebcc9ded593575 commit 589d9bedff04817f4c3f0fdbbcebcc9ded593575 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-09-20 12:49:49 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-09-20 12:50:18 +0000 app-editors/emacs: New use flag small-ja-dic Bug: https://bugs.gentoo.org/914368 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-editors/emacs/emacs-29.1-r2.ebuild | 576 +++++++++++++++++++++++++++++++ app-editors/emacs/emacs-29.1.9999.ebuild | 3 +- app-editors/emacs/emacs-30.0.9999.ebuild | 3 +- app-editors/emacs/metadata.xml | 2 + 4 files changed, 582 insertions(+), 2 deletions(-)
I've added a USE flag small-ja-dic which exposes the --with-small-ja-dic "generate a smaller-size Japanese dictionary" configure option. This might serve as a workaround if the problem should reappear.