libretro / mame2016-libretro

Late 2016 version of MAME (0.174) for libretro. Compatible with MAME 0.174 sets.
Other
32 stars 40 forks source link

compilation failures with gcc 9.2.0 (numerous warnings-as-errors building on Win10 using msys64) #37

Open c0d3h4x0r opened 4 years ago

c0d3h4x0r commented 4 years ago

Possibly a dup of #8 but not sure.

Far too many warnings-as-errors to count or list here. They generally fall into a few groups though:

I've been working my way through manually fixing as many as I can, just to get the build to work, but my fixes for some of them have been non-trivial change that may conflict with future changes from upstream. Looking for guidance on the right approach to fixing each of the above issues without introducing too much conflict.

c0d3h4x0r commented 4 years ago

It looks like the real problem is lack of clear instructions about how to build this libretro core. Apparently you need to use the command make -f Makefile.libretro rather than just make, so that it picks up and uses the libretro-specific Makefile -- which, among other things, disables warnings-as-errors.

That said, I've definitely found and fixed some code defects while working my way through properly resolving all the warnings, so we should keep this issue open to track picking up those fixes if nothing else. I'm gradually working on a merge request in my spare time.