Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 903754

Summary: media-video/ffmpeg-4.4.3[abi_x86_32] with lld fails with relocation R_386_32 cannot be used against local symbol
Product: Gentoo Linux Reporter: Alfred Persson <cat>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
build.log
emerge--info.txt

Description Alfred Persson 2023-04-04 00:05:52 UTC
ffpeg-4.4.3 fails to build with +abi_x86_32 with lld (llvm profile)
>ld.lld: error: relocation R_386_32 cannot be used against local symbol; recompile with -fPIC
>>>> defined in libavutil/x86/float_dsp.o
>>>> referenced by src/libavutil/x86/float_dsp.asm
>>>>               libavutil/x86/float_dsp.o:(.text+0x795)
Comment 1 Alfred Persson 2023-04-04 00:07:05 UTC
Created attachment 859495 [details]
build.log

fixed patch
Comment 2 Alfred Persson 2023-04-04 00:07:44 UTC
Created attachment 859496 [details]
build.log

build log
Comment 3 Alfred Persson 2023-04-04 00:08:15 UTC
Created attachment 859497 [details]
emerge--info.txt

emerge --info
Comment 4 Alfred Persson 2023-04-04 00:15:09 UTC
building with +pic solves this
Comment 5 Mazunki Hoksaas 2023-07-24 15:16:21 UTC
Same happens on ffmpeg-4.4.4. I have a feeling we could avoid this issue by checking for USE=-static-libs. Might be wrong.

Semi-related: bug #911141