Previous Thread
Next Thread
Print Thread
Page 42 of 42 1 2 40 41 42
Joined: Mar 2001
Posts: 16,895
Likes: 51
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,895
Likes: 51
It shouldn't be using more memory than 0.227 to compile as far as I'm aware. Maybe something else running is using a lot of memory?

Joined: Mar 2010
Posts: 153
Likes: 1
S
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 153
Likes: 1
Okay, this time I took a closer look at running applications and memory usage at compile-time and tracked the issue to something on this end. Thanks for your help in sleuthing this out.

Joined: Mar 2015
Posts: 223
Likes: 3
R
Rik Offline
Senior Member
Offline
Senior Member
R
Joined: Mar 2015
Posts: 223
Likes: 3
I have a possible noob compiling question here. smile
I'm trying to compile a very specific build of MAME (handheld games only). I can set it to the specific drivers easily enough which eliminates most of what I don't want, but some drivers have things in them that aren't games (like hh_tms1k.cpp has a bunch of TI Calculators). I'd like to remove individual games from a driver during compile. Is there an easy way to do this?
Do I have to comment out parts of the driver itself (is just commenting out the game drivers lines at the end of each one enough?) or can I set up something during the compile to just ignore some? (That would be ideal so I don't have to keep altering the drivers when I pull down updates from .git...)

-Rik

Joined: May 2009
Posts: 2,024
Likes: 60
J
Very Senior Member
OP Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,024
Likes: 60
You can comment out the GAME() or CONS() or COMP() macros at the end of the driver for starters, but then you'll most likely wind up with errors related to symbols defined but not used, since there will now be functions that are implemented but not used by anything. So you'll probably need to follow the errors down a bit of a rabbit hole until you've commented out enough things to make the compiler happy.

Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
I tried compiling mame from git but early on in the process I get this:
Code
d:/dev/msys64/home/mforan/Emulators/mame/scripts/genie.lua:558: File definition for TARGET=mame SUBTARGET=mame does not exist
stack traceback:
        [C]: in function 'error'
        d:/dev/msys64/home/mfora/Emulators/mame/scripts/genie.lua:558: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:109: in function 'dofile'
        [string "_WORKING_DIR        = os.getcwd()..."]:46: in function '_premake_main'
make: *** [makefile:1105: build/projects/windows/mame/gmake-mingw64-gcc/Makefile] Error 1
make: *** Waiting for unfinished jobs....

I used the following commandline:
Code
make -r -j7 NOWERROR=1 avx2=1 TOOLS=1 ARCHOPTS=-march=native

Any ideas?

Joined: Aug 2004
Posts: 1,455
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,455
Likes: 9
Probably shouldn't leave your surname showing there... just saying.

Joined: Aug 2012
Posts: 74
Member
Offline
Member
Joined: Aug 2012
Posts: 74
Still no luck with this.

Joined: May 2009
Posts: 2,024
Likes: 60
J
Very Senior Member
OP Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,024
Likes: 60
From which path are you invoking make?

Are you doing this from the MinGW command line? The forward slashes in that error message would seem to indicate that you're in some other type of shell.

Have you tried it without all of the non-standard things you're adding to the make invocation?

It seems like you're trying to do it in a way other than the officially documented method, so this is a "no warranty" situation.

Page 42 of 42 1 2 40 41 42

Link Copied to Clipboard
Who's Online Now
3 members (Vas Crabb, ICEknight, mixmaster), 29 guests, and 5 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,074
Posts118,964
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com