Opened 16 years ago

Closed 16 years ago

Last modified 3 years ago

#16137 closed defect (fixed)

ffmpeg: build error: can't allocate region on Mac OS X 10.4.11

Reported by: dklug1234@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), acho@…, mascguy (Christopher Nielsen)
Port:

Description

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.

Change History (9)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… acho@… added
Milestone: Port Bugs

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.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: ffmpeg fails to build on Mac 10.4.11ffmpeg: build error: can't allocate region on Mac OS X 10.4.11

comment:3 in reply to:  1 ; Changed 16 years ago by dklug1234@…

Replying to 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?

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

"port install foo -bar" installs a port named "foo" and disables its "bar" variant. To enable its "bar" variant, type "port install foo +bar".

comment:5 in reply to:  3 Changed 16 years ago by dklug1234@…

Sorry, stupid me: The command should have been: 'sudo port install ffmpeg +gpl +lame +theora +faac +faad +x264 +a52 +postproc +avfilter'

comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

The port now uses gmake as of r38877. This takes care of the problem initially reported here.

comment:7 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:9 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Note: See TracTickets for help on using tickets.