[Bug 263976] editors/libreoffice: Fails to build if LLVM_DEFAULT=90 (default) and LTO=on (non-default)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Jun 2022 13:04:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263976

--- Comment #16 from jakub_lach@mailplus.pl ---
(In reply to jakub_lach from comment #15)

With llvm14 from ports it fails too - 

In file included from
/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/skia/src/opts/SkOpts_sse42.cpp:11: 
/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/skia/src/o
                                   pts/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 'crc3                                          
                2'                                                              
        return _mm_crc32_u64(seed, v);                                          
               ^                                                                
/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/skia/src/o
                                  pts/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 'crc3                                         
                                      2'                                        
    static uint32_t crc32c_4(uint32_t seed, uint32_t v) { return
_mm_crc32_u32(seed, v); }                                                       
                                                                 ^
/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.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.
gmake[3]: ***
[/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/solenv/gbuild/LinkTarget.mk:400:
/usr/obj/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/GenCxxObject/UnpackedTarball/skia/src/opts/SkOpts_sse42.o]
Error 1
gmake[3]: *** Waiting for unfinished jobs....


FWI - Penryn (here) does not have sse42

-- 
You are receiving this mail because:
You are the assignee for the bug.