[MacPorts] #16137: ffmpeg fails to build on Mac 10.4.11
#16137: ffmpeg fails to build on Mac 10.4.11 --------------------------------+------------------------------------------- Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | --------------------------------+------------------------------------------- After applying the patch given in the comments to Ticket #16101 ffmpeg still doesn't build (although this patch gets a little further) (G5 PPC, Mac OSX 10.4.11): {{{ $ sudo port install ffmpeg -gpl -lame -theora -faac -faad -x264 -a52 -postproc -avfilter ---> Fetching ffmpeg ---> Verifying checksum(s) for ffmpeg ---> Extracting ffmpeg ---> Configuring ffmpeg ---> Building ffmpeg with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/ macports/build/_opt_local_var_macports_sources_rsync.macports.org_release _ports_multimedia_ffmpeg/work/trunk" && make all " returned error 2 Command output: make(4251) malloc: *** vm_allocate(size=4272939008) failed (error code=3) make(4251) malloc: *** error: can't allocate region make(4251) malloc: *** set a breakpoint in szone_error to debug make: *** virtual memory exhausted. Stop. }}} The reason is a bug in /usr/bin/make (version 3.80) that is fixed in gnu make version 3.81. How do I tell port to use the newer make? I was able to build ffmpeg outside of MacPorts using a newer version of make I have in /usr/local/bin. -- Ticket URL: <http://trac.macports.org/ticket/16137> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg fails to build on Mac 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by ryandesign@macports.org): * cc: ryandesign@macports.org, acho@macports.org (added) * milestone: => Port Bugs Comment: I believe you could add a dependency on port:gmake to the ffmpeg port, and set `build.cmd` to `gmake` to get it to use it. -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by ryandesign@macports.org): * summary: ffmpeg fails to build on Mac 10.4.11 => ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by dklug1234@yahoo.de): Replying to [comment:1 ryandesign@macports.org]:
I believe you could add a dependency on port:gmake to the ffmpeg port, and set `build.cmd` to `gmake` to get it to use it.
Hello, thanks, that worked. It compiled, but now I have a problem with the resulting binary. It seems the variants that I selected are not active. My command was 'sudo port install ffmpeg -gpl -lame -theora -faac -faad -x264 -a52 -postproc -avfilter' I get the following output from the resulting binary: {{{ $ /opt/local/bin/ffmpeg FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --prefix=/opt/local --prefix=/opt/local --disable-vhook --mandir=/opt/local/share/man --enable-shared --enable-pthreads libavutil version: 49.7.0 libavcodec version: 51.60.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 built on Jul 31 2008 11:20:01, gcc: 4.0.1 (Apple Computer, Inc. build 5250) }}} Whereas my other build shows the correct configuration (different, but the one I chose): {{{ $ /usr/local/bin/ffmpeg FFmpeg version SVN-r14463, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-pthreads --enable-libfaac --enable-libfaad --enable-liba52 --enable-libx264 --enable-libmp3lame --enable-gpl --disable-debug --disable-shared libavutil version: 49.7.0 libavcodec version: 51.62.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 built on Jul 29 2008 16:37:30, gcc: 4.0.1 (Apple Computer, Inc. build 5250) }}} Consequently, mp3, aac, h264 support are not working with the MacPorts build. Is there something I am missing? Or should I file a new ticket for this? -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by ryandesign@macports.org): "`port install foo -bar`" installs a port named "foo" and ''disables'' its "bar" variant. To ''enable'' its "bar" variant, type "`port install foo +bar`". -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by dklug1234@yahoo.de): Sorry, stupid me: The command should have been: 'sudo port install ffmpeg +gpl +lame +theora +faac +faad +x264 +a52 +postproc +avfilter' -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by ryandesign@macports.org): The port now uses gmake as of r38877. This takes care of the problem initially reported here. -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16137: ffmpeg: build error: can't allocate region on Mac OS X 10.4.11 ---------------------------------+------------------------------------------ Reporter: dklug1234@yahoo.de | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: | ---------------------------------+------------------------------------------ Changes (by devans@macports.org): * status: new => closed * resolution: => fixed -- Ticket URL: <http://trac.macports.org/ticket/16137#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts