[FFmpeg-user] gas-preprocessor.pl unknown arch: 'ppc'

Pavel Koshevoy pkoshevoy at gmail.com
Mon Nov 3 12:00:16 CET 2014


Hi,

I am trying to (re)build recent ffmpeg master 
(63e62cfbe23de8b362d94f783668620a2cd2b571) on OSX 10.5 ppc.  I have 
installed latest (2014-08-12) gas-preprocessor.pl from 
http://git.libav.org/?p=gas-preprocessor.git

When configuring the build it still complains and asks to install/update 
gas-preprocessor.  I am not sure whether this is a gas-preprocessor 
problem, or an ffmpeg build configuration problem. This used to work.  I 
don't know when it broke because configuring without gas-preprocessor is 
non-fatal, so it may have been broken for months and I haven't noticed.

One thing I've noticed is that -arch ppc doesn't work, but -arch powerpc 
does:

$ gas-preprocessor.pl -arch ppc -as-type apple-gas -- gcc -v
unknown arch: 'ppc'

$ gas-preprocessor.pl -arch powerpc -as-type apple-gas -- gcc -v
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5577~1/src/configure --disable-checking --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --program-prefix= --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5577)


Here is an excerpt from config.log:

# /nfs/scratch/Developer/ffmpeg-git-src/configure --prefix=/Developer/ppc --disable-debug --disable-shared --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-l
ibtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-pthreads --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-am
rwb --enable-postproc --enable-libx264 --enable-libxvid --enable-libass --enable-gnutls --enable-runtime-cpudetect --extra-cflags=-I/opt/local/include --extra-ldflags='-headerpad_max_install_names -L/opt/loca
l/lib'

...

gas-preprocessor.pl -arch ppc -as-type apple-gas -- gcc -v
unknown arch: 'ppc'
check_gas using 'gcc' as AS
check_as
BEGIN /var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S
     1   .macro m n, y:vararg=0
     2   \n: .int \y
     3   .endm
     4   m x
END /var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/opt/local/include -force_cpusubtype_ALL -mdynamic-no-pic -c -o /var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.tRd1aGKd.o /var/fold
ers/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S
/var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S:4:Junk character 92 (\).
/var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S:4:Rest of line ignored. 1st junk character valued 110 (n).
check_gas using 'gcc' as AS
check_as
BEGIN /var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S
     1   .macro m n, y:vararg=0
     2   \n: .int \y
     3   .endm
     4   m x
END /var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/opt/local/include -force_cpusubtype_ALL -mdynamic-no-pic -c -o /var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.tRd1aGKd.o /var/fold
ers/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S
/var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S:4:Junk character 92 (\).
/var/folders/zc/zcLuFx8PGxWB0xQUmne1nU+++yU/-Tmp-//ffconf.dZICFXiM.S:4:Rest of line ignored. 1st junk character valued 110 (n).
WARNING: GNU assembler not found, install/update gas-preprocessor



More information about the ffmpeg-user mailing list