Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916180 - app-editors/emacs-29.1-r4: "make all" succeeded, but Emacs is not functional
Summary: app-editors/emacs-29.1-r4: "make all" succeeded, but Emacs is not functional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2023-10-23 13:15 UTC by Errelin
Modified: 2023-10-24 06:34 UTC (History)
1 user (show)

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


Attachments
emacs-29.1-r4-build.log (emacs-29.1-r4-build.log,221.78 KB, text/plain)
2023-10-23 13:16 UTC, Errelin
Details
Patch for top-level Makefile (emacs-29.1-sanity-check.patch,373 bytes, patch)
2023-10-23 17:08 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Errelin 2023-10-23 13:15:49 UTC
I'm having this issue with emacs-29.1-r4 and indeed it happened when emacs-v29 was first introduced.  But I'm not sure why.  It seems the emacs-29 compiles fine but in the very end something happens so the emerge attempt fails. 

Reproducible: Always

Steps to Reproduce:
emerge -auv app-editors/emacs

Actual Results:  
I got error message from portage saying emake failed

Expected Results:  
emerge succeeds

emerge -pqv '=app-editors/emacs-29.1-r4::gentoo'
[ebuild  NS   ] app-editors/emacs-29.1-r4 [28.2-r9] USE="X%* acl cairo dbus gmp gsettings gui gzip-el harfbuzz inotify jpeg json libxml2 png source ssl svg threads tiff xft xpm zlib -Xaw3d -alsa (-aqua) -athena -dynamic-loading -games -gfile -gif -gpm -gtk -imagemagick -jit -kerberos -lcms -livecd -m17n-lib -mailutils -motif (-selinux) -small-ja-dic% -sound -sqlite% -systemd -toolkit-scroll-bars -tree-sitter% -valgrind -webp% -wide-int -xwidgets"


emerge --info '=app-editors/emacs-29.1-r4::gentoo'
Portage 3.0.53 (python 3.11.6-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r6, 6.1.31-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.31-gentoo-x86_64-AMD_Ryzen_7_5800H_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    65237636 total,  53996764 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 23 Oct 2023 08:46:56 +0000
Head commit of repository gentoo: 86784c0dc284799bfc9ba319f4365903b418a60f

Timestamp of repository guru: Sun, 22 Oct 2023 19:17:33 +0000
Head commit of repository guru: f82bc35013147ff5d8392c93892c623ce9408c9c

Head commit of repository gentoo-zh: 8b6bff95cf5d7b5a4b09aba69654e71afb0c5a12

Head commit of repository interlay: a7bfe6d69b588cbdde3d6644e797be89a939f0c9

sh bash 5.2_p15-r7
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r7::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.0::gentoo
dev-lang/rust-bin:         1.73.0::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.51::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.3::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             17.0.3::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.3::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r6::gentoo
sys-libs/libselinux:       3.5-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    priority: 9
    volatile: False

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo
    priority: 10
    volatile: False

interlay
    location: /var/db/repos/interlay
    sync-type: git
    sync-uri: https://github.com/Linerre/interlay.git
    masters: gentoo
    priority: 15
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 2 --with-bdeps y --complete-graph y --quiet-build y --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.sjtug.sjtu.edu.cn/gentoo/ https://mirrors.ustc.edu.cn/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl amd64 bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline savedconfig seccomp split-usr ssl test-rust unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-3" LUA_TARGETS="lua5-3 lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Errelin 2023-10-23 13:16:35 UTC
Created attachment 873295 [details]
emacs-29.1-r4-build.log
Comment 2 Ulrich Müller gentoo-dev 2023-10-23 17:08:32 UTC
Created attachment 873316 [details, diff]
Patch for top-level Makefile

Please try if attached patch fixes the problem.
Comment 3 Errelin 2023-10-24 05:03:49 UTC
(In reply to Ulrich Müller from comment #2)
> Please try if attached patch fixes the problem.

Hello,

Yes, it works. With the patch, emacs-29.1-r4 builds successfully.  
Thank you so much for the patch and help.

Best
Comment 4 Larry the Git Cow gentoo-dev 2023-10-24 06:11:59 UTC
The bug has been closed via the following commit(s):

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

commit cefbf6a8ac9dd8694144e22edfcad5224febc577
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2023-10-24 06:10:14 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-10-24 06:10:21 +0000

    app-editors/emacs: Fix "make sanity-check"
    
    Fixes a build failure, so no new revision.
    
    Closes: https://bugs.gentoo.org/916180
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/Manifest             | 2 +-
 app-editors/emacs/emacs-29.1-r4.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 5 Ulrich Müller gentoo-dev 2023-10-24 06:15:57 UTC
I've added the patch to emacs-29.1-r4.

That adding the --quick option fixes the problem indicates that either something in your user configuration or from your packages breaks the build. You may want to run emacs-updater to recompile the installed app-emacs packages.
Comment 6 Errelin 2023-10-24 06:23:00 UTC
(In reply to Ulrich Müller from comment #5)

> That adding the --quick option fixes the problem indicates that either
> something in your user configuration or from your packages breaks the build.
> You may want to run emacs-updater to recompile the installed app-emacs
> packages.

Sure.  Not aware of this point before I ran into my issue.  I'm running emacs-updater now.  Thanks for the information and help.  Best