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

Joined: Apr 2012
Posts: 193
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 193
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: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
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: 193
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 193
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,458
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,458
Likes: 9
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: 193
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 193
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: 706
Likes: 8
B
Senior Member
Offline
Senior Member
B
Joined: Nov 1999
Posts: 706
Likes: 8
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: 155
Likes: 1
S
Senior Member
Offline
Senior Member
S
Joined: Mar 2010
Posts: 155
Likes: 1
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: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
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,597
Likes: 300
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,597
Likes: 300
Yeah, that looks like the out-of-memory process reaper killed the compiler.

Page 40 of 44 1 2 38 39 40 41 42 43 44

Link Copied to Clipboard
Who's Online Now
3 members (Cpt. Pugwash, 2 invisible), 196 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,923
Members5,074
Most Online1,283
Dec 21st, 2022
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