kanjitalk755 / macemu

Basilisk II and SheepShaver Macintosh emulators
332 stars 50 forks source link

BasiliskII under Windows 10 x64: Build failed #165

Closed xykonur closed 1 year ago

xykonur commented 1 year ago

I've configured MSYS2 as recommended, along with a couple of other tools I needed installed.

However, ../Unix/autogen.sh is failing with the following:

checking whether your system supports Windows exceptions... no
configure: error: Sorry, Windows exceptions don't work as expected on your system.

Further details from config.log:

configure:6555: checking whether your system supports Windows exceptions
configure:6583: g++ -o conftest.exe -g -O2   conftest.cpp  >&5
configure:6583: $? = 0
configure:6583: ./conftest.exe
./configure: line 2058:  2748 Segmentation fault      (core dumped) ./conftest$ac_exeext
configure:6583: $? = 139
configure: program exited with status 139
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Basilisk II"
| #define PACKAGE_TARNAME "BasiliskII"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "Basilisk II 1.0"
| #define PACKAGE_BUGREPORT "Christian.Bauer@uni-mainz.de"
| #define PACKAGE_URL ""
| #define PACKAGE "Basilisk II"
| #define VERSION "1.0"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_LONG_DOUBLE 16
| #define SIZEOF_VOID_P 8
| #define HAVE_LOFF_T 1
| #define HAVE_CADDR_T 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_WIN32_VM 1
| /* end confdefs.h.  */
|
|     #define HAVE_WIN32_EXCEPTIONS 1
|     #define CONFIGURE_TEST_SIGSEGV_RECOVERY
|     #include "../CrossPlatform/vm_alloc.cpp"
|     #include "../CrossPlatform/sigsegv.cpp"
|
configure:6602: result: no
configure:6609: error: Sorry, Windows exceptions don't work as expected on your system.
kanjitalk755 commented 1 year ago

Did you run it from a MinGW32 prompt? The Windows version does not support 64-bit.

xykonur commented 1 year ago

My apologies, I'm not familiar with MSYS2. Trying it from a MinGW32 prompt via msys2_shell.cmd -mingw32 and compiling there worked fine. Maybe adding a one line explanation to Windows build instructions would make it easier for beginners like myself. Otherwise, seeing the section titled MinGW32/MSYS2 made me think that having an MSYS2 shell is sufficient.

kanjitalk755 commented 1 year ago

Added (from a mingw32.exe prompt) to README.md.