Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 853940 - app-office/libreoffice-7.3.4.2 fails to compile: 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'
Summary: app-office/libreoffice-7.3.4.2 fails to compile: SkChecksum_opts.h:25:16: err...
Status: RESOLVED DUPLICATE of bug 837650
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-23 20:48 UTC by Martin
Modified: 2022-06-24 05:13 UTC (History)
0 users

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


Attachments
build.log (build.log.xz,175.68 KB, application/x-xz)
2022-06-23 20:51 UTC, Martin
Details
environment (environment,206.89 KB, text/plain)
2022-06-23 20:52 UTC, Martin
Details
emerge --info (emerge--info.txt,7.15 KB, text/plain)
2022-06-23 20:52 UTC, Martin
Details
emerge -pqv (emerge--pqv.txt,399 bytes, text/plain)
2022-06-23 20:53 UTC, Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2022-06-23 20:48:42 UTC
Emerging libreoffice-7.3.4.2 fails with:

In file included from /var/tmp/portage/app-office/libreoffice-7.3.4.2/work/libreoffice-7.3.4.2/workdir/UnpackedTarball/skia/src/opts/SkOpts_sse42.cpp:11:
/var/tmp/portage/app-office/libreoffice-7.3.4.2/work/libreoffice-7.3.4.2/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-7.3.4.2/work/libreoffice-7.3.4.2/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-7.3.4.2/work/libreoffice-7.3.4.2/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); }
                                                                 ^
3 errors generated.


This is using the compile flags in /etc/portage/make.conf:

CFLAGS="-march=native -mtune=native -Os -fomit-frame-pointer -pipe -fstack-protector-strong"
CXXFLAGS="${CFLAGS}"

build.log, environment, emerge--info.txt, emerge--pqv.txt attached.


Compiling fails also for:

CFLAGS="-march=native -mtune=native -O3 -fomit-frame-pointer -pipe -fstack-protector-strong"
CXXFLAGS="${CFLAGS}"



Note: https://bugs.gentoo.org/835870#c11 https://bugs.gentoo.org/838373#c25 https://bugs.gentoo.org/850757#c2


Compiling again but with:

CFLAGS="-march=x86-64 -O2 -fomit-frame-pointer -pipe -fstack-protector-strong"
CXXFLAGS="${CFLAGS}"

completes fine.


Regards,
Martin
Comment 1 Martin 2022-06-23 20:51:35 UTC
Created attachment 787253 [details]
build.log
Comment 2 Martin 2022-06-23 20:52:20 UTC
Created attachment 787256 [details]
environment
Comment 3 Martin 2022-06-23 20:52:57 UTC
Created attachment 787259 [details]
emerge --info
Comment 4 Martin 2022-06-23 20:53:22 UTC
Created attachment 787262 [details]
emerge -pqv
Comment 5 Martin 2022-06-23 20:59:54 UTC
fyi:

# resolve-march-native
-march=amdfam10 -m3dnow -mabm -mcx16 -mfxsr -mlzcnt -mmmx -mpopcnt -mprfchw -msahf -msse -msse2 -msse3 -msse4a --param=l1-cache-line-size=64 --param=l1-cache-size=64 --param=l2-cache-size=512
Comment 6 jospezial 2022-06-24 00:01:04 UTC
This is with clang-14 and a duplicate of bug 837650.
Welcome!
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-24 05:13:21 UTC

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