MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

joey35car
MAME Fan
Reged: 02/07/07
Posts: 1112
Loc: Planet Claire
Send PM


Compiling MAME
#351343 - 03/09/16 04:16 AM


I am having such a hard time compiling to the most recent MAME from the Git. It's been over a few days where I keep getting errors. I always do a clean compile and see that there have been some fixes to the compile recently but still haven't been able to create a new MAME. Anyone out there been able to create and compile a new MAME build from the Git? I'm trying to compile a 64 bit on my windows 7.

Thanks



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: Compiling MAME new [Re: joey35car]
#351344 - 03/09/16 04:22 AM


> I am having such a hard time compiling to the most recent MAME from the Git. It's
> been over a few days where I keep getting errors. I always do a clean compile and see
> that there have been some fixes to the compile recently but still haven't been able
> to create a new MAME. Anyone out there been able to create and compile a new MAME
> build from the Git? I'm trying to compile a 64 bit on my windows 7.
>
> Thanks

I successfully compiled a build about 24 hours ago to test hiscore.lua

Everything went fine as it should.



joey35car
MAME Fan
Reged: 02/07/07
Posts: 1112
Loc: Planet Claire
Send PM


Re: Compiling MAME new [Re: B2K24]
#351345 - 03/09/16 05:07 AM


That's one of the reason I wanted to compile it. Well compiling now and see what happens. Thanks for the feedback and the link.

Also are you using the most recent build tools?

Edited by joey35car (03/09/16 05:08 AM)



B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: Compiling MAME new [Re: joey35car]
#351346 - 03/09/16 05:18 AM


Yes, I'm using msys64-2016-02-16.exe and it's at location C:\msys64



joey35car
MAME Fan
Reged: 02/07/07
Posts: 1112
Loc: Planet Claire
Send PM


Re: Compiling MAME new [Re: B2K24]
#351352 - 03/09/16 07:21 AM


Well after around 45 minutes of compiling I get this error.

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe: ../../../../mingw-gcc/bin/x64/Release/mam
e_mame/librm.a: Permission denied
rm.make:267: recipe for target '../../../../mingw-gcc/bin/x64/Release/mame_mame/librm.a' failed
make[2]: *** [../../../../mingw-gcc/bin/x64/Release/mame_mame/librm.a] Error 1
Makefile:757: recipe for target 'rm' failed
make[1]: *** [rm] Error 2
makefile:846: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2



YuiFAN
MAME Fan
Reged: 06/20/07
Posts: 24
Send PM


Re: Compiling MAME new [Re: joey35car]
#351354 - 03/09/16 08:33 AM


> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe:
> ../../../../mingw-gcc/bin/x64/Release/mam
> e_mame/librm.a: Permission denied

I am not sure that why. Sometimes happens, and sometimes not.

Check your folder, find this librm.a and delete it.
Then recompile again. I think it works.



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: Compiling MAME new [Re: YuiFAN]
#351355 - 03/09/16 09:09 AM


> >
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ar.exe:
> > ../../../../mingw-gcc/bin/x64/Release/mam
> > e_mame/librm.a: Permission denied
>
> I am not sure that why. Sometimes happens, and sometimes not.
>
> Check your folder, find this librm.a and delete it.
> Then recompile again. I think it works.

Just mean that the Windows is doing something that causes it to give the permission to block it. Just weird that it does that on my Windows 10 sometimes.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Compiling MAME new [Re: Dullaron]
#351357 - 03/09/16 10:03 AM


When compiling MAME, UAC should be disabled at all or at least run the batch file with Admin privileges. It happens here sometimes too.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4466
Loc: Melbourne, Australia
Send PM


Re: Compiling MAME new [Re: Mamesick]
#351358 - 03/09/16 10:37 AM


> When compiling MAME, UAC should be disabled at all or at least run the batch file
> with Admin privileges. It happens here sometimes too.

That's very bad advice - compilers aren't security audited and shouldn't be run outside the user sandbox. The issue described is caused by windows file locking behaviour when multiple processes try to access the same file for writing in rapid succession. Disabling UAC or running as administrator will do nothing to fix it.



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Compiling MAME new [Re: Vas Crabb]
#351359 - 03/09/16 10:42 AM


> > When compiling MAME, UAC should be disabled at all or at least run the batch file
> > with Admin privileges. It happens here sometimes too.
>
> That's very bad advice - compilers aren't security audited and shouldn't be run
> outside the user sandbox. The issue described is caused by windows file locking
> behaviour when multiple processes try to access the same file for writing in rapid
> succession. Disabling UAC or running as administrator will do nothing to fix it.

Ok, could you please tell me what are the security issues I could encounter if I compile MAME with UAC disabled (which gives me a small speedup don't ask me why and less probabilities in encounter the file writing issue) at home with internet access disabled? Are there security issues in the MSYS2 package?



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4466
Loc: Melbourne, Australia
Send PM


Re: Compiling MAME new [Re: Mamesick]
#351360 - 03/09/16 11:03 AM


> > > When compiling MAME, UAC should be disabled at all or at least run the batch file
> > > with Admin privileges. It happens here sometimes too.
> >
> > That's very bad advice - compilers aren't security audited and shouldn't be run
> > outside the user sandbox. The issue described is caused by windows file locking
> > behaviour when multiple processes try to access the same file for writing in rapid
> > succession. Disabling UAC or running as administrator will do nothing to fix it.
>
> Ok, could you please tell me what are the security issues I could encounter if I
> compile MAME with UAC disabled (which gives me a small speedup don't ask me why and
> less probabilities in encounter the file writing issue) at home with internet access
> disabled? Are there security issues in the MSYS2 package?

The code is not security audited, it could overwrite system files or registry registry keys or just behave badly in general. MAME also isn't security audited and should never be run as administrator/root. There are many potential stack smash bugs with potential to do more damage if running with elevated privileges.



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Compiling MAME new [Re: Vas Crabb]
#351361 - 03/09/16 11:20 AM


> > > > When compiling MAME, UAC should be disabled at all or at least run the batch
> file
> > > > with Admin privileges. It happens here sometimes too.
> > >
> > > That's very bad advice - compilers aren't security audited and shouldn't be run
> > > outside the user sandbox. The issue described is caused by windows file locking
> > > behaviour when multiple processes try to access the same file for writing in
> rapid
> > > succession. Disabling UAC or running as administrator will do nothing to fix it.
> >
> > Ok, could you please tell me what are the security issues I could encounter if I
> > compile MAME with UAC disabled (which gives me a small speedup don't ask me why and
> > less probabilities in encounter the file writing issue) at home with internet
> access
> > disabled? Are there security issues in the MSYS2 package?
>
> The code is not security audited, it could overwrite system files or registry
> registry keys or just behave badly in general. MAME also isn't security audited and
> should never be run as administrator/root. There are many potential stack smash bugs
> with potential to do more damage if running with elevated privileges.

Got it, thank you.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Compiling MAME new [Re: joey35car]
#351384 - 03/09/16 09:22 PM


It sounds like an anti-virus program is scanning/locking files while you're compiling. Try disabling your anti-virus while you compile to see if it succeeds (and if it's faster too).



GroovyMAME support forum on BYOAC



joey35car
MAME Fan
Reged: 02/07/07
Posts: 1112
Loc: Planet Claire
Send PM


Re: Compiling MAME new [Re: joey35car]
#351398 - 03/10/16 12:59 AM


I just wanted to say thank you all for the replies and ideas. After I posted this I tried to build it again while I went to bed. I got home and found out that it compiled with no problem. I didn't change anything or disable any antivirus programs. Just weird that on some occasions it doesn't work. Not sure it's because I'm running other programs at the same time or what not. Any ways thanks again for all the input and keep up the good work MAMEDevs.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 212 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2051