[haiku-development] Re: avcodec gcc4 build broken

  • From: Christian Packmann <Christian.Packmann@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 16 Mar 2009 10:22:35 +0100

Michael Weirauch - 2009-03-15 20:09 :
is somebody able to get the gcc4 build of avcodec/libavcodec going or is
it just my local setup?

src/add-ons/media/plugins/avcodec/libavcodec/cabac.h: In function
'get_cabac_noinline':
src/add-ons/media/plugins/avcodec/libavcodec/cabac.h:527: error: PIC
register '%ebx' clobbered in 'asm'
src/add-ons/media/plugins/avcodec/libavcodec/cabac.h: In function
'get_cabac':
src/add-ons/media/plugins/avcodec/libavcodec/cabac.h:527: error: PIC
register '%ebx' clobbered in 'asm'
src/add-ons/media/plugins/avcodec/libavcodec/x86/h264_i386.h: In
function 'decode_significance_x86':
src/add-ons/media/plugins/avcodec/libavcodec/x86/h264_i386.h:44: error:
PIC register '%ebx' clobbered in 'asm'

You might try building with -fno-pic. I ran into this problem with inline assembler when EAX - EDX are clobbered at once, -fno-pic fixed this. This seems to be a Haiku-specific problem, GCC4 on Cygwin/Windows has no problem compiling such code.

Christian

Other related posts: