cebix / macemu

Basilisk II and SheepShaver Macintosh emulators
1.38k stars 288 forks source link

SheepShaver compile issue on FreeBSD #177

Open FreeBSD-pzn opened 6 years ago

FreeBSD-pzn commented 6 years ago

Hi!

I am using FreeBSD 10.4-Stable, FreeBSD 11.1-Stable, FreeBSD 11.1-Release and FreeBSD 12.0-Release Name : autoconf Version : 2.69_1

How to solve issue with autoconf: You need to make changes line 1556 in the file ../Unix/configure.ac: has been: 1556 -> function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; } has become 1556 -> version () { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }

Then run: $ autoreconf --install $ ./configure $ gmake

But you will get compile error.

How to solve the next issue:

g++ -I../kpx_cpu/include -I../kpx_cpu/src -DUSE_JIT -I../include -I. -I../CrossPlatform -I../slirp -DHAVE_CONFIG_H -D_REENTRANT -DDATADIR=\"/usr/local/share/SheepShaver\" -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/libdrm -I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -D_THREAD_SAFE -pthread -c ../CrossPlatform/sigsegv.cpp -o obj/sigsegv.o ../CrossPlatform/sigsegv.cpp:2514:41: error: 'SIGSEGV_FAULT_HANDLER_ARGLIST' was not declared in this scope #define SIGSEGV_FAULT_HANDLER_ARGLIST_1 SIGSEGV_FAULT_HANDLER_ARGLIST ^ ../CrossPlatform/sigsegv.cpp:2611:30: note: in expansion of macro 'SIGSEGV_FAULT_HANDLER_ARGLIST_1' static bool handle_badaccess(SIGSEGV_FAULT_HANDLER_ARGLIST_1) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake: *** [Makefile:200: obj/sigsegv.o]

You need to add in the file ../Unix/config.h next line (297)

define HAVE_SIGINFO_T 1

But how to solve the next issue I do not know.

g++ -I../kpx_cpu/include -I../kpx_cpu/src -DUSE_JIT -I../include -I. -I../CrossPlatform -I../slirp -DHAVE_CONFIG_H -D_REENTRANT -DDATADIR=\"/usr/local/share/SheepShaver\" -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/libdrm -I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/atk-1.0 -D_THREAD_SAFE -pthread -c ../kpx_cpu/sheepshaver_glue.cpp -o obj/sheepshaver_glue.o ../kpx_cpu/sheepshaver_glue.cpp:813:2: error: #error "FIXME: You don't have the capability to skip instruction within signal handlers" #error "FIXME: You don't have the capability to skip instruction within signal handlers" ^~~~~ ../kpx_cpu/sheepshaver_glue.cpp: In function 'sigsegv_return_t sigsegv_handler(sigsegv_info_t*)': ../kpx_cpu/sheepshaver_glue.cpp:821:19: error: 'pc' was not declared in this scope dump_disassembly(pc, 8, 8); ^~ gmake: *** [Makefile:200: obj/sheepshaver_glue.o]

Can anyone help me? Thanks. Oleg.

probonopd commented 4 years ago

Seems like I am running into a similar issue on aarch64: https://github.com/cebix/macemu/issues/197