[FFmpeg-trac] #10854(undetermined:new): 6.1.1: buld fails on linking libswscale/libswscale.so.7

FFmpeg trac at avcodec.org
Sun Feb 11 15:26:02 EET 2024


#10854: 6.1.1: buld fails on linking libswscale/libswscale.so.7
-------------------------------------+-------------------------------------
             Reporter:  Tomasz       |                     Type:  defect
  Kloczko                            |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 How to reproduce:

 Source code configured with
 {{{
 + ./configure --arch=x86_64 --bindir=/usr/bin --datadir=/usr/share/ffmpeg
 --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man '
 --optflags=-m64 -mtune=generic -fasynchro
 nous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g
 -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1
 -fno-omit-frame-pointer -mno-omit-leaf-frame-poi
 nter -fdata-sections -ffunction-sections -fstack-protector-strong
 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto
 -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIO
 NS -Wall -Werror=format-security' --prefix=/usr --disable-cuda-sdk
 --disable-htmlpages --disable-libcaca --disable-libjack --disable-openssl
 --disable-static --disable-stripping --enable-bz
 lib --enable-decoders --enable-demuxers --enable-encoders --enable-frei0r
 --enable-gcrypt --enable-gnutls --enable-gpl --enable-hwaccels --enable-
 ladspa --enable-lcms2 --enable-libaom --ena
 ble-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-
 libcodec2 --enable-libdav1d --enable-libdrm --enable-libfdk-aac --enable-
 libflite --enable-libfontconfig --enable-li
 bfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
 libilbc --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-
 libmysofa --enable-libopencore-amrnb --enable
 -libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-
 libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse
 --enable-librabbitmq --enable-librav1e --enable-libri
 st --enable-librsvg --enable-librubberband --enable-libshaderc --enable-
 libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex
 --enable-libsrt --enable-libssh --enable-libsvtav1
  --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-
 libv4l2 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwebp --enable-libx2
 65 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq
 --enable-libzvbi --enable-lv2 --enable-muxers --enable-openal --enable-
 opencl --enable-opengl --enable-pic --enable-pth
 reads --enable-shared --enable-vaapi --enable-vapoursynth --enable-vdpau
 --enable-version3 --enable-vulkan '--extra-
 ldflags=-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -
 Wl,--as-needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat
 /redhat-hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-
 plugin' --enable-chromaprint --enable-libdc13
 94 --enable-libiec61883 --enable-libvmaf --enable-libvpl --disable-
 decoder=h264,hevc,vc1 --enable-
 encoder=,a64multi,a64multi5,aac,libfdk_aac,ac3,adpcm_adx,adpcm_argo,adpcm_g722,adpcm_g726,a
 dpcm_g726le,adpcm_ima_alp,adpcm_ima_amv,adpcm_ima_apm,adpcm_ima_qt,adpcm_ima_ssi,adpcm_ima_wav,adpcm_ima_ws,adpcm_ms,adpcm_swf,adpcm_yamaha,alac,alias_pix,amv,anull,apng,ass,asv1,asv2,av1_a
 mf,av1_nvenc,av1_qsv,ayuv,bitpacked,bmp,cinepak,cljr,dca,dfpwm,dnxhd,dpx,dvbsub,dvdsub,dvvideo,exr,ffv1,ffvhuff,flac,flashsv,flashsv2,flv,g723_1,gif,h261,h263,h263_v4l2m2m,h263p,h264_amf,h2
 64_nvenc,h264_qsv,h264_v4l2m2m,h264_vaapi,hap,hdr,hevc_amf,hevc_nvenc,hevc_qsv,hevc_v4l2m2m,hevc_vaapi,huffyuv,ilbc,jpegls,jpeg2000,libaom,libaom_av1,libcodec2,libgsm,libgsm_ms,libilbc,libj
 xl,libmp3lame,libopencore_amrnb,libopenh264,libopenjpeg,libopus,librav1e,libschroedinger,libspeex,libsvtav1,libtheora,libtwolame,libvo_amrwbenc,libvorbis,libvpx_vp8,libvpx_vp9,libwebp,libwe
 bp_anim,libxvid,mjpeg,mjpeg_qsv,mjpeg_vaapi,mlp,mp2,mp2fixed,mpeg1video,mpeg2video,mpeg2_qsv,mpeg2_vaapi,mpeg4,mpeg4_v4l2m2m,msmpeg4v2,msmpeg4v3,msvideo1,nellymoser,opus,pam,pbm,pcm_alaw,pc
 m_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,pcm_s24be,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s8,pcm_s8
 _planar,pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_u8,pcx,pgm,pgmyuv,phm,png,ppm,qoi,qtrle,r10k,r210,ra_144,rawvideo,roq,roq_dpcm,rpza,rv10,rv20,s302m,sbc,sgi,smc,snow,
 sonic,sonic_ls,speedhq,srt,ssa,subrip,sunrast,svq1,targa,text,tiff,truehd,tta,ttml,utvideo,v210,v308,v408,v410,vc1_qsv,vc1_v4l2m2m,vc2,vnull,vorbis,vp8_qsv,vp8_v4l2m2m,vp8_vaapi,vp9_qsv,vp9
 _vaapi,wavpack,wbmp,webvtt,wmav1,wmav2,wmv1,wmv2,wrapped_avframe,xbm,xface,xsub,xwd,y41p,yuv4,zlib,zmbv,
 --enable-
 decoder=,aac,aasc,libfdk_aac,ac3,acelp_kelvin,adpcm_4xm,adpcm_adx,adpcm_afc
 ,adpcm_agm,adpcm_aica,adpcm_argo,adpcm_ct,adpcm_dtk,adpcm_ea,adpcm_ea_maxis_xa,adpcm_ea_r1,adpcm_ea_r2,adpcm_ea_r3,adpcm_ea_xas,adpcm_g722,adpcm_g726,adpcm_g726le,adpcm_ima_acorn,adpcm_ima_
 alp,adpcm_ima_amv,adpcm_ima_apc,adpcm_ima_apm,adpcm_ima_cunning,adpcm_ima_dat4,adpcm_ima_dk3,adpcm_ima_dk4,adpcm_ima_ea_eacs,adpcm_ima_ea_sead,adpcm_ima_iss,adpcm_ima_moflex,adpcm_ima_mtf,a
 dpcm_ima_oki,adpcm_ima_qt,adpcm_ima_qt_at,adpcm_ima_rad,adpcm_ima_smjpeg,adpcm_ima_ssi,adpcm_ima_wav,adpcm_ima_ws,adpcm_ms,adpcm_mtaf,adpcm_psx,adpcm_sbpro_2,adpcm_sbpro_3,adpcm_sbpro_4,adp
 cm_swf,adpcm_thp,adpcm_thp_le,adpcm_vima,adpcm_xa,adpcm_xmd,adpcm_yamaha,adpcm_zork,alac,alias_pix,amrnb,amrwb,amv,anm,ansi,anull,apac,ape,apng,arbc,argo,ass,asv1,asv2,atrac1,atrac3,atrac3a
 l,atrac3p,atrac3pal,aura,aura2,av1,av1_qsv,ayuv,bethsoftvid,bfi,bink,binkaudio_dct,binkaudio_rdft,bintext,bitpacked,bmp,bmv_audio,bmv_video,bonk,brender_pix,c93,cbd2_dpcm,ccaption,cdgraphic
 s,cdtoons,cdxl,cinepak,clearvideo,cljr,cook,cpia,cscd,cyuv,dca,dds,derf_dpcm,dfa,dfpwm,dirac,dnxhd,dolby_e,dpx,dsd_lsbf,dsd_msbf,dsicinaudio,dsicinvideo,dss_sp,dvaudio,dvbsub,dvdsub,dvvideo
 ,dxa,dxtory,eacmv,eamad,eatgq,eatgv,eatqi,eightbps,eightsvx_exp,eightsvx_fib,escape124,escape130,evrc,exr,ffv1,ffvhuff,ffwavesynth,fits,flac,flashsv,flashsv2,flic,flv,fmvc,fourxm,ftr,g723_1
 ,g729,gdv,gem,gif,gremlin_dpcm,gsm,gsm_ms,gsm_ms_at,h261,h263,h263_v4l2m2m,h263i,h263p,hap,hca,hcom,hdr,hnm4_video,hq_hqa,hqx,huffyuv,hymt,iac,idcin,idf,iff_ilbm,ilbc,imc,indeo2,indeo3,inde
 o4,indeo5,interplay_acm,interplay_dpcm,interplay_video,ipu,jacosub,jpeg2000,jpegls,jv,kgv1,kmvc,lagarith,libaom,libaom_av1,libcodec2,libdav1d,libgsm,libgsm_ms,libilbc,libjxl,libopencore_amr
 nb,libopencore_amrwb,libopenh264,libopenjpeg,libopus,librsvg,libschroedinger,libspeex,libvorbis,libvpx_vp8,libvpx_vp9,libzvbi_teletext,loco,lscr,m101,mace3,mace6,mdec,media100,metasound,mic
 rodvd,mimic,misc4,mjpeg,mjpeg_qsv,mjpegb,mlp,mmvideo,motionpixels,mp1,mp1float,mp2,mp2float,mp3,mp3adu,mp3adufloat,mp3float,mp3on4,mp3on4float,mpc7,mpc8,mpeg1video,mpeg1_v4l2m2m,mpeg2video,
 mpeg2_qsv,mpeg2_v4l2m2m,mpeg4,mpeg4_v4l2m2m,mpegvideo,mpl2,msa1,mscc,msmpeg4v1,msmpeg4v2,msmpeg4v3,msnsiren,msp2,msrle,mss1,mss2,msvideo1,mszh,mts2,mv30,mvc1,mvc2,mvdv,mvha,mwsc,mxpeg,nelly
 moser,nuv,on2avc,opus,paf_audio,paf_video,pam,pbm,pcm_alaw,pcm_bluray,pcm_dvd,pcm_f16le,pcm_f24le,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_lxf,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s1
 6le,pcm_s16le_planar,pcm_s24be,pcm_s24daud,pcm_s24le,pcm_s24le_planar,pcm_s32be,pcm_s32le,pcm_s32le_planar,pcm_s64be,pcm_s64le,pcm_s8,pcm_s8_planar,pcm_sga,pcm_u16be,pcm_u16le,pcm_u24be,pcm
 _u24le,pcm_u32be,pcm_u32le,pcm_u8,pcm_vidc,pcx,pfm,pgm,pgmyuv,pgssub,pgx,phm,photocd,pictor,pjs,png,ppm,prosumer,psd,ptx,qcelp,qdm2,qdmc,qdraw,qoi,qpeg,qtrle,r10k,r210,ra_144,ra_288,rasc,ra
 wvideo,realtext,rka,rl2,roq,roq_dpcm,rpza,rscc,rv10,rv20,s302m,sami,sanm,sbc,screenpresso,sdx2_dpcm,sgi,sgirle,shorten,simbiosis_imx,sipr,siren,smackaud,smacker,smc,smvjpeg,snow,sol_dpcm,so
 nic,sp5x,speedhq,speex,srgc,srt,ssa,stl,subrip,subviewer,subviewer1,sunrast,svq1,svq3,tak,targa,targa_y216,tdsc,text,theora,thp,tiertexseqvideo,tiff,tmv,truehd,truemotion1,truemotion2,truem
 otion2rt,truespeech,tscc,tscc2,tta,twinvq,txd,ulti,utvideo,v210,v210x,v308,v408,v410,vb,vble,vcr1,vmdaudio,vmdvideo,vmnc,vnull,vorbis,vp3,vp4,vp5,vp6,vp6a,vp6f,vp7,vp8,vp8_qsv,vp8_v4l2m2m,v
 p9,vp9_qsv,vp9_v4l2m2m,vplayer,vqa,vqc,wady_dpcm,wavarc,wavpack,wbmp,wcmv,webp,webvtt,wmav1,wmav2,wmavoice,wmv1,wmv2,wnv1,wrapped_avframe,ws_snd1,xan_dpcm,xan_wc3,xan_wc4,xbin,xbm,xface,xl,
 xpm,xsub,xwd,y41p,ylc,yop,yuv4,zero12v,zerocodec,zlib,zmbv,
 }}}

 And build fails with
 {{{
 [tkloczko at pers-jacek ffmpeg-6.1.1]$ make V=1
 gcc -shared -Wl,-soname,libswscale.so.7 -Wl,-Bsymbolic -Wl,--version-
 script,libswscale/libswscale.ver -Llibavcodec -Llibavdevice -Llibavfilter
 -Llibavformat -Llibavutil -Llibpostproc -Llibswscale -Llibswresample
 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-
 needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-
 hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin
 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--gc-sections -Wl,--as-
 needed -Wl,--build-id=sha1 -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-
 hardened-ld -Wl,-z,pack-relative-relocs -flto=auto -fuse-linker-plugin
 -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-
 link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil
 -o libswscale/libswscale.so.7 libswscale/alphablend.o libswscale/gamma.o
 libswscale/half2float.o libswscale/hscale.o
 libswscale/hscale_fast_bilinear.o libswscale/input.o libswscale/options.o
 libswscale/output.o libswscale/rgb2rgb.o libswscale/slice.o
 libswscale/swscale.o libswscale/swscale_unscaled.o libswscale/utils.o
 libswscale/version.o libswscale/vscale.o
 libswscale/x86/hscale_fast_bilinear_simd.o libswscale/x86/input.o
 libswscale/x86/output.o libswscale/x86/rgb2rgb.o
 libswscale/x86/rgb_2_rgb.o libswscale/x86/scale.o
 libswscale/x86/scale_avx2.o libswscale/x86/swscale.o
 libswscale/x86/yuv2rgb.o libswscale/x86/yuv2yuvX.o
 libswscale/x86/yuv_2_rgb.o libswscale/yuv2rgb.o libswscale/log2_tab.o
 -lavutil -lm -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11
 -L/usr/lib64 -lgcrypt -lgpg-error -lm -ldrm -L/usr/lib64/pkgconfig/../
 -lvpl -ldl -lstdc++ -lOpenCL -lva -lX11
 libswscale/x86/swscale.c:323:1: warning: type of ‘ff_nv12ToUV_avx’ does
 not match original declaration [-Wlto-type-mismatch]
   323 | INPUT_FUNCS(avx);
       | ^
 libswscale/x86/rgb2rgb_template.c:1821:6: note: type mismatch in parameter
 8
  1821 | void RENAME(ff_nv12ToUV)(uint8_t *dstU, uint8_t *dstV,
       |      ^
 libswscale/x86/rgb2rgb_template.c:1821:6: note: ‘ff_nv12ToUV_avx’ was
 previously declared here
 libswscale/x86/swscale.c:321:1: warning: type of ‘ff_nv12ToUV_sse2’ does
 not match original declaration [-Wlto-type-mismatch]
   321 | INPUT_FUNCS(sse2);
       | ^
 libswscale/x86/rgb2rgb_template.c:1821:6: note: type mismatch in parameter
 8
  1821 | void RENAME(ff_nv12ToUV)(uint8_t *dstU, uint8_t *dstV,
       |      ^
 libswscale/x86/rgb2rgb_template.c:1821:6: note: ‘ff_nv12ToUV_sse2’ was
 previously declared here
 /usr/bin/ld: /tmp/ccld135O.ltrans7.ltrans.o: warning: relocation against
 `mask24b' in read-only section `.text'
 /usr/bin/ld: /tmp/ccld135O.ltrans7.ltrans.o: relocation R_X86_64_PC32
 against undefined symbol `mask24l' can not be used when making a shared
 object; recompile with -fPIC
 /usr/bin/ld: final link failed: bad value
 collect2: error: ld returned 1 exit status
 make: *** [ffbuild/library.mak:119: libswscale/libswscale.so.7] Error 1
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10854>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list