Opened 2 months ago

Closed 7 weeks ago

#11098 closed defect (fixed)

Changes in bd1bcb07e0f29c135103a402d71b343a09ad1690 causing compilation failure on x86-64

Reported by: Peter Kovář Owned by:
Priority: normal Component: avutil
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Commit x86/intreadwrite: use intrinsics instead of inline asm for AV_COPY128

Configuration:
../../configure --cc=clang --cxx=clang++ --bindir=$Prefix/$Configuration/bin --datadir=$Prefix/share/ffmpeg --enable-debug --disable-static --disable-stripping --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-alsa --disable-avisynth --enable-bzlib --enable-decoder=vvc --enable-demuxer=vvc --enable-ffnvcodec --enable-frei0r --enable-gcrypt --enable-gmp --enable-gpl --enable-gray --enable-iconv --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librsvg --enable-librtmp --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxcb-shape --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzimg --enable-libzvbi --enable-lzma --enable-nonfree --enable-openal --enable-opengl --enable-openssl --enable-postproc --enable-sdl2 --enable-shared --enable-swresample --enable-swscale --enable-vaapi --enable-version3 --enable-vdpau --enable-libxevd --enable-libxeve --enable-xlib --enable-zlib --enable-libsrt --enable-demuxer=dvdvideo --enable-libdvdread --enable-libdvdnav --enable-gpl --enable-libvpl --disable-filter=lensfun --incdir=$Prefix/include/ffmpeg --libdir=$Prefix/$Configuration/lib --mandir=$Prefix/share/man --optflags='-O3 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_Source=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --prefix=$Prefix --shlibdir=$Prefix/$Configuration/lib --enable-cuda --enable-cuvid --enable-nvdec --enable-nvenc --extra-cflags=-I/usr/local/cuda/include --extra-ldflags='-flto -lm' --enable-runtime-cpudetect

In file included from src/libavcodec/huffyuvenc.c:41:
In file included from src/libavcodec/put_bits.h:33:
In file included from src/libavutil/intreadwrite.h:72:
In file included from src/libavutil/x86/intreadwrite.h:27:
In file included from /usr/bin/../lib/clang/18/include/immintrin.h:224:
/usr/bin/../lib/clang/18/include/avx512fp16intrin.h:285:67: error: expected ')'

285 | static inline int DEFAULT_FN_ATTRS128 _mm_comieq_sh(m128h A,

|

src/libavcodec/huffyuv.h:45:11: note: expanded from macro 'A'

45 | #define A 3

|

/usr/bin/../lib/clang/18/include/avx512fp16intrin.h:285:58: note: to match this '('

285 | static inline int DEFAULT_FN_ATTRS128 _mm_comieq_sh(m128h A,

|

/usr/bin/../lib/clang/18/include/avx512fp16intrin.h:287:33: error: invalid conversion between vector type 'v8hf' (vector of 8 '_Float16' values) and integer type 'int' of different size

287 | return builtin_ia32_vcomish((v8hf)A, (v8hf)B, _CMP_EQ_OS,

|

/usr/bin/../lib/clang/18/include/avx512fp16intrin.h:287:44: error: invalid conversion between vector type 'v8hf' (vector of 8 '_Float16' values) and integer type 'int' of different size

287 | return builtin_ia32_vcomish((v8hf)A, (v8hf)B, _CMP_EQ_OS,

|

/usr/bin/../lib/clang/18/include/avx512fp16intrin.h:291:67: error: expected ')'

291 | static inline int DEFAULT_FN_ATTRS128 _mm_comilt_sh(m128h A,

|

src/libavcodec/huffyuv.h:45:11: note: expanded from macro 'A'

45 | #define A 3

|

Change History (1)

comment:1 by James, 7 weeks ago

Component: avcodecavutil
Resolution: fixed
Status: newclosed

Should have been fixed in 70c6b904be08815a9fb300063d5b8010f3ddca41

Note: See TracTickets for help on using tickets.