Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874657 - app-editors/emacs-28.2 - configure: error: ELisp native compiler was requested, but libgccjit header files were
Summary: app-editors/emacs-28.2 - configure: error: ELisp native compiler was requeste...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-10-03 14:08 UTC by Toralf Förster
Modified: 2024-12-28 19:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.34 KB, text/plain)
2022-10-03 14:08 UTC, Toralf Förster
Details
app-editors:emacs-28.2:20221003-134344.log (app-editors:emacs-28.2:20221003-134344.log,10.48 KB, text/plain)
2022-10-03 14:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,25.80 KB, text/plain)
2022-10-03 14:08 UTC, Toralf Förster
Details
environment (environment,98.79 KB, text/plain)
2022-10-03 14:08 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,8.36 KB, application/x-bzip)
2022-10-03 14:08 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,16.05 KB, application/x-bzip)
2022-10-03 14:08 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.40 KB, application/x-bzip)
2022-10-03 14:08 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-03 14:08:29 UTC
checking for inotify_init1... yes
checking for library containing inflateEnd... -lz
checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... no
configure: error: ELisp native compiler was requested, but libgccjit header files were
not found.
Please try installing libgccjit-dev or a similar package.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20221003-104152

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit d3c6af033927955cf7a9983fabc04e44d029f85b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 13:17:04 2022 +0000

    2022-10-03 13:17:03 UTC

emerge -qpvO app-editors/emacs
[ebuild  N    ] app-editors/emacs-28.2  USE="acl gmp inotify jit png ssl threads xpm zlib -Xaw3d -alsa (-aqua) -athena -cairo -dbus -dynamic-loading -games -gfile -gif -gpm -gsettings -gtk -gui -gzip-el -harfbuzz -imagemagick -jpeg -json -kerberos -lcms -libxml2 -livecd -m17n-lib -mailutils -motif (-selinux) -sound -source -svg -systemd -tiff -toolkit-scroll-bars -wide-int -xft -xwidgets"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 14:08:30 UTC
Created attachment 817738 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 14:08:31 UTC
Created attachment 817741 [details]
app-editors:emacs-28.2:20221003-134344.log
Comment 3 Toralf Förster gentoo-dev 2022-10-03 14:08:33 UTC
Created attachment 817744 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 14:08:34 UTC
Created attachment 817747 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 14:08:35 UTC
Created attachment 817750 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 14:08:36 UTC
Created attachment 817753 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 14:08:37 UTC
Created attachment 817756 [details]
temp.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2024-03-24 21:12:04 UTC
still reproducible with latest versions
Comment 9 Zhixu Liu 2024-12-12 15:40:31 UTC
> checking for x86_64-pc-linux-gnu-gcc... clang

looks like it's a problem with clang, build success w/ gcc.
Comment 10 Zhixu Liu 2024-12-12 16:17:10 UTC
had been discussed at https://forums.gentoo.org/viewtopic-p-8738735.html
Comment 11 Larry the Git Cow gentoo-dev 2024-12-27 18:40:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ec58022ff2e8134a72e33b3f0644c20dc19ceb

commit 46ec58022ff2e8134a72e33b3f0644c20dc19ceb
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2024-12-14 12:13:40 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2024-12-27 18:09:37 +0000

    app-editors/emacs: must be built with gcc[jit] if USE=jit
    
    Clang does not provide an analogue of libgccjit, see discussions at
    https://forums.gentoo.org/viewtopic-p-8738735.html
    
    Closes: https://bugs.gentoo.org/874657
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/emacs-28.2-r15.ebuild     | 6 ++++++
 app-editors/emacs/emacs-29.4-r1.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.91.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.92.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.93.ebuild      | 6 ++++++
 app-editors/emacs/emacs-30.0.9999-r1.ebuild | 6 ++++++
 app-editors/emacs/emacs-31.0.9999.ebuild    | 6 ++++++
 7 files changed, 42 insertions(+)
Comment 12 Larry the Git Cow gentoo-dev 2024-12-28 19:45:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1df63f3196c3a873fcc8bd42016a55a630cf1a45

commit 1df63f3196c3a873fcc8bd42016a55a630cf1a45
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2024-12-28 18:35:52 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2024-12-28 19:45:35 +0000

    app-editors/emacs: Force gcc for jit native compilation
    
    Bug: https://bugs.gentoo.org/874657
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/emacs-28.2-r15.ebuild     | 20 ++++++++++++--------
 app-editors/emacs/emacs-29.4-r1.ebuild      | 20 ++++++++++++--------
 app-editors/emacs/emacs-30.0.91.ebuild      | 20 ++++++++++++--------
 app-editors/emacs/emacs-30.0.92.ebuild      | 20 ++++++++++++--------
 app-editors/emacs/emacs-30.0.93.ebuild      | 20 ++++++++++++--------
 app-editors/emacs/emacs-30.0.9999-r1.ebuild | 20 ++++++++++++--------
 app-editors/emacs/emacs-31.0.9999.ebuild    | 20 ++++++++++++--------
 7 files changed, 84 insertions(+), 56 deletions(-)