Opened 14 years ago

Last modified 10 years ago

#28182 closed defect

gst-ffmpeg fails to build when using i386 arch and 10.5 target — at Version 3

Reported by: andres.colubri@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: gst-ffmpeg

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello, when trying to install the gst-ffmpeg package on Snow Leopard 64 bits, but using i386 as the build architecture and 10.5 as the deployment target, the build stage fails with this error:

:info:build CC	libavcodec/h264_cabac.o
:info:build libavcodec/cabac.h: In function 'get_cabac_noinline':
:info:build libavcodec/cabac.h:527: error: PIC register '%ebx' clobbered in 'asm'
...

(full error log is attached)

I should also note that in order to generate valid 32 bits binaries for 10.5 when compiling from OSX 10.6 64 bits, I changed the default LD flags in <prefix>/share/macports/Tcl/port1.0/portconfigure.tcl as:

default configure.ldflags   {"-L${prefix}/lib -Xlinker -headerpad_max_install_names -mmacosx-version-min=10.5 -no_compact_linkedit"}

I don't know if this influencing the occurrence of the error. Anyways, a solution I found to this problem was to add the the following post-configure step in the portfile of gst-ffmpeg:

post-configure {
    if { $build_arch == "i386" } {
        reinplace "s|HAVE_EBX_AVAILABLE 1|HAVE_EBX_AVAILABLE 0|g" \
            ${worksrcpath}/gst-libs/ext/ffmpeg/config.h        
    }
}

Change History (4)

Changed 14 years ago by andres.colubri@…

Attachment: gst-ffmpeg-main.log added

comment:1 Changed 14 years ago by andres.colubri@…

Cc: andres.colubri@… added

Cc Me!

comment:2 Changed 14 years ago by andres.colubri@…

sorry, I forgot to fill in the port field, which should be gst-ffmpeg, but I cannot edit it afterwards.

BTW, this port appears to have no maintainer. Last person making a commit to the portfile is rmsfisher@…

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: andres.colubri@… removed
Description: modified (diff)
Port: gst-ffmpeg added
Note: See TracTickets for help on using tickets.