Opened 10 years ago

Closed 10 years ago

#3567 closed bug (fixed)

[libavcodec] Build broken since ffmpeg update

Reported by: andreasf Owned by: dlmcpaul
Priority: normal Milestone: R1
Component: Audio & Video/Codecs Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

The recent ffmpeg update seems to trigger a build failure with GCC4. The revision before the updates, hrev29533, builds okay.

Using hrev29546:

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

Change History (2)

comment:1 in reply to:  description Changed 10 years ago by dlmcpaul

Owner: changed from marcusoverhagen to dlmcpaul

Replying to andreasf:

The recent ffmpeg update seems to trigger a build failure with GCC4. The revision before the updates, hrev29533, builds okay.

in libavcodec/config.h you could try changing HAVE_EBX_AVAILABLE to 0 and let me know what that does to the build.

comment:2 Changed 10 years ago by stippi

Resolution: fixed
Status: newclosed

Yes, this fixes it. Committed in hrev29557. Don't know if the produced avcodec plugin is fully functional, though. At least the GCC4 build is fixed. So I close this ticket.

Note: See TracTickets for help on using tickets.