S=/var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999 && I=$S/instdir && W=$S/workdir && mkdir -p $W/GenCxxObject/UnpackedTarball/skia/src/opts/ $W/Dep/GenCxxObject/UnpackedTarball/skia/src/opts/ && cd /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999 && CCACHE_CPP2=1 x86_64-pc-linux-gnu-clang++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DSKIA_IMPLEMENTATION=1 -DSKIA_DLL -DSK_USER_CONFIG_HEADER="<$S/config_host/config_skia.h>" -DSYSTEM_ZLIB -DZLIB_CONST -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros -Wembedded-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wdeprecated-copy-dtor -Wimplicit-fallthrough -Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread -march=native -mtune=native -O2 -pipe -msse4.2 -DEXCEPTIONS_ON -fexceptions -O2 -w -DLIBO_INTERNAL_ONLY -c $W/UnpackedTarball/skia/src/opts/SkOpts_sse42.cpp -o $W/GenCxxObject/UnpackedTarball/skia/src/opts/SkOpts_sse42.o -I$S/include -I/opt/openjdk-bin-17/include -I/opt/openjdk-bin-17/include/linux -I$S/config_host -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libpng16 -I$W/UnpackedTarball/skia -I$W/UnpackedTarball/skia/include/third_party/skcms/ -I$W/UnpackedTarball/skia/third_party/vulkanmemoryallocator/ -I$W/UnpackedTarball/skia/include/third_party/vulkan/ -I$S/external/skia/inc/ In file included from /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/workdir/UnpackedTarball/skia/src/opts/SkOpts_sse42.cpp:11: /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/workdir/UnpackedTarball/skia/src/opts/SkChecksum_opts.h:25:16: error: always_inline function '_mm_crc32_u64' requires target feature 'crc32', but would be inlined into function 'crc32c_8' that is compiled without support for 'crc32' return _mm_crc32_u64(seed, v); ^ /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/workdir/UnpackedTarball/skia/src/opts/SkChecksum_opts.h:22:66: error: always_inline function '_mm_crc32_u32' requires target feature 'crc32', but would be inlined into function 'crc32c_4' that is compiled without support for 'crc32' static uint32_t crc32c_4(uint32_t seed, uint32_t v) { return _mm_crc32_u32(seed, v); } ^ /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/workdir/UnpackedTarball/skia/src/opts/SkChecksum_opts.h:21:66: error: always_inline function '_mm_crc32_u8' requires target feature 'crc32', but would be inlined into function 'crc32c_1' that is compiled without support for 'crc32' static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return _mm_crc32_u8(seed, v); } ^ This is the same problem that sys-libs/compiler-rt-sanitizers-14.0.0 had. bug 835870
No build.log and emerge --info?
Created attachment 769847 [details] build.log Portage 3.0.30 (python 3.10.4-final-0, default/linux/amd64/17.1, gcc-11.2.1, glibc-2.35-r2, 5.18.0-rc1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.18.0-rc1-x86_64-AMD_Athlon-tm-_II_X2_240_Processor-with-glibc2.35 KiB Mem: 4028680 total, 1677852 free KiB Swap: 11010040 total, 10207556 free Timestamp of repository poly-c: Sat, 09 Apr 2022 19:34:06 +0000 Head commit of repository poly-c: 22abd0874429e08ff3dcbb66be6919de94a49527 Timestamp of repository gentoo: Sun, 10 Apr 2022 07:49:29 +0000 Head commit of repository gentoo: 2c564c6884b6c09e4e4a7c87477a5ff929efa831 Timestamp of repository FireBurn: Fri, 08 Apr 2022 21:35:04 +0000 Head commit of repository FireBurn: fb844b547c27b7a005cb99a4669b352a51639f1c Timestamp of repository gamerlay: Fri, 08 Apr 2022 21:35:06 +0000 Head commit of repository gamerlay: 149b68d7d7aa24124e9c79e69ffca0ff274d5c93 Timestamp of repository gerislay: Fri, 08 Apr 2022 21:35:19 +0000 Head commit of repository gerislay: 6d50742ffd2ad031ac49709db1c25686f277d8c9 Timestamp of repository java: Tue, 05 Apr 2022 17:35:29 +0000 Head commit of repository java: ac42cb7b132c0f1c77ee36149cb76f98ca8f81e1 Head commit of repository kde: bd419bf276ce0b7a1166ddcfc170c8934ec718a7 Head commit of repository netfab-overlay: cdf89191a519b53f28c2fefae9aa646b286bef9a Timestamp of repository pg_overlay: Sun, 10 Apr 2022 01:04:49 +0000 Head commit of repository pg_overlay: 99403a87a5e5faf11ef4062cee703c9ecc6b9ca7 Timestamp of repository qt: Sat, 09 Apr 2022 16:19:25 +0000 Head commit of repository qt: 399d6b01f77b3d0cc57b0744913ef300d8ea3bbb Timestamp of repository seden: Sat, 02 Apr 2022 16:36:17 +0000 Head commit of repository seden: b6b0fdd3bb6403159412a49aac708c6d95c3d793 Timestamp of repository stefantalpalaru: Wed, 06 Apr 2022 10:49:19 +0000 Head commit of repository stefantalpalaru: 5ed83a4d7efedb2b6d5135554ea165cddcb8068b Timestamp of repository wine: Sat, 09 Apr 2022 15:04:11 +0000 Head commit of repository wine: 4b889b1517e3cf597c8a24d078c3ae71e57ace06 sh bash 5.1_p16 ld GNU ld (Gentoo 2.38 p3) 2.38 ccache version 4.6 [enabled] app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1::gentoo dev-lang/python: 3.9.12::gentoo, 3.10.4::gentoo dev-lang/rust-bin: 1.60.0::gentoo dev-util/ccache: 4.6-r1::gentoo dev-util/cmake: 3.23.0::gentoo dev-util/meson: 0.61.4-r2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r1::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.0-r1::gentoo sys-devel/gcc: 11.2.1_p20220319::overlay_jl sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.0::gentoo sys-devel/llvm: 14.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.17::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r2::gentoo Repositories: poly-c location: /var/db/repos/poly-c sync-type: git sync-uri: https://github.com/gentoo-mirror/poly-c.git masters: gentoo priority: -1001 gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 FireBurn location: /var/db/repos/FireBurn sync-type: git sync-uri: https://github.com/gentoo-mirror/FireBurn.git masters: gentoo gamerlay location: /var/db/repos/gamerlay sync-type: git sync-uri: https://github.com/gentoo-mirror/gamerlay.git masters: gentoo gerislay location: /var/db/repos/gerislay sync-type: git sync-uri: https://github.com/gentoo-mirror/gerislay.git masters: gentoo java location: /var/db/repos/java sync-type: git sync-uri: https://github.com/gentoo-mirror/java.git masters: gentoo kde location: /var/db/repos/kde sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo netfab-overlay location: /var/db/repos/netfab-overlay sync-type: git sync-uri: https://github.com/netfab/overlay masters: gentoo overlay_jl location: /var/db/repos/overlay_jl masters: gentoo pg_overlay location: /var/db/repos/pg_overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/pg_overlay.git masters: gentoo qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo seden location: /var/db/repos/seden sync-type: git sync-uri: https://github.com/gentoo-mirror/seden.git masters: gentoo stefantalpalaru location: /var/db/repos/stefantalpalaru sync-type: git sync-uri: https://github.com/gentoo-mirror/stefantalpalaru.git masters: gentoo wine location: /var/db/repos/wine sync-type: git sync-uri: https://github.com/gentoo-mirror/wine.git masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --keep-going --quiet-build=y --verbose-conflicts" 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="-march=native -mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache 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 xattr" FFLAGS="-march=native -mtune=native -O2 -pipe" GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ https://mirrors.dotsrc.org/gentoo/ https://mirror.leaseweb.com/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" 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="64bit X Xaw3d a52 aac aacplus aacs aalib ace acl acpi activefilter admin aften alsa ambisonics amd64 ap apm apng archive arping audacious audiofile automount avif bash bazaar bdplus binary-drivers bluray boost btrfs bzip2 cairo ccache cdda cddb cdio cdr cdrom charconv chm chroot cjk clang cli client colordiff colorpicker colors compress corefonts cpio cpufreq_bench cpuload crypt css cue cups curl custom-modes d3d9 dav1d dbus declarative dga dhcp dom doom doomsday dri dri3 drm dts duktape dump dv dvb dvd dvdnav eap eap-sim eap-tls ebook egl elogind encode enscript epub equalizer exif extensions extras faac faad farstream fat fax fbcon fdformat fdk ffmpeg fftw firefox flac fluidsynth fontconfig foomatic foomaticdb fortran freedoom ftp fuse gadu gd gegl geoip gif git glamor gpg gphoto2 graphite grub gstreamer gtk gtk3 gtk4 gui gzip haptic hddtemp hdf hdf5 heretic hexen hid highlight history hpcups hpijs http http2 hwdb iconv icu id3tag idn imagemagick initramfs inotify introspection ipc ipod ipv6 jack jbootstrap jit jpeg jpeg2k kde kdenlive keyfinder ladspa lame lcms legacy-systray lensfun libaom libass libcanberra libdrm libglvnd libinput libkms libmpv libnotify librtmp libsamplerate libssh2 libtirpc libv4l libwww lightdm live lm-sensors lm_sensors logrotate lua lv2 lximage lz4 lzma lzo mad magic man matroska md5sum meanwhile melt mercurial metalink midi mikmod mime minizip mixer mjpeg mmap mms mng mobi mod modern-top modplug mono mount mouse mozilla mp3 mp4 mpeg mpeg2 mplayer mtp multilib multimedia multislot musepack musicbrainz nano-syntax ncat ncurses ndiff network networkmonitor newnet nls nmap-update normalize nowlistening nping nptl ntfs ntfsprogs ntp nvidia nvram obex ocr odbc odf offload ogg ogm openal opencl opengl openh264 openmp openssl opus osdmenu otr p2p pam pango panorama parse-clocks pcap pci pcre pcre16 pdf pdfimport phonon pipes pkcs11 plasma plugins pm-utils png policykit postproc postscript powermanagement ppds printsupport privacy projectm pulseaudio pvr python qalculate qml qrcode qt5 qtkeychain quicktime radio rar raw readline recording reiser4 reiserfs remote-access replaygain rtc rtmp rubberband sbsms scanner screensaver scripttools sdl seccomp secure-delete sensors serial serialport sftp sha512 shorten shout skins slang smi sndfile sockets sound soundtouch source-highlight speech speex spell split-usr sql sqlite sqlite3 squashfs ssh ssl staging startup-notification statistics statusnotifier stk stream subtitles sudo svg symlink sync-plugin-portage syslog sysstat system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite sysv-utils szip taglib text texteffect tftp tftpd themes theora threads thumbnail tiff timidity tracepath traceroute translator truetype twolame udev udf udisks unicode update_drivedb upower urlpicpreview usb utils v4l v4l2 vaapi vala vamp vdpau vector-icons video videos virtualbox vkd3d vnc vorbis vpx vroot vst vulkan vulkaninfo wad wav wavpack wayland webgl webp webpresence widgets winbind winpopup wmf worldclock wps wxwidgets x264 x265 xattr xcb xcomposite xfs xine xinerama xkb xml xmp xorg xosd xpm xrandr xscreensaver xv xvid yahoo zenmap zip zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2020" 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 popcnt sse sse2 sse3 sse4a" CURL_SSL="openssl" 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="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" 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_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby30 ruby31" USERLAND="GNU" VIDEO_CARDS="radeon 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, MAKEOPTS, 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 ================================================================= Package Settings ================================================================= sys-devel/clang-14.0.0-r1::gentoo was built with the following: USE="(pie) static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -llvm-libunwind -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8" FEATURES="parallel-fetch userfetch news strict unknown-features-warn merge-sync binpkg-docompress ccache network-sandbox pid-sandbox qa-unresolved-soname-deps buildpkg-live ebuild-locks userpriv distlocks config-protect-if-modified xattr unmerge-logs preserve-libs usersandbox fixlafiles sfperms binpkg-logs multilib-strict assume-digests binpkg-multi-instance protect-owned usersync unmerge-orphans binpkg-dostrip ipc-sandbox sandbox" sys-devel/llvm-14.0.0::gentoo was built with the following: USE="binutils-plugin libffi ncurses xml -debug -doc -exegesis -libedit -test -xar -z3" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) (-ARC) (-CSKY) (-M68k)" FEATURES="config-protect-if-modified buildpkg-live ebuild-locks parallel-fetch usersync unmerge-logs xattr protect-owned usersandbox sandbox fixlafiles userpriv binpkg-dostrip unmerge-orphans distlocks multilib-strict news ipc-sandbox pid-sandbox assume-digests unknown-features-warn userfetch binpkg-logs qa-unresolved-soname-deps sfperms ccache binpkg-docompress network-sandbox preserve-libs binpkg-multi-instance merge-sync strict"
Maybe the just released clang 14.0.1 could help. I will test again when it lands in Gentoo.
(In reply to jospezial from comment #3) > Maybe the just released clang 14.0.1 could help. > I will test again when it lands in Gentoo. Still the same error.
I changed my /etc/portage/make.conf to CFLAGS="-march=native -mno-sse4.2 -mno-crc32 -mtune=native -mno-sse4.2 -mno-crc32 -O2 -pipe" That does not help because libreoffice configure removes "-mno-crc32". -mno-sse4.2 is kept. >>> Configuring source in /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999 ... * Preset CFLAGS: -march=native -mno-sse4.2 -mno-crc32 -mtune=native -mno-sse4.2 -mno-crc32 -O2 -pipe * Preset LDFLAGS: -Wl,-O1 -Wl,--as-needed * Enforcing the use of clang due to USE=clang ... * strip-flags: CFLAGS: changed '-march=native -mno-sse4.2 -mno-crc32 -mtune=native -mno-sse4.2 -mno-crc32 -O2 -pipe' to '-march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe' * strip-flags: CXXFLAGS: changed '-march=native -mno-sse4.2 -mno-crc32 -mtune=native -mno-sse4.2 -mno-crc32 -O2 -pipe' to '-march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe' * strip-flags: FFLAGS: changed '-march=native -mno-sse4.2 -mno-crc32 -mtune=native -mno-sse4.2 -mno-crc32 -O2 -pipe' to '-march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe' * strip-flags: FCFLAGS: changed '-march=native -mno-sse4.2 -mno-crc32 -mtune=native -mno-sse4.2 -mno-crc32 -O2 -pipe' to '-march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe' * Used CFLAGS: -march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe * Used LDFLAGS: -Wl,-O1 -Wl,--as-needed -fuse-ld=lld * econf: updating libreoffice-9999/config.sub with /usr/share/gnuconfig/config.sub * econf: updating libreoffice-9999/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share --disable-dependency-tracking --docdir=/usr/share/doc/libreoffice-9999 --htmldir=/usr/share/doc/libreoffice-9999/html --libdir=/usr/lib64 --with-system-dicts --with-system-epoxy --with-system-headers --with-system-jars --with-system-libs --enable-build-opensymbol --enable-cairo-canvas --enable-largefile --enable-mergelibs --enable-python=system --enable-randr --enable-release-build --disable-breakpad --disable-bundle-mariadb --disable-ccache --disable-epm --disable-fetch-external --disable-gtk3-kde5 --disable-online-update --disable-openssl --disable-pdfium --disable-qt6 --with-extra-buildid=Gentoo official package (from git: 2f726fa41cbd249f2fb30222b29d5f30bce52e6e) --enable-extension-integration --with-external-dict-dir=/usr/share/myspell --with-external-hyph-dir=/usr/share/myspell --with-external-thes-dir=/usr/share/myspell --with-external-tar=/var/tmp/portage/app-office/libreoffice-9999/distdir --with-lang= --with-parallelism=2 --with-system-abseil --with-system-openjpeg --with-system-ucpp --with-tls=nss --with-vendor=Gentoo Foundation --with-webdav --with-x --without-fonts --without-myspell-dicts --with-help=html --without-helppack-integration --with-system-gpgmepp --without-system-cuckoo --without-system-jfreereport --with-system-libcmis --without-system-sane --without-system-dragonbox --without-system-libfixmath --disable-report-builder --disable-sdremote-bluetooth --disable-coinmp --enable-cups --enable-dbus --disable-debug --disable-evolution2 --disable-firebird-sdbc --enable-gstreamer-1-0 --enable-gtk3 --enable-gtk4 --enable-kf5 --enable-qt5 --disable-ldap --disable-odk --enable-pdfimport --disable-postgresql-sdbc --enable-skia --without-lxml --without-system-coinmp --without-gdrive-client-id --without-gdrive-client-secret --with-java --without-doxygen --enable-dconf --enable-gio --disable-ext-nlpsolver --disable-scripting-beanshell --disable-scripting-javascript --disable-ext-wiki-publisher --without-junit --without-system-hsqldb --with-ant-home=/usr/share/ant --with-jdk-home=/opt/openjdk-bin-17 ******************************************************************** * * Running LibreOffice build configuration. * ******************************************************************** checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for product name... LibreOffice checking for package version... 7.4.0.0.alpha0+ checking for product version... 7.4 checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for grep... (cached) /bin/grep checking for GNU Make... /usr/bin/make checking for sed... /bin/sed checking whether to use link-time optimization... no configure: VCL platform has a usable dynamic loading API: yes configure: VCL platform uses freetype+fontconfig: yes configure: VCL platform uses headless plugin: yes configure: VCL platform uses X11: yes checking for explicit AFLAGS... no checking for explicit CFLAGS... -march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe checking for explicit CXXFLAGS... -march=native -mno-sse4.2 -mtune=native -mno-sse4.2 -O2 -pipe checking for explicit OBJCFLAGS... no checking for explicit OBJCXXFLAGS... no checking for explicit LDFLAGS... -Wl,-O1 -Wl,--as-needed -fuse-ld=lld checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-clang checking whether the C compiler works... yes
clang by itself would also disable both flags with native: ("-"=disabled "+"=enabled) /usr/lib/llvm/14/bin/clang-14 -E - -march=native '-###' clang version 14.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/14/bin (in-process) "/usr/lib/llvm/14/bin/clang-14" "-cc1" "-triple" "x86_64-pc-linux-gnu" "-E" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "-" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "amdfam10" "-target-feature" "-avx512pf" "-target-feature" "-tsxldtrk" "-target-feature" "+cx16" "-target-feature" "+sahf" "-target-feature" "-tbm" "-target-feature" "-avx512ifma" "-target-feature" "-sha" "-target-feature" "-crc32" "-target-feature" "-fma4" "-target-feature" "-vpclmulqdq" "-target-feature" "+prfchw" "-target-feature" "-bmi2" "-target-feature" "-cldemote" "-target-feature" "-fsgsbase" "-target-feature" "-ptwrite" "-target-feature" "-amx-tile" "-target-feature" "-uintr" "-target-feature" "-gfni" "-target-feature" "+popcnt" "-target-feature" "-widekl" "-target-feature" "-aes" "-target-feature" "-avx512bitalg" "-target-feature" "-movdiri" "-target-feature" "-xsaves" "-target-feature" "-avx512er" "-target-feature" "-avxvnni" "-target-feature" "-avx512fp16" "-target-feature" "-avx512vnni" "-target-feature" "-amx-bf16" "-target-feature" "-avx512vpopcntdq" "-target-feature" "-pconfig" "-target-feature" "-clwb" "-target-feature" "-avx512f" "-target-feature" "-xsavec" "-target-feature" "-clzero" "-target-feature" "-pku" "-target-feature" "+mmx" "-target-feature" "-lwp" "-target-feature" "-rdpid" "-target-feature" "-xop" "-target-feature" "-rdseed" "-target-feature" "-waitpkg" "-target-feature" "-kl" "-target-feature" "-movdir64b" "-target-feature" "+sse4a" "-target-feature" "-avx512bw" "-target-feature" "-clflushopt" "-target-feature" "-xsave" "-target-feature" "-avx512vbmi2" "-target-feature" "+64bit" "-target-feature" "-avx512vl" "-target-feature" "-serialize" "-target-feature" "-hreset" "-target-feature" "-invpcid" "-target-feature" "-avx512cd" "-target-feature" "-avx" "-target-feature" "-vaes" "-target-feature" "-avx512bf16" "-target-feature" "+cx8" "-target-feature" "-fma" "-target-feature" "-rtm" "-target-feature" "-bmi" "-target-feature" "-enqcmd" "-target-feature" "-rdrnd" "-target-feature" "-mwaitx" "-target-feature" "-sse4.1" "-target-feature" "-sse4.2" "-target-feature" "-avx2" "-target-feature" "+fxsr" "-target-feature" "-wbnoinvd" "-target-feature" "+sse" "-target-feature" "+lzcnt" "-target-feature" "-pclmul" "-target-feature" "-prefetchwt1" "-target-feature" "-f16c" "-target-feature" "-ssse3" "-target-feature" "-sgx" "-target-feature" "-shstk" "-target-feature" "+cmov" "-target-feature" "-avx512vbmi" "-target-feature" "-amx-int8" "-target-feature" "-movbe" "-target-feature" "-avx512vp2intersect" "-target-feature" "-xsaveopt" "-target-feature" "-avx512dq" "-target-feature" "+sse2" "-target-feature" "-adx" "-target-feature" "+sse3" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=/home/joerg" "-resource-dir" "/usr/lib/llvm/14/bin/../../../../lib/clang/14.0.1" "-internal-isystem" "/usr/lib/llvm/14/bin/../../../../lib/clang/14.0.1/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdebug-compilation-dir=/home/joerg" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fcolor-diagnostics" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "-" "-x" "c" "-"
~2 years ago libreoffice added -march=x86-64-v2 to CXXFLAGS in external/firebird/ExternalProject_firebird.mk to circumvent a similar bug with clang: https://github.com/LibreOffice/core/commit/e70168ec88642dc4940bf6cf7ae49a97afc84916 ~2 weeks ago libreoffice copied that lines to CFLAGS in external/firebird/ExternalProject_firebird.mk https://github.com/LibreOffice/core/commit/ea68de2968c0dbcd8e7549435e829db06795c16d Could that be a solution for skia .mk-file too? Btw, I found the USE-flag "custom-cflags" in app-office/libreoffice but did not test it yet.
Bug 847445 skia-m103 does not change the situation.
Still the same with clang 14.0.4
Welcome to the club with libreoffice-7.3.4.2 bug 853940
*** Bug 853940 has been marked as a duplicate of this bug. ***
Still the same with clang 15.0.1. libreoffice upstream is still on skia m103
Success! libreoffice master branch has been updated to skia-m111 compiled with sys-devel/clang-15.0.7-r1 I hope there will be a fix for the other branches.
Still relevant with 7.5.9.2?
All versions of libreoffice <7.6.0.0 are gone now from gentoo tree. Closing.