[FFmpeg-devel] build failure in ppc/fft_altivec_s.S (osx 10.5.8)

Pavel Koshevoy pkoshevoy at gmail.com
Wed Oct 31 02:09:29 CET 2012


On 10/30/12 3:48 PM, Pavel Koshevoy wrote:
> On 10/28/2012 11:46 AM, Reimar Döffinger wrote:
>> On Sun, Oct 28, 2012 at 11:43:45AM -0600, Pavel Koshevoy wrote:
>>> On 10/28/2012 11:36 AM, Reimar Döffinger wrote:
>>>> On Sun, Oct 28, 2012 at 11:05:13AM -0600, Pavel Koshevoy wrote:
>>>>> On 10/27/2012 11:34 PM, Pavel Koshevoy wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I am getting the following error when building on my ppc g4 iMac 
>>>>>> (OSX 10.5)
>>>>>>
>>>>>> AS    libavcodec/ppc/fft_altivec_s.o
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:731:Parameter 
>>>>>>
>>>>>> syntax error (parameter 2)
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:731:Invalid 
>>>>>>
>>>>>> mnemonic 'got(r11)'
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:771:Parameter 
>>>>>>
>>>>>> syntax error (parameter 2)
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:771:Invalid 
>>>>>>
>>>>>> mnemonic 'got(r11)'
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:778:Parameter 
>>>>>>
>>>>>> syntax error (parameter 2)
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:778:Invalid 
>>>>>>
>>>>>> mnemonic 'got(r11)'
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:1250:Parameter 
>>>>>>
>>>>>> syntax error (parameter 2)
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:1250:Invalid 
>>>>>>
>>>>>> mnemonic 'got(r11)'
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:1290:Parameter 
>>>>>>
>>>>>> syntax error (parameter 2)
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:1290:Invalid 
>>>>>>
>>>>>> mnemonic 'got(r11)'
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:1297:Parameter 
>>>>>>
>>>>>> syntax error (parameter 2)
>>>>>> /nfs/scratch/Developer/ffmpeg-git-src/libavcodec/ppc/fft_altivec_s.S:1297:Invalid 
>>>>>>
>>>>>> mnemonic 'got(r11)'
>>>>>> make: *** [libavcodec/ppc/fft_altivec_s.o] Error 1
>>>>>>
>>>>>>
>>>>>> If someone can suggest a fix I can try it (tomorrow).
>>>>>>
>>>>>> Thank you,
>>>>>>     Pavel.
>>>>> My configuration command line was
>>>>> /nfs/scratch/Developer/ffmpeg-git-src/configure
>>>>> --prefix=/Developer/ppc --enable-swscale --enable-avfilter
>>>>> --enable-libmp3lame --enable-libvorbis --enable-libopus
>>>>> --enable-libtheora --enable-libschroedinger --enable-libopenjpeg
>>>>> --enable-libmodplug --enable-libvpx --enable-libspeex
>>>>> --enable-shared --enable-pthreads --enable-gpl --enable-version3
>>>>> --enable-libopencore-amrnb --enable-libopencore-amrwb
>>>>> --enable-postproc --enable-libx264 --enable-libxvid
>>>>> --enable-runtime-cpudetect --extra-cflags=-I/opt/local/include
>>>>> --extra-ldflags='-headerpad_max_install_names -L/opt/local/lib'
>>>> Why do you need --enable-shared? Without it no GOT indirection 
>>>> should be
>>>> necessary.
>>> I may not need shared libs, so this may is a suitable workaround for
>>> me.  However, most of my configure parameters were copied from
>>> macports ffmpeg-devel port file.  They build it as a shared library,
>>> so I imagine they probably don't use gas-preprocessor, which sucks
>>> for macports users.
>>>
>>>
>>>> Using newer versions of gcc and binutils might help, too.
>>> Yeah, I started port install gcc47, it will take a while to build.
>>> I'll install binutils 2.21 after that's done, and try again.
>> 4.7 started using more C++ code, you might have huge trouble compiling
>> it if you don't have lots of memory installed.
>> Going with 4.6 might be better/simpler/faster.
>>
>
> I've installed binutils and gcc46 via macport (it took 2 days to 
> compile it and all prerequisites).  That didn't help, because macports 
> binutils doesn't provide the gnu assembler (because binutils gas can't 
> generate Mach-O object files).  So, I've run into the same assembly 
> error.
>
> Next I'll be building static libs, that should avoid triggering the 
> incompatible macro.
>
>     Pavel.

The static libs built successfully with gas-preprocessor.pl, but now AC3 
audio comes out as loud static noise.  If I recompile without 
gas-preprocessor AC3 plays fine.

     Pavel.



More information about the ffmpeg-devel mailing list