Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 882491

Summary: www-client/firefox-102.5.0 does not compile with gcc 11.3 / clang-15
Product: Gentoo Linux Reporter: Thomas <tg42>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Complete build.log

Description Thomas 2022-11-22 12:04:24 UTC
build log:
853:05.49 In file included from /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/
SkOpts_sse42.cpp:11:
853:05.50 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:39:2
1: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined into function 'ha
sh_fn' that is compiled without support for 'crc32'
853:05.50                 a = _mm_crc32_u64(a, sk_unaligned_load<uint64_t>(data+ 0));
853:05.50                     ^
853:05.50 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:40:2
1: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined into function 'ha
sh_fn' that is compiled without support for 'crc32'
853:05.50                 b = _mm_crc32_u64(b, sk_unaligned_load<uint64_t>(data+ 8));
853:05.50                     ^
853:05.50 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:41:2
1: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined into function 'ha
sh_fn' that is compiled without support for 'crc32'
853:05.50                 c = _mm_crc32_u64(c, sk_unaligned_load<uint64_t>(data+16));
853:05.51                     ^
853:05.51 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:45:37: error: always_inline function '_mm_crc32_u32' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.51             hash = _mm_crc32_u32(a, _mm_crc32_u32(b, c));
853:05.51                                     ^
853:05.51 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:45:20: error: always_inline function '_mm_crc32_u32' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.51             hash = _mm_crc32_u32(a, _mm_crc32_u32(b, c));
853:05.51                    ^
853:05.51 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:50:20: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.51             hash = _mm_crc32_u64(hash, sk_unaligned_load<uint64_t>(data));
853:05.51                    ^
853:05.51 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:57:20: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.51             hash = _mm_crc32_u64(hash, sk_unaligned_load<uint64_t>(data));
853:05.52                    ^
853:05.52 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:66:22: error: always_inline function '_mm_crc32_u32' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.52             hash32 = _mm_crc32_u32(hash32, sk_unaligned_load<uint32_t>(data));
853:05.52                      ^
853:05.52 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:70:22: error: always_inline function '_mm_crc32_u16' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.52             hash32 = _mm_crc32_u16(hash32, sk_unaligned_load<uint16_t>(data));
853:05.52                      ^
853:05.52 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkChecksum_opts.h:74:22: error: always_inline function '_mm_crc32_u8' requires target feature 'crc32', but would be inlined into function 'hash_fn' that is compiled without support for 'crc32'
853:05.52             hash32 = _mm_crc32_u8(hash32, sk_unaligned_load<uint8_t>(data));
853:05.53                      ^
853:05.53 10 errors generated.
853:05.53 gmake[4]: *** [/var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/config/rules.mk:668: SkOpts_sse42.o] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge =firefox-102.5.0
2.
3.



ortage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/systemd, gcc-11.3.0, glibc-2.36-r5, 5.4.220-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.220-gentoo-x86_64-AMD_Phenom-tm-_II_X3_740_Processor-with-glibc2.36
KiB Mem:     7897820 total,   3889496 free
KiB Swap:    4193620 total,   4193108 free
Timestamp of repository gentoo: Tue, 22 Nov 2022 09:00:01 +0000
Head commit of repository gentoo: cba0359ef27c80b609a3daae81bcaad2b01eac21
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p3::gentoo
dev-lang/rust:             1.65.0::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.4::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.3::gentoo
sys-devel/gcc:             9.4.0::gentoo, 11.3.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo, 15.0.3::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.3::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.10-r2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 3
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup 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 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE en"
MAKEOPTS="-j3"
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="/tmp"
SHELL="/bin/bash"
USE="X alsa amd64 bzip2 cairo cli crypt dbus dri exif ffmpeg flac fortran gdbm gtk3 iconv icu jpeg libglvnd libnotify libtirpc mp3 multilib ncurses nls nptl ogg opengl openh264 openmp pam pcre png policykit qt5 readline seccomp split-usr ssl svg system-png system-sqlite systemd test-rust truetype udev udisks unicode vorbis x264 xpm zlib zstd" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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="libinput evdev" KERNEL="linux" L10N="de de-DE de-1901 en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu r600 radeon" 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, EMERGE_DEFAULT_OPTS, 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 Thomas 2022-11-22 12:25:12 UTC
the error stems from clang++:

853:04.08 /usr/lib/llvm/15/bin/x86_64-pc-linux-gnu-clang++ -std=gnu++17 -o SkOpts_sse42.o -c  -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox_build/dist/stl_wrappers -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox_build/dist/system_wrappers -include /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DSKIA_IMPLEMENTATION=1 -DSK_PDF_USE_HARFBUZZ_SUBSETTING=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox_build/gfx/skia -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/include/third_party/skcms -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/cairo/cairo/src -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox_build/dist/include -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/var/tmp/portage/www-client/firefox-102.5.0/work/firefox_build/dist/include/nss -I/usr/include/libpng16 -I/usr/include/pixman-1 -DMOZILLA_CLIENT -include /var/tmp/portage/www-client/firefox-102.5.0/work/firefox_build/mozilla-config.h -Qunused-arguments -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wsign-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat -Wcomma -Wenum-compare-conditional -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=backend-plugin -Wno-error=free-nonheap-object -Wno-error=return-std-move -Wno-error=atomic-alignment -Wno-error=deprecated-copy -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-psabi -Wthread-safety -Wno-unknown-warning-option -fno-sized-deallocation -fno-aligned-new -march=native -pipe -fno-exceptions -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -O2 -fomit-frame-pointer -funwind-tables -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-sign-compare -Wno-unreachable-code -Wno-unused-function -Wno-implicit-fallthrough -Wno-inconsistent-missing-override -Wno-macro-redefined -Wno-unused-private-field -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/SkOpts_sse42.o.pp  -fcolor-diagnostics -O3 -msse4.2 /var/tmp/portage/www-client/firefox-102.5.0/work/firefox-102.5.0/gfx/skia/skia/src/opts/SkOpts_sse42.cpp

I suspect -march=native and -msse4.2 contradict.
Comment 2 Mike Gilbert gentoo-dev 2022-11-22 18:20:44 UTC
Please attach a full build log and change the status back to UNCONFIRMED.
Comment 3 Thomas 2022-11-23 08:29:24 UTC
Created attachment 836011 [details]
Complete build.log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-23 08:35:07 UTC

*** This bug has been marked as a duplicate of bug 838373 ***