Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830723 - gui-libs/gtk-4.4.1 has multiple 32 bit build failures
Summary: gui-libs/gtk-4.4.1 has multiple 32 bit build failures
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 911201 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-07 08:54 UTC by Michael Mounteney
Modified: 2023-07-26 11:15 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mounteney 2022-01-07 08:54:53 UTC
../gtk-4.4.1/gtk/roaring/roaring.h: In function ‘hamming’:
../gtk-4.4.1/gtk/roaring/roaring.h:260:18: warning: implicit declaration of function ‘_mm_popcnt_u64’ [-Wimplicit-function-declaration]
  260 |     return (int) _mm_popcnt_u64(x);
      |                  ^~~~~~~~~~~~~~
../gtk-4.4.1/gtk/roaring/roaring.h:260:18: warning: nested extern declaration of ‘_mm_popcnt_u64’ [-Wnested-externs]

In file included from ../gtk-4.4.1/gtk/gtkbitset.c:24:
../gtk-4.4.1/gtk/roaring/roaring.c: In function ‘intersect_vector16’:
../gtk-4.4.1/gtk/roaring/roaring.c:395:37: error: ‘__m128i’ undeclared (first use in this function)
  395 |     const int vectorlength = sizeof(__m128i) / sizeof(uint16_t);
      |                                     ^~~~~~~
../gtk-4.4.1/gtk/roaring/roaring.c:395:37: note: each undeclared identifier is reported only once for each function it appears in
../gtk-4.4.1/gtk/roaring/roaring.c:398:12: error: expected ‘;’ before ‘v_a’
  398 |     __m128i v_a, v_b;
      |            ^~~~
      |            ;

Reproducible: Always

Steps to Reproduce:
1. emerge gui-libs/gtk
Actual Results:  
errors in temp/build.log as extracted in description

Expected Results:  
I would expect the package to be built and installed

# emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/x86/17.0/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r4, 5.14.14-gentoo-6 i686)
=================================================================
System uname: Linux-5.14.14-gentoo-6-i686-Intel-R-_Atom-TM-_CPU_E3815_@_1.46GHz-with-glibc2.34
KiB Mem:     2805852 total,   1587096 free
KiB Swap:    9437180 total,   9423132 free
Timestamp of repository gentoo: Tue, 04 Jan 2022 22:51:46 +0000
Head commit of repository gentoo: 859cefb0cd4dc6aba5c37ba7efa6cce56360f2d3

sh bash 5.1_p12
ld GNU ld (Gentoo 2.34 p4) 2.34.0
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p12::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.6.15::gentoo, 3.7.12_p1::gentoo, 3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.1-r1::gentoo
dev-lang/rust:             1.57.0::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.34-r1::gentoo, 2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           10.0.0::gentoo, 13.0.0::gentoo
sys-devel/gcc:             9.3.0::gentoo, 10.1.0-r1::gentoo, 11.2.1_p20211127::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            9.0.1::gentoo, 10.0.0::gentoo, 12.0.1::gentoo, 13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r4::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: yes

Installed sets: @Mate-desktop, @metal, @michael-base
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE unRAR"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -O2 -march=native -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS=" -O2 -march=native -fomit-frame-pointer"
DISTDIR="/var/db/repos/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --verbose-conflicts --quiet --update --changed-use --autounmask=n --autounmask-write=n --deep"
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=native -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=" -O2 -march=native -fomit-frame-pointer"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo "
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j2 -s"
PKGDIR="/var/db/repos/packages"
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="a52 aac acl acpi alsa base branding bzip2 cairo cdda cdr cli colord crypt cups dbus disk-partition dri dts dvd dvdr emboss encode evo exif extras flac fortran freerdp gbm gdbm gif glamor glibc-omitfp gnat_2020 gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gui help iconv icu imap inotify introspection ipmi ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc litehtml low-memory mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls notification nptl nsplugin ogg opengl openmp pam pango pcre pcre16 pdf pdo png policykit ppds pulseaudio rdesktop readline sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd themes tiff tracker truetype udev udisks unicode upower usb v4l2 vorbis wayland wxwidgets x264 x86 xattr xcb xcomposite xml xvid zlib" ABI_X86="32" ADA_TARGET="gnat_2020" ALSA_CARDS="intel" 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="aes mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB" 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="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_7" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel" 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, LEX, LFLAGS, LIBTOOL, 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 Michael Mounteney 2022-01-07 09:01:48 UTC
I got an "Internal Server Error" when I tried to attach the build log.  It is at http://landcroft.com/dropbox/gui-build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-07 11:52:55 UTC
(In reply to Michael Mounteney from comment #1)
> I got an "Internal Server Error" when I tried to attach the build log.  It
> is at http://landcroft.com/dropbox/gui-build.log

This usually happens when the browser doesn't have permission to open the file.
Comment 3 Mart Raudsepp gentoo-dev 2022-01-07 13:54:54 UTC
Looks like that code isn't ready to work with SSE4 enabled in 32bit mode. I'm not sure it's even supposed to work, but probably, with less XMM registers available.

Upstreams stance on this is: Don't do this. (enabling SSE4.2 on x86 - use x86_64 or don't enable SSE4.2).

https://gitlab.gnome.org/GNOME/gtk/-/issues/4173

I'm not sure what we should do here - filter out SSE4 flags on 32bit?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-07 14:22:35 UTC
(In reply to Mart Raudsepp from comment #3)
> Looks like that code isn't ready to work with SSE4 enabled in 32bit mode.
> I'm not sure it's even supposed to work, but probably, with less XMM
> registers available.
> 
> Upstreams stance on this is: Don't do this. (enabling SSE4.2 on x86 - use
> x86_64 or don't enable SSE4.2).
> 
> https://gitlab.gnome.org/GNOME/gtk/-/issues/4173
> 
> I'm not sure what we should do here - filter out SSE4 flags on 32bit?

We'll have to explicitly -mno* on x86, given it was imposed by -march=native here (presumably, the log link 404s ;))
Comment 5 bzoloid 2022-01-08 13:49:18 UTC
Looks like the "roaring" component assumes x86_64 builds, and forces some intrinsics.

FYI, I solved the build issue on my side by adding "-DDISABLE_X64=1" to the CFLAGS.
Comment 6 Francis Devereux 2023-07-26 11:13:56 UTC
*** Bug 911201 has been marked as a duplicate of this bug. ***
Comment 7 Francis Devereux 2023-07-26 11:15:02 UTC
I had the same problem (see #911201) and have worked around it locally by adding -mno-sse4.2 to the CFLAGS for the package.