fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
lamahk
Posts: 8
Joined: Sun Oct 16, 2011 12:11 pm

fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Post by lamahk »

I hit another problem which seem to be 32 bit only. It works fine with Xcode 4.2 on Lion 10.7.2 which is 64 bit viewtopic.php?f=4&t=22374. Google search http://llvm.org/bugs/show_bug.cgi?id=8362

Code: Select all

 : libavcodec/h264.c: In function ‘fill_filter_caches_inter’:
  : libavcodec/h264.c:3191: warning: initialization from incompatible pointer type
  : libavcodec/h264.c:3206: warning: initialization from incompatible pointer type
  : libavcodec/h264.c:3239: warning: initialization from incompatible pointer type
  : libavcodec/h264.c: In function ‘execute_decode_slices’:
  : libavcodec/h264.c:3647: warning: ‘error_recognition’ is deprecated (declared at libavcodec/avcodec.h:1488)
  : CC	libavcodec/h264_cabac.o
  : cc1: error in backend: Ran out of registers during register allocation!
  : make[2]: *** [libavcodec/h264_cabac.o] Error 1
  : make[1]: *** [contrib/ffmpeg/.stamp.build] Error 2
  : Showing first 200 notices only
  : Command /bin/sh failed with exit code 2
  : 
  : 
  : ** BUILD FAILED **
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Post by JohnAStebbins »

What configure options did you use?
lamahk
Posts: 8
Joined: Sun Oct 16, 2011 12:11 pm

Re: fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Post by lamahk »

in my mac 2006 core duo (which did not support upgrade to lion)
./configure --launch --enable-local-yasm --launch-jobs=0
and then
./configure --launch --enable-local-yasm --launch-jobs=1 --force (guessing it may due to some parallel compilation in the first)

In my macmini 2011 with lion
I use ./configure --launch --enable-local-yasm --launch-jobs=0 without problem
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Post by JohnAStebbins »

Strange. I've seen that kind of error before, but only when optimizations have been disabled. I'll try to reproduce on my SL vm when I have some more time.
lamahk
Posts: 8
Joined: Sun Oct 16, 2011 12:11 pm

Re: fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Post by lamahk »

tried with Xcode 4.2 on Lion 10.7.2 to compile 32 bit and have the same problem

Code: Select all

./configure --launch --enable-local-yasm --arch=i386
KonaBlend
Novice
Posts: 72
Joined: Tue Nov 04, 2008 2:35 am

Re: fail to compile with Xcode 4.2 on SL 10.6.8 - 32 bit

Post by KonaBlend »

Buried in changset https://trac.handbrake.fr/changeset/4395 is a fix to build i386 with Xcode 4.2.
For the curious, the register allocation issue manifests on Xcode 4.2 and higher, both 10.6 and 10.7, only with i386 binaries.
Post Reply