Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903754 - media-video/ffmpeg-4.4.3[abi_x86_32] with lld fails with relocation R_386_32 cannot be used against local symbol
Summary: media-video/ffmpeg-4.4.3[abi_x86_32] with lld fails with relocation R_386_32 ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-04 00:05 UTC by Alfred Persson
Modified: 2023-07-24 15:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,928.51 KB, text/plain)
2023-04-04 00:07 UTC, Alfred Persson
Details
build.log (build.log,928.51 KB, text/plain)
2023-04-04 00:07 UTC, Alfred Persson
Details
emerge--info.txt (emerge--info.txt,8.62 KB, text/plain)
2023-04-04 00:08 UTC, Alfred Persson
Details

Note You need to log in before you can comment on or make changes to this bug.
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