[MacPorts] #28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: -------------------------------------------------+-------------------------- 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 } } -- Ticket URL: <https://trac.macports.org/ticket/28182> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: -------------------------------------------------+-------------------------- Comment(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@macports.org -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Changes (by ryandesign@…): * cc: andres.colubri@… (removed) * port: => gst-ffmpeg Old description:
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 } }
New description: 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 } } }}} -- -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Comment(by ryandesign@…): Partly this is already discussed in #24636. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Comment(by jmr@…): Please confirm that bugs are reproducible without your modifications to base in future before reporting. Your change is unnecessary in this case anyway; you should just set "macosx_deployment_target 10.5" in macports.conf. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Comment(by andres.colubri@…): I did some more tests, in all cases I set "macosx_deployment_target 10.5" and "build_arch i386" in macports.conf. If I don't apply the post-configure step I mentioned originally, the build stage fails with the reported error. I tried both with the "-mmacosx-version-min=10.5 -no_compact_linkedit" linker options, and without. This seems to have no effect. In case it is of any use, I'm running OSX 10.6.5 with gcc 4.2.1, but I think because the deployment target is set to 10.5, macports uses gcc 4.0 instead. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Comment(by fungos@…): I had same problem. Same system and same solution. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Comment(by dtakahashi42@…): Discussion on #28935 can be applied to this problem. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Changes (by jmr@…): * owner: macports-tickets@… => rmstonecipher@… -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Comment(by ryandesign@…): Has duplicate #32394. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28182: gst-ffmpeg fails to build when using i386 arch and 10.5 target -------------------------------------------------+-------------------------- Reporter: andres.colubri@… | Owner: rmstonecipher@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: gstreamer, ffmpeg, build error, asm | Port: gst-ffmpeg -------------------------------------------------+-------------------------- Changes (by jmr@…): * cc: jmr@… (added) Comment: #24636 may be fixed now; please check how much of this is resolved because of that. -- Ticket URL: <https://trac.macports.org/ticket/28182#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts