libretro / flycast

Flycast is a multiplatform Sega Dreamcast emulator. NOTE: No longer actively developed, use upstream repo for libretro from now on - https://github.com/flyinghead/flycast
http://reicast.com
GNU General Public License v2.0
152 stars 77 forks source link

Is it possible to build the core on Windows without JIT? #1072

Closed bslenul closed 6 months ago

bslenul commented 3 years ago

Hey!

So devreorder (https://github.com/briankendall/devreorder) is an awesome tool that can be used to force controllers to be re-arranged in a specific order, it is REALLY useful with RetroArch. However, as mentioned in https://github.com/libretro/flycast/issues/974#issuecomment-801392118 it crashes RA on close content :(

Since no crash log is generated I decided to run RA + Flycast through gdb to (hopefully) help devs to see what's going on, but it's interrupted non-stop, apparently because of the JIT. I've read that you can use handle SIGSEGV noprint nostop to prevent that, it works but then I don't get the crash on close content anymore...

So is there any way to build the core for Windows without JIT? So I can run gdb without the "noprint nostop" stuff. I remember few months ago trying to build the core with HAVE_GENERIC_JIT=1 (I'm not a dev but I believe it's the correct option), but I got a bunch of errors at the end of the compilation ("undefined reference to xxx") :/

edit: that's on Windows 10 btw, using MSYS2 MinGW 64bit, no issue when compiling the core without HAVE_GENERIC_JIT=1.

ds22x commented 3 years ago

Just tried to compile it for myself with HAVE_GENERIC_JIT=1, but I too get a lot (a whole lot infact) of "undefined reference to xxx" errors at the end of compilation.

bslenul commented 3 years ago

Yeah, and idk if there's a clean way to cancel it btw, even after a Ctrl+C it keeps going, I have to close MSYS2 and close ld.exe from the Windows task manager :x

bslenul commented 3 years ago

If anyone wants to take a look, I let it run for a while, here's the build log (the "multiple definition" and "undefined reference" errors start line 568): https://pastebin.com/dcmh0KA1