Opened 16 months ago

#11580 new defect

ffmpeg-7.1.1 build fails with nasm

Reported by: juanitotc Owned by:
Priority: normal Component: build system
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Compiling ffmpeg-7.1.1 from source using gcc-14.2.0 and nasm-2.16.03 on an x86_64 system fails with the error below. The build succeeds with --disable-asm.

gcc -shared -Wl,-soname,libswscale.so.8 -Wl,-Bsymbolic -Wl,--version-script,libswscale/libswscale.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed -Wl,-z,noexecstack -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil  -o libswscale/libswscale.so.8 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/range_convert.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 -latomic -pthread -L/usr/local/lib -lva-drm -lva -L/usr/local/lib -lva-x11 -lva -lvdpau -lX11 -lm -L/usr/local/lib -ldrm -L/usr/local/lib -lva -latomic -L/usr/local/lib -lX11 
lto-wrapper: warning: using serial compilation of 10 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
/usr/local/bin/ld: /tmp/ccqMFjiW.ltrans7.ltrans.o: warning: relocation against `mask24b' in read-only section `.text'
/usr/local/bin/ld: /tmp/ccqMFjiW.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/local/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [ffbuild/library.mak:119: libswscale/libswscale.so.8] Error 1

How to reproduce:

CFLAGS="-flto -mtune=generic -Os -pipe" CXXFLAGS="-flto -mtune=generic -Os -pipe" ./configure --prefix=/usr/local --enable-gpl --enable-version3 --disable-static --enable-shared --disable-debug --enable-libaom --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libpulse --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libwebp --enable-libspeex --enable-librsvg --enable-gnutls --enable-sdl2 --enable-libplacebo --enable-libdrm

Change History (0)

Note: See TracTickets for help on using tickets.