Previous Thread
Next Thread
Print Thread
Page 38 of 39 1 2 36 37 38 39
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #110896
09/28/17 08:44 PM
09/28/17 08:44 PM
Joined: Jan 2012
Posts: 914
Bavaria
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member
Joined: Jan 2012
Posts: 914
Bavaria
Bit of a head scratcher here, this is on an i7-4790K (four physical cores), 16GB and a dedicated fast SSD, on Windows 10

MAME compilation for some time has become very slow, over 1h for a SUBTARGET=MESS build with -j9

The build environment is MSYS64 from the current tools. If you look at the statistics for the eight virtual cores, they're all busy but maybe at 10-20% maximum.

Now I have kept an old set of build tools that was manually updated from the 2016 archive ... I tried that today, and all virtual cores are at roughly 90%, the same build is done in just over 20min.

What's happening here?


NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #110897
09/28/17 08:47 PM
09/28/17 08:47 PM
Joined: May 2004
Posts: 1,508
H
Haze Offline
Very Senior Member
Haze  Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,508
unrelated, but I don't recommend using an SSD drive for compilation, you'll smash the write limit on them very quickly and end up with a dead SSD, compiling is very I/O intensive.


Last edited by Haze; 09/28/17 08:47 PM.
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #110909
09/29/17 08:38 AM
09/29/17 08:38 AM
Joined: May 2004
Posts: 856
Germany
D
Duke Offline
Senior Member
Duke  Offline
Senior Member
D
Joined: May 2004
Posts: 856
Germany
That might have been true for very old SSDs, but it's really a non-issue now. Even the cheap ones support writing terabytes of data. I don't even have a traditional HDD in my system anymore.

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113525
06/05/18 03:49 PM
06/05/18 03:49 PM
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
arcadefan  Offline
Member
Joined: Aug 2012
Posts: 65
having some trouble compiling the latest build from git. Part way through I get this:

Code
mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe: unable to rename '../../../../mingw-gcc/bin/x64/Release/mame_mame/libie15.a'; reason: File exists
ie15.make:265: recipe for target '../../../../mingw-gcc/bin/x64/Release/mame_mame/libie15.a' failed
make[2]: *** [../../../../mingw-gcc/bin/x64/Release/mame_mame/libie15.a] Error 1

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113527
06/05/18 11:21 PM
06/05/18 11:21 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
USA
Try a make clean and a re-make. It sounds like a file got stuck somehow.

Re: Can't compile latest MAME? READ THIS THREAD [Re: R. Belmont] #113529
06/06/18 01:20 PM
06/06/18 01:20 PM
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
arcadefan  Offline
Member
Joined: Aug 2012
Posts: 65
Just tried that and I get the same error but at a different spot.

Code
4/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe: unable to rename '../Archiving libvsystem.a...
Compiling src/mame/video/crt.cpp...
../../../mingw-gcc/bin/x64/Release/mame_mame/libmicrokey.a'; reason: File exists
microkey.make:279: recipe for target '../../../../mingw-gcc/bin/x64/Release/mame_mame/libmicrokey.a' failed
make[2]: *** [../../../../mingw-gcc/bin/x64/Release/mame_mame/libmicrokey.a] Error 1
makefile:724: recipe for target 'microkey' failed
make[1]: *** [microkey] Error 2
Compiling src/mame/drivers/gts3a.cpp...
make[1]: *** Waiting for unfinished jobs....


I used the following commandline:

Code
[MINGW64] C:\msys64\home\mfora\mame>make -j9 avx2=1 NOWERROR=1 USE_NETWORK=1 TOOLS=1 ARCHOPTS=-march=native

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113530
06/06/18 01:48 PM
06/06/18 01:48 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
USA
Try turning down the j9 to j5 or something. It seems like something in your system doesn't like the full stress.

Re: Can't compile latest MAME? READ THIS THREAD [Re: R. Belmont] #113531
06/06/18 02:37 PM
06/06/18 02:37 PM
Joined: Aug 2012
Posts: 65
arcadefan Offline
Member
arcadefan  Offline
Member
Joined: Aug 2012
Posts: 65
Nope still doesn't like that

Code
Archiving libflac.a...
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe: unable to rename '../../../../minCompiling src/osd/windows/winutil.cpp...
gw-gcc/bin/x64/Release/libflac.a'; reason: File exists
flac.make:319: recipe for target '../../../../mingw-gcc/bin/x64/Release/libflac.a' failed
make[2]: *** [../../../../mingw-gcc/bin/x64/Release/libflac.a] Error 1
makefile:52: recipe for target 'flac' failed
make[1]: *** [flac] Error 2
make[1]: *** Waiting for unfinished jobs....

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113532
06/06/18 02:49 PM
06/06/18 02:49 PM
Joined: May 2004
Posts: 856
Germany
D
Duke Offline
Senior Member
Duke  Offline
Senior Member
D
Joined: May 2004
Posts: 856
Germany
Maybe your anti-virus is interfering.

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #113533
06/06/18 02:54 PM
06/06/18 02:54 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
USA
Ooh, yeah, I forgot about that. Set your AV to exclude the MAME tree.

Page 38 of 39 1 2 36 37 38 39

Who's Online Now
2 registered members (Edstrom, 1 invisible), 39 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,564
Posts111,885
Members4,805
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.043s Queries: 14 (0.017s) Memory: 5.7312 MB (Peak: 5.9521 MB) Zlib enabled. Server Time: 2018-08-15 18:42:40 UTC