[Bug 264750] multimedia/aom fails compilation with base llvm (14) on penryn (no crc32 /sse42)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 Jun 2022 11:08:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264750

            Bug ID: 264750
           Summary: multimedia/aom fails compilation with base llvm (14)
                    on penryn (no crc32 /sse42)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: jakub_lach@mailplus.pl
          Assignee: jbeich@FreeBSD.org
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)

FreeBSD 13.1-STABLE #0 stable/13-862668c48 amd64

$ cc -v
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git
llvmorg-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.1
Thread model: posix
InstalledDir: /usr/bin



FAILED:
CMakeFiles/aom_av1_encoder_sse42_intrinsics.dir/av1/encoder/x86/hash_sse42.c.o  
/usr/bin/cc  -I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0
-I/usr/obj/usr/ports/multimedia/aom/work/.build
-I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/apps
-I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/common
-I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/examples
-I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/stats
-I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/third_party/libyuv/include
-I/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/third_party/libwebm -O2
-pipe -march=native  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe
-march=native -fstack-protector-strong -fno-strict-aliasing -std=c99 -Wall
-Wdisabled-optimization -Wextra -Wextra-semi -Wextra-semi-stmt
-Wfloat-conversion -Wformat=2 -Wimplicit-function-declaration -Wpointer-arith
-Wshorten-64-to-32 -Wsign-compare -Wstring-conversion -Wtype-limits
-Wuninitialized -Wunused -Wvla -Wshadow -Wundef -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -msse4.2
-MD -MT
CMakeFiles/aom_av1_encoder_sse42_intrinsics.dir/av1/encoder/x86/hash_sse42.c.o
-MF
CMakeFiles/aom_av1_encoder_sse42_intrinsics.dir/av1/encoder/x86/hash_sse42.c.o.d
-o  
CMakeFiles/aom_av1_encoder_sse42_intrinsics.dir/av1/encoder/x86/hash_sse42.c.o
-c
/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/av1/encoder/x86/hash_sse42.c   
/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/av1/encoder/x86/hash_sse42.c:39:11:
error: always_inline function '_mm_crc32_u8' requires target feature 'crc32',
but would be inlined into function 'av1_get_crc32c_value_sse4_2' that is
compiled without support for 'crc32'                                            
    crc = _mm_crc32_u8(crc, *buf);                                              
          ^                                                                     
/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/av1/encoder/x86/hash_sse42.c:44:12:
error: always_inline function '_mm_crc32_u64' requires target feature 'crc32',
but would be inlined into function 'av1_get_crc32c_value_sse4_2' that is
compiled without support for 'crc32'
  CALC_CRC(_mm_crc32_u64, crc64, uint64_t, buf, len)
           ^
/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/av1/encoder/x86/hash_sse42.c:47:12:
error: always_inline function '_mm_crc32_u32' requires target feature 'crc32',
but would be inlined into function 'av1_get_crc32c_value_sse4_2' that is
compiled without support for 'crc32'
  CALC_CRC(_mm_crc32_u32, crc, uint32_t, buf, len)
           ^
/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/av1/encoder/x86/hash_sse42.c:48:12:
error: always_inline function '_mm_crc32_u16' requires target feature 'crc32',
but would be inlined into function 'av1_get_crc32c_value_sse4_2' that is
compiled without support for 'crc32'
  CALC_CRC(_mm_crc32_u16, crc, uint16_t, buf, len)
           ^
/usr/obj/usr/ports/multimedia/aom/work/aom-3.4.0/av1/encoder/x86/hash_sse42.c:49:12:
error: always_inline function '_mm_crc32_u8' requires target feature 'crc32',
but would be inlined into function 'av1_get_crc32c_value_sse4_2' that is
compiled without support for 'crc32'
  CALC_CRC(_mm_crc32_u8, crc, uint8_t, buf, len)
           ^
5 errors generated.

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