title: Building FFMpeg Error in IOS6.1 unable to create an executable file
body: <p>I am trying to build ffmpeg on iOS6.1 (armv7), when I try to run ./configure like this:</p>
  
  <pre><code>./configure --disable-doc --disable-ffmpeg --disable-ffplay
  --disable-ffserver    --enable-cross-compile --arch=arm --target-os=darwin    --cc=/applications/xcode.app/contents/Developer/usr/bin/gcc    --as='gas-preprocessor/gas-preprocessor.pl /applications/xcode.app/contents/Developer/usr/bin/gcc'   
  --sysroot=/applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
  --cpu=cortex-a8 --extra-cflags='-arch armv7'    --extra-ldflags='-arch armv7 -isysroot /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk'
  --enable-pic
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>/applications/xcode.app/contents/Developer/usr/bin/gcc is unable to
    create an executable file. C compiler test failed.</p>
  </blockquote>
  
  <p>Could somebody please provide the correct parameters in iOS6.1?</p>
  
  <p><strong>Update Command :</strong> </p>
  
  <blockquote>
    <p>./configure --disable-doc --disable-ffmpeg --disable-ffplay
    --disable-ffserver --enable-cross-compile --arch=arm --target-os=darwin --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2
    --as='gas-preprocessor/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2'
    --sysroot=/applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
    --cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -isysroot
    /applications/xcode.app/contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk'
    --enable-pic</p>
  </blockquote>
  
  <p><strong>Error in Update Command :</strong></p>
  
  <blockquote>
    <p>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2
    is unable to create an executable file. C compiler test failed.</p>
  </blockquote>
  
  <p>If you think configure made a mistake, make sure you are using the latest
  version from Git.  If the latest version fails, report the problem to the
  ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
  Include the log file "config.log" produced by configure as this will help
  solving the problem.</p>