Opened 11 months ago

Last modified 11 months ago

#68965 new defect

MPlayer build error on Tiger: make: *** virtual memory exhausted. Stop.

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: tiger Cc: kencu (Ken)
Port: MPlayer

Description

:notice:build --->  Building MPlayer
:debug:build Executing org.macports.build (MPlayer)
:debug:build Environment: 
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_MPlayer/MPlayer/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build DEVELOPER_DIR='/Developer'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.4'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_MPlayer/MPlayer/work/MPlayer-1.5" && /usr/bin/make -j4 -w all 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_MPlayer/MPlayer/work/MPlayer-1.5" && /usr/bin/make -j4 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_MPlayer/MPlayer/work/MPlayer-1.5'
:info:build make: *** virtual memory exhausted.  Stop.
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_MPlayer/MPlayer/work/MPlayer-1.5'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_MPlayer/MPlayer/work/MPlayer-1.5" && /usr/bin/make -j4 -w all 
:info:build Exit code: 2

Attachments (1)

mplayer.log (33.5 KB) - added by barracuda156 11 months ago.

Download all attachments as: .zip

Change History (9)

Changed 11 months ago by barracuda156

Attachment: mplayer.log added

comment:1 Changed 11 months ago by barracuda156

Okay, so switching to gmake got me a step further, then it failed on:

libvo/vo_png.c: In function 'draw_image':
libvo/vo_png.c:176: warning: 'av_init_packet' is deprecated (declared at ffmpeg/libavcodec/packet.h:506)
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from input/ar.c:27:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115: error: expected specifier-qualifier-list before 'vector'
/opt/local/bin/gcc-apple-4.2 -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Icompat/atomics/gcc -D_ISOC99_SOURCE -I. -Iffmpeg -pipe -Os -arch ppc -fno-tree-vectorize -fno-asynchronous-unwind-tables -maltivec -mabi=altivec -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I/opt/local/include -I/opt/local/include/p11-kit-1 -I/usr/X11R6/include -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/freetype2 -DZLIB_CONST -I/opt/local/include/libxml2 -c -o libvo/vo_jpeg.o libvo/vo_jpeg.c
/opt/local/bin/gcc-apple-4.2 -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Icompat/atomics/gcc -D_ISOC99_SOURCE -I. -Iffmpeg -pipe -Os -arch ppc -fno-tree-vectorize -fno-asynchronous-unwind-tables -maltivec -mabi=altivec -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I/opt/local/include -I/opt/local/include/p11-kit-1 -I/usr/X11R6/include -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/freetype2 -DZLIB_CONST -I/opt/local/include/libxml2 -c -o libmenu/menu.o libmenu/menu.c
/opt/local/bin/gcc-apple-4.2 -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Icompat/atomics/gcc -D_ISOC99_SOURCE -I. -Iffmpeg -pipe -Os -arch ppc -fno-tree-vectorize -fno-asynchronous-unwind-tables -maltivec -mabi=altivec -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I/opt/local/include -I/opt/local/include/p11-kit-1 -I/usr/X11R6/include -I/opt/local/include/openjpeg-2.5 -I/opt/local/include/freetype2 -DZLIB_CONST -I/opt/local/include/libxml2 -c -o libmenu/menu_chapsel.o libmenu/menu_chapsel.c
gmake: *** [Makefile:730: input/ar.o] Error 1
gmake: *** Waiting for unfinished jobs....

comment:2 Changed 11 months ago by barracuda156

And with gcc-7 it fails on:

:info:build libvo/gl_common.c: In function 'init_mpglcontext':
:info:build libvo/gl_common.c:2757:24: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
:info:build      ctx->swapGlBuffers = vo_osx_swap_buffers;
:info:build                         ^
:info:build libvo/osx_objc_common.m: In function 'vo_osx_init':
:info:build libvo/osx_objc_common.m:73:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
:info:build      const NSOpenGLPixelFormatAttribute *attribs = vo_doublebuffering ? double_attribs : nodouble_attribs;
:info:build      ^~~~~
:info:build libvo/osx_objc_common.m:74:5: warning: passing argument 1 of 'initWithAttributes:' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
:info:build      pixfmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs];
:info:build      ^~~~~~
:info:build libvo/osx_objc_common.m:74:5: note: expected 'NSOpenGLPixelFormatAttribute * {aka enum <anonymous> *}' but argument is of type 'const NSOpenGLPixelFormatAttribute * {aka const enum <anonymous> *}'
:info:build libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView preinit]':
:info:build libvo/osx_objc_common.m:163:2: error: unknown type name 'GLint'; did you mean 'Point'?
:info:build   GLint swapInterval = 1;
:info:build   ^~~~~
:info:build   Point
:info:build libvo/osx_objc_common.m:202:2: warning: passing argument 1 of 'setValues:forParameter:' from incompatible pointer type [-Wincompatible-pointer-types]
:info:build   [glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
:info:build   ^
:info:build libvo/osx_objc_common.m:202:2: note: expected 'const long int *' but argument is of type 'int *'
:info:build libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView configWidth:height:flags:]':
:info:build libvo/osx_objc_common.m:232:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
:info:build   NSPoint topleft = NSMakePoint(vo_dx, 2*xinerama_y + vo_screenheight - vo_dy);
:info:build   ^~~~~~~
:info:build libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView reshape]':
:info:build libvo/osx_objc_common.m:261:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
:info:build   NSRect frame = [self frame];
:info:build   ^~~~~~
:info:build libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView fullscreen:]':
:info:build libvo/osx_objc_common.m:410:3: warning: 'NSWindow' may not respond to '-enterFullScreenMode:'
:info:build    [window enterFullScreenMode:[self fullscreen_screen]];
:info:build    ^
:info:build libvo/osx_objc_common.m:410:3: warning: (Messages without a matching method signature
:info:build libvo/osx_objc_common.m:410:3: warning: will be assumed to return 'id' and accept
:info:build libvo/osx_objc_common.m:410:3: warning: '...' as arguments.)
:info:build libvo/osx_objc_common.m:422:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
:info:build    NSSize size = { vo_screenwidth, vo_screenheight };
:info:build    ^~~~~~
:info:build libvo/osx_objc_common.m:437:3: warning: 'NSWindow' may not respond to '-exitFullScreenMode:'
:info:build    [window exitFullScreenMode:[self fullscreen_screen]];
:info:build    ^
:info:build gmake: *** [Makefile:736: libvo/osx_objc_common.o] Error 1
:info:build gmake: *** Waiting for unfinished jobs....

comment:3 Changed 11 months ago by barracuda156

I give up, it is just broken. Even disabling gl and altivec does not help:

libvo/osx_objc_common.m: In function 'vo_osx_init':
libvo/osx_objc_common.m:73: warning: ISO C90 forbids mixed declarations and code
libvo/osx_objc_common.m:74: warning: passing argument 1 of 'initWithAttributes:' discards qualifiers from pointer target type
libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView preinit]':
libvo/osx_objc_common.m:163: error: 'GLint' undeclared (first use in this function)
libvo/osx_objc_common.m:163: error: (Each undeclared identifier is reported only once
libvo/osx_objc_common.m:163: error: for each function it appears in.)
libvo/osx_objc_common.m:163: error: expected ';' before 'swapInterval'
libvo/osx_objc_common.m:202: error: 'swapInterval' undeclared (first use in this function)
libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView configWidth:height:flags:]':
libvo/osx_objc_common.m:232: warning: ISO C90 forbids mixed declarations and code
libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView reshape]':
libvo/osx_objc_common.m:261: warning: ISO C90 forbids mixed declarations and code
libvo/osx_objc_common.m: In function '-[MPCommonOpenGLView fullscreen:]':
libvo/osx_objc_common.m:410: warning: 'NSWindow' may not respond to '-enterFullScreenMode:'
libvo/osx_objc_common.m:410: warning: (Messages without a matching method signature
libvo/osx_objc_common.m:410: warning: will be assumed to return 'id' and accept
libvo/osx_objc_common.m:410: warning: '...' as arguments.)
libvo/osx_objc_common.m:422: warning: ISO C90 forbids mixed declarations and code
libvo/osx_objc_common.m:437: warning: 'NSWindow' may not respond to '-exitFullScreenMode:'
gmake: *** [Makefile:736: libvo/osx_objc_common.o] Error 1

comment:4 Changed 11 months ago by kencu (Ken)

nobody ever ever ever tests builds on Tiger, especially PPC.

you can expect to come across many build failures due to assumptions that are not true on that system.

I used to run a webserver off a Tiger PPC system, for 15 years!, so I kept Tiger up to date from time to time.

but that hardware now runs Debian PPC Linux now that Adrian finally fixed that, and it’s 100x better than it was before, so I don’t spend any time fixing Tiger any more.

comment:5 in reply to:  4 Changed 11 months ago by barracuda156

Replying to kencu:

nobody ever ever ever tests builds on Tiger, especially PPC.

you can expect to come across many build failures due to assumptions that are not true on that system.

I used to run a webserver off a Tiger PPC system, for 15 years!, so I kept Tiger up to date from time to time.

but that hardware now runs Debian PPC Linux now that Adrian finally fixed that, and it’s 100x better than it was before, so I don’t spend any time fixing Tiger any more.

Tiger is not something I would waste time on myself, since every time I try something out of curiosity it just doesn’t work. (Which leaves me surprised how someone could be using it in context of development.)

I would invest some time in Leopard, provided ppc64 is fixed. That gonna make sense for G5.

comment:6 Changed 11 months ago by kencu (Ken)

my dualg5’s running Linix ppc64 have the latest llvm, clang, rust, gcc, qt6, gtk, a fairly current web browser that can access github, octave, etc…

debian runs a full buildbot setup for all the software for them.

and they can dual boot into Leopard or Tiger any time you want (very rarely now for me).

There are a few hiccups of course, but…

Version 0, edited 11 months ago by kencu (Ken) (next)

comment:7 in reply to:  6 Changed 11 months ago by barracuda156

Replying to kencu:

my dualg5s running Linux ppc64 have the latest llvm, clang, rust, gcc, qt6, gtk, a fairly current web browser that can access github, octave, etc…

debian runs a full buildbot setup for all the software for them.

and they can dual boot into Leopard or Tiger any time you want (very rarely now for me).

There are a few hiccups of course, but…

I tried FreeBSD 13, and turned out they have broken multicpu support: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271826 Not interested in Linux really. If BSD ever gets fixed, will give it another try.

comment:8 Changed 11 months ago by kencu (Ken)

why always fight the tide?

debian 12 is the core of linux, and that is what works. many ppc/ppc64 users now.

everything else is a waste of time, I think…

Note: See TracTickets for help on using tickets.