Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857906 - app-editors/emacs-28.1: compile failure on woodpecker.gentoo.org, possibly due to mixed 64/32 host
Summary: app-editors/emacs-28.1: compile failure on woodpecker.gentoo.org, possibly du...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2022-07-13 22:06 UTC by Robin Johnson
Modified: 2023-02-28 10:47 UTC (History)
0 users

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


Attachments
emacs-28.1:20220714-054209.log (emacs-28.1:20220714-054209.log,72.39 KB, text/plain)
2022-07-14 06:09 UTC, Robin Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2022-07-13 22:06:53 UTC
make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-28.1/work/emacs-28.1/lib'                                                                                
make -C lib-src all                                                                                                                                                     
make[1]: Entering directory '/var/tmp/portage/app-editors/emacs-28.1/work/emacs-28.1/lib-src'                                                                           
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe -o etags etags.c  ../lib/libgnu.a             
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe -o ctags ctags.c  ../lib/libgnu.a             
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe emacsclient.c \                               
    ../lib/libgnu.a  \                                                                                                                                                  
       -o emacsclient                                                                                                                                                   
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe -o ebrowse ebrowse.c  ../lib/libgnu.a         
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe hexl.c ../lib/libgnu.a  -o hexl               
i686-pc-linux-gnu-gcc -c     -I. -I../src -I../lib -I. -I./../src -I./../lib   -mtune=i686 -O2 -pipe  pop.c                                                             
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe make-docfile.c  ../lib/libgnu.a  -o           
+make-docfile                                                                                                                                                           
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe make-fingerprint.c  ../lib/libgnu.a  -o       
+make-fingerprint                                                                                                                                                       
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe  seccomp-filter.c \                           
  -lseccomp  -o seccomp-filter                                                                                                                                          
i686-pc-linux-gnu-gcc     -I. -I../src -I../lib -I. -I./../src -I./../lib  -Wl,-O1 -Wl,--as-needed  -mtune=i686 -O2 -pipe  movemail.c pop.o \                           
   ../lib/libgnu.a  -llockfile           -o movemail                                                                                                                    
In file included from seccomp-filter.c:62:                                                                                                                              
seccomp-filter.c: In function 'main':                                                                                                                                   
../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN && LONG_MAX == INT64_MAX)"                                 
  213 | # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)                                                                                          
      |                                         ^~~~~~~~~~~~~~                                                                                                          
../lib/verify.h:273:20: note: in expansion of macro '_GL_VERIFY'                                                                                                        
  273 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -)                                                                                                         
      |                    ^~~~~~~~~~                                                                                                                                   
seccomp-filter.c:173:3: note: in expansion of macro 'verify'                                                                                                            
  173 |   verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN                                                                                                           
      |   ^~~~~~                                                                                                                                                        
../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (void *) == 8)"                                                                                 
  213 | # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)                                                                                          
      |                                         ^~~~~~~~~~~~~~
...
seccomp-filter.c:175:3: note: in expansion of macro 'verify'                                                                                                            
  175 |   verify (sizeof (void *) == 8);                                                                                                                                
      |   ^~~~~~                                                                                                                                                        
make[1]: *** [Makefile:435: seccomp-filter] Error 1                                                                                                                     
make[1]: *** Waiting for unfinished jobs....                                                                                                                            
make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-28.1/work/emacs-28.1/lib-src'                                                                            
make: *** [Makefile:436: lib-src] Error 2                                                                                                                               
 * ERROR: app-editors/emacs-28.1::gentoo failed (compile phase):                                                                                                        
 *   emake failed
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2022-07-13 22:06:58 UTC
Portage 3.0.30 (python 3.10.4-final-0, default/linux/x86/17.0/hardened, gcc-11.3.0, glibc-2.34-r10, redacted x86_64)
=================================================================
System uname: Linux-redacted-x86_64-AMD_EPYC_7543_32-Core_Processor-with-glibc2.34                                                              
KiB Mem:    16425300 total,    498956 free                                                                                                                    KiB Swap:    4194300 total,   4194300 free                                  
Timestamp of repository gentoo: Wed, 13 Jul 2022 19:15:01 +0000
Head commit of repository gentoo: fef9c212cc857654acea385e37a492e818e3d417                                                                                    sh bash 5.1_p16                                                                                                                                               ld GNU ld (Gentoo 2.37_p1 p2) 2.37                                                                                                                            
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo                                     
dev-lang/perl:             5.34.0-r9::gentoo                   
dev-lang/python:           2.7.18_p15::gentoo, 3.7.11_p1::gentoo, 3.8.13::gentoo, 3.9.12::gentoo, 3.10.4::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo                                                                                                                       sys-devel/autoconf:        2.69-r5::gentoo, 2.71-r1::gentoo                                                                                                   
sys-devel/automake:        1.13.4::gentoo, 1.15.1-r2::gentoo, 1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo                                                                                                                        sys-devel/gcc:             10.3.0-r2::gentoo, 11.3.0::gentoo                                                                                                  sys-devel/gcc-config:      2.4::gentoo                                                                                                                        sys-devel/libtool:         2.4.7::gentoo                                                                                                                      sys-devel/make:            4.3::gentoo                                                                                                                        sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)                                                                                               sys-libs/glibc:            2.34-r10::gentoo                                                                                                                   

Repositories:                                                                                                                                                                                                                                                                                                               gentoo                                                                                                                                                            
  location: /usr/portage                                                                                                                                        
  sync-type: rsync                                                                                                                                              
  sync-uri: rsync://rsync0.uk.gentoo.org/gentoo-repo                                                                                                            
  priority: -1000                                                                                                                                           
  sync-rsync-extra-opts: --ipv4                                                                                                                                 
  sync-rsync-verify-max-age: 24                                                                                                                                 
  sync-rsync-verify-metamanifest: yes                                                                                                                       
  sync-rsync-verify-jobs: 1

infra-overlay                                                                                                                                                     
  location: /usr/local/infra-overlay                                                                                                                            
  masters: gentoo                                                                                                                                               
  priority: 0                                                                                                                                                                                                                                                                                                             

x-portage                                                                                                                                                         
  location: /usr/local/portage                                                                                                                                  
  masters: gentoo                                                                                                                                               
  priority: 1                                                                                                                                                                                                                                                                                                             

ACCEPT_KEYWORDS="x86"                                                                                                                                         ACCEPT_LICENSE="@FREE @FREE @BINARY-REDISTRIBUTABLE vim.org as-is"                                                                                            CBUILD="i686-pc-linux-gnu"                                                                                                                                    
CFLAGS="-mtune=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dev.d /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/scsi_id.config /etc/terminfo /etc/udev"
CXXFLAGS="-mtune=i686 -O2 -pipe"                                               
DISTDIR="/var/cache/portage/distfiles/"   
EMERGE_DEFAULT_OPTS="-q --color=n --newuse --selective=n --getbinpkg=n --usepkg=n --verbose-conflicts --autounmask=n --jobs 4 --load-average 16"              
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"                               
FCFLAGS="-O2 -march=i686 -pipe"                                                
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"             
FFLAGS="-O2 -march=i686 -pipe"                                                 
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://distfiles.gentoo.org/"      
LANG="en_US.UTF-8"                                                             
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                              
MAKEOPTS="-j 16 -l 16"
PKGDIR="/var/cache/portage/packages/"  
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
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="acl apache2 bash-completion berkdb bzip2 crypt gdbm hardened iconv ipv6 jpeg libglvnd libtirpc libwww maildir mmx ncurses nptl nptlonly openmp pam pcre perl pic pie png ptpax readline seccomp sni split-usr ssl ssp suexec tcpd unicode urandom vhosts vim-syntax x86 xattr xinetd xml xtpax zlib" ABI_X86="32" ADA_TARGET="gnat_2020" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_default authn_file authz_core 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 socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias access_compat asis auth_digest brotli cache_disk cache_socache log_forensic macro md proxy proxy_http ratelimit remoteip reqtimeout slotmem_shm substitute version watchdog" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" 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" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python2_7 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="account chaos checksum condition delude dhcpmac dnetmap echo fuzzy geoip gradm iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock proto psd quota2 rawnat steal sysrq tarpit tee"                                                                 
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, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-13 23:56:27 UTC
Please include the full build.log.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2022-07-14 06:09:37 UTC
Created attachment 791363 [details]
emacs-28.1:20220714-054209.log
Comment 4 Ulrich Müller gentoo-dev 2022-07-14 06:34:00 UTC
It tests for 64 bit userspace in lib-src/seccomp-filter.c (line 173):

  verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN
          && LONG_MAX == INT64_MAX);

However, it tests for 64 bit hardware in lib_src/Makefile.in (line 203):

ifeq ($(shell uname -m),x86_64)
[...]
SECCOMP_FILTER=1
endif
Comment 5 Ulrich Müller gentoo-dev 2022-07-14 06:48:50 UTC
Reported upstream:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56549
Comment 6 Ulrich Müller gentoo-dev 2022-07-14 13:52:27 UTC
I have disabled libseccomp in emacs-28.1-r2, so as a workaround you can install that version.
Comment 7 Ulrich Müller gentoo-dev 2022-12-01 08:21:36 UTC
Is still still an issue in ~emacs-28.2?
Comment 8 Ulrich Müller gentoo-dev 2023-02-28 10:47:48 UTC
(In reply to Ulrich Müller from comment #7)
> Is still still an issue in ~emacs-28.2?

Closing. Reopen if it is.