Previous Thread
Next Thread
Print Thread
Page 40 of 42 1 2 38 39 40 41 42
Joined: Mar 2010
Posts: 151
S
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 151
Ah yes, got it. Thanks!

Joined: Apr 2012
Posts: 190
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 190
How is the state concerning Visual Studio? I really liked the debugger, but am unable to compile anything beyond 0.205 (from December 2018).

Currently, i work with Visual Studio 2017 (15.9.x) and a 'retargeted' 14.14 toolset (-> mimics a 15.7 compiler).
https://devblogs.microsoft.com/cppb...ion-msvc-toolsets-in-visual-studio-2017/

Are there alternatives to GDB?

I understand nobody wants to support Visual Studio here, so a slight nudge in the right direction would be very kind (like 'use VS2019 + commercial WinDBG').

Yeah, i'd even shell out a few hundred bucks for a semi-professional tool.

Last edited by Bavarese; 07/25/19 04:00 PM.
Joined: Mar 2001
Posts: 16,691
Likes: 6
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,691
Likes: 6
Visual Studio using the LLVM/Clang compiler is the best way to both compile MAME and use the VS debugger. "make msllvm" I think is the magic.

Joined: Apr 2012
Posts: 190
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 190
Hmm... i think it should read
Code
make vsllvm

Do i need LLVM-7.1.0-win64.exe, the newer 8.x (only available as source) - or the one supplied by the Microsoft installer ("Clang C2 experimental") ?
Is it still Visual Studio 2017...?

My fellow countryman Rfka was also unable to build the solution, that's why i ask for a bit more details wink Thanks in advance.

Screenshot - mess.sln properties (VS 2017)
https://www.dropbox.com/s/lirblgiixwhvsr1/VS2017_Mess_platform_toolset.jpg?dl=0

Last edited by Bavarese; 07/28/19 11:13 AM.
Joined: Aug 2004
Posts: 1,428
Likes: 1
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,428
Likes: 1
Just a warning for those who build their own: GCC 9.2 is bugged and may not compile MAME. Roll back to an earlier version.

Joined: Apr 2012
Posts: 190
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 190
Success!

I am able to build again with Visual Studio 2019 Community Edition 16.3.6, so i can abandon my futile attempts with GDB on Windows.

Environment:
a) bleeding edge sources from today (Oct. 24th 2019) with minor tweaks @ 'chainmanager.cpp'
(VS 2019 doesn't like uint8_t palette_temp[palette->width() * palette->height() * 4]; )

b) msys64-32-2019-03-25
Note:
build environment must be updated because Genie got a 'vs2019' switch (not present in march release above).

0.214 stable didn't work because the recent fixes by Julian Sikorski are missing (think so).

smile

Last edited by Bavarese; 10/24/19 06:58 PM.
Joined: Nov 1999
Posts: 677
Likes: 1
B
Senior Member
Offline
Senior Member
B
Joined: Nov 1999
Posts: 677
Likes: 1
I will say that I started using Clang on Visual Studio for MAME and have not looked back.

Its not just that you're not dealing with the VC specific compilation bugs, but that unoptimized (i.e. - debugging) code is several times faster. Not sure what is happening, but it makes for a much more satisfactory debugging experience.

Joined: Mar 2010
Posts: 151
S
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 151
Having an issue compiling mame 0.227, as excerpted below. I thought it might have been due to gcc-10 but I downgraded to gcc-9 and got the same result. Any thoughts or suggestions are welcome.

Code
Compiling src/frontend/mame/luaengine_render.cpp...
{standard input}: Assembler messages:
{standard input}:1953: Warning: end of file not at end of a line; newline inserted
{standard input}:2238: Error: bad register name `%rc'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++-9: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [emu.make:1196: ../../../../linux_gcc/obj/x64/Release/src/emu/emumem_aspace.o] Error 1

Joined: Mar 2001
Posts: 16,691
Likes: 6
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,691
Likes: 6
I think that's just plain not enough memory - 8 GB is getting fairly tight on some files, especially if you run a parallel make. (-jX)

Joined: Feb 2004
Posts: 2,230
Likes: 6
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,230
Likes: 6
Yeah, that looks like the out-of-memory process reaper killed the compiler.

Page 40 of 42 1 2 38 39 40 41 42

Link Copied to Clipboard
Who's Online Now
4 members (Pernod, Vas Crabb, R. Belmont, 1 invisible), 27 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,902
Posts116,975
Members4,979
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com