Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849041 - media-video/ffmpeg-4.4.2 /libavcodec/x86/vp9itxfm.asm:(.text+0x2ef53): relocation truncated to fit: R_X86_64_PC32 against symbol `ff_pd_8192' defined in .rodata section in libavcodec/x86/constants.o
Summary: media-video/ffmpeg-4.4.2 /libavcodec/x86/vp9itxfm.asm:(.text+0x2ef53): reloca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-01 17:45 UTC by Frank Krömmelbein
Modified: 2022-08-02 20:51 UTC (History)
1 user (show)

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


Attachments
ffmpeg.tar.gz (ffmpeg-4.4.2.tar.gz,190.79 KB, application/octet-stream)
2022-06-01 17:46 UTC, Frank Krömmelbein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krömmelbein 2022-06-01 17:45:46 UTC
Update from media-video/ffmpeg-4.4.1-r5 to 4.4.2 fails for me on this old system:

libavcodec/x86/vp9itxfm.o: in function `ff_vp9_idct_idct_32x32_add_avx.loop2_full':
src/libavcodec/x86/vp9itxfm.asm:(.text+0x2ef53): relocation truncated to fit: R_X86_64_PC32 against symbol `ff_pd_8192' defined in .rodata section in libavcodec/x86/constants.o
collect2: error: ld returned 1 exit status
make: *** [/var/tmp/portage/media-video/ffmpeg-4.4.2/work/ffmpeg-4.4.2/ffbuild/library.mak:103: libavcodec/libavcodec.so.58] Error 1


Reproducible: Always
Comment 1 Frank Krömmelbein 2022-06-01 17:46:29 UTC
Created attachment 782078 [details]
ffmpeg.tar.gz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-02 04:24:00 UTC
Huh.

For the 32-bit build, you have --disable-avx2 (but NOT --disable-avx).
For the 64-bit build, you have --disable-avx (but NOT --disable-avx2).

I think AVX can work on 32-bit, but it's possible that ffmpeg's assembly doesn't care about that case.
Comment 3 Frank Krömmelbein 2022-06-02 19:05:18 UTC
(In reply to Sam James from comment #2)
> Huh.
> 
> For the 32-bit build, you have --disable-avx2 (but NOT --disable-avx).
> For the 64-bit build, you have --disable-avx (but NOT --disable-avx2).
> 
> I think AVX can work on 32-bit, but it's possible that ffmpeg's assembly
> doesn't care about that case.

Hi,
thank you very much for your analysis!
That probably also explains why I only have this error on this one old system.
It looks like a regression then.
Do you think I should open a ticket for this at upstream?
Comment 4 Frank Krömmelbein 2022-08-02 20:51:37 UTC
I tried to compile it again today, and it worked!

-> Fixed.