[FFmpeg-devel] [PATCH] Fix compilation with nasm.

James Almer jamrial at gmail.com
Tue Oct 8 04:24:55 CEST 2013


On 07/10/13 11:04 PM, Ronald S. Bultje wrote:
> Hi,
> 
> On Mon, Oct 7, 2013 at 9:02 PM, Michael Niedermayer <michaelni at gmx.at>wrote:
> 
>> On Mon, Oct 07, 2013 at 08:36:22PM -0400, Ronald S. Bultje wrote:
>>> Hi,
>>>
>>> On Mon, Oct 7, 2013 at 8:33 PM, Michael Niedermayer <michaelni at gmx.at
>>> wrote:
>>>
>>>> On Tue, Oct 08, 2013 at 02:24:33AM +0200, Michael Niedermayer wrote:
>>>>> On Mon, Oct 07, 2013 at 08:06:47PM -0400, Ronald S. Bultje wrote:
>>>>>> From: "Ronald S. Bultje" <rsbultje at gmail.com>
>>>>>>
>>>>>> ---
>>>>>>  libavcodec/x86/fft.asm              | 3 +--
>>>>>>  libavcodec/x86/vp9dsp.asm           | 6 +++---
>>>>>>  libswresample/x86/audio_convert.asm | 3 +--
>>>>>>  libswresample/x86/rematrix.asm      | 3 +--
>>>>>>  4 files changed, 6 insertions(+), 9 deletions(-)
>>>>>
>>>>> applied
>>>>
>>>> hmm, seems only the vp9dsp change is neede for nasm so i applied only
>>>> that
>>>
>>>
>>> It fails for me, saying that alignment was specified twice with different
>>> values, and then aborts compilation. It's actually worse, it leaves
>> behind
>>> an empty object file, thus if you type "make" again it thinks it
>> succeeded,
>>> but then linking fails.
>>>
>>> Maybe that only happens on x86-64 or mac, not on other platforms?
>>
>> for me it works on x86-64 with
>> NASM version 2.09.10 compiled on Oct 17 2011
>> on linux
>>
>> but if the other hunks are needed too then they should be applied too
>>
> 
> Fails on:
> NASM version 2.10 compiled on Apr 19 2012
> Mac x86-64.
> 
> Can anyone else reproduce success/failure on nasm-2.10?
> 
> Ronald

2.10 succeeds on Windows x86_64 and x86 (binary from http://nasm.us) with 
and without the changes from this patch.


More information about the ffmpeg-devel mailing list