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

Bug 678818

Summary: media-video/x264-encoder-0.0.20190214 - x264.o: In function `main': x264.c:(.text.startup+0x2a): undefined reference to `x264_stack_align'
Product: Gentoo Linux Reporter: Alexander Rostovtsev <lexcurious>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=media-video/x264-encoder-0.0.20190214::gentoo'
emerge -pqv '=media-video/x264-encoder-0.0.20190214::gentoo'

Description Alexander Rostovtsev 2019-02-26 10:31:32 UTC
Created attachment 566512 [details]
build.log

emerge media-video/x264-encoder-0.0.20190214 failed on x86-32 during link stage (undefined reference to `x264_stack_align') due to invalid symbol visibility of assembly implementation of function x264_stack_align for x86-32 arch.

Possible solution and patch explained here:

https://patches.videolan.org/patch/21704/
Comment 1 Alexander Rostovtsev 2019-02-26 10:34:00 UTC
Created attachment 566514 [details]
emerge --info '=media-video/x264-encoder-0.0.20190214::gentoo'
Comment 2 Alexander Rostovtsev 2019-02-26 10:34:52 UTC
Created attachment 566516 [details]
emerge -pqv '=media-video/x264-encoder-0.0.20190214::gentoo'
Comment 3 Alexander Rostovtsev 2019-02-26 12:45:48 UTC
(In reply to Alexander Rostovtsev from comment #0)
> Created attachment 566512 [details]
> build.log
> 
> emerge media-video/x264-encoder-0.0.20190214 failed on x86-32 during link
> stage (undefined reference to `x264_stack_align') due to invalid symbol
> visibility of assembly implementation of function x264_stack_align for
> x86-32 arch.
> 
> Possible solution and patch explained here:
> 
> https://patches.videolan.org/patch/21704/
This was invalid assumption.

The cause of this problem is that x264.so does not contain the definition of the x264_stack_align function. What is the consequence:
1. errors in the name of the stack_align function instead of x264_stack_align in the file "common / x86 / cpu-a.asm"
2. except for target of this file from the x264.so assembly (media-libs/x264-0.0.20190214)