I am trying to compile SheepShaver on Ubuntu 18.04.4 LTS (Bionic Beaver) on an aarch64 (Amlogic-based x96 system with Armbian by balbes150). I am getting:
sudo apt-get install libgtk2.0-dev x11proto-xf86dga-dev libxxf86dga-dev libxxf86dga1 libsdl1.2-dev -y
cd ~/Downloads
git clone https://github.com/cebix/macemu.git
cd macemu/SheepShaver
make links
cd src/Unix/
wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O config.guess
./autogen.sh
make -j3
(...)
g++ -I../kpx_cpu/include -I../kpx_cpu/src -I../include -I. -I../CrossPlatform -I../slirp -DHAVE_CONFIG_H -D_REENTRANT -DDATADIR=\"/usr/local/share/SheepShaver\" -g -O2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/aarch64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -c ../kpx_cpu/sheepshaver_glue.cpp -o obj/sheepshaver_glue.o
gcc -I../kpx_cpu/include -I../kpx_cpu/src -I../include -I. -I../CrossPlatform -I../slirp -DHAVE_CONFIG_H -D_REENTRANT -DDATADIR=\"/usr/local/share/SheepShaver\" -g -O2 -c ../kpx_cpu/ppc-dis.c -o obj/ppc-dis.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 ‘void dump_disassembly(uint32, int, int)’:
../kpx_cpu/sheepshaver_glue.cpp:751:65: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘bfd_vma {aka long unsigned int}’ [-Wformat=]
fprintf(stderr, "%s0x%8llx: ", addr == pc ? " >" : " ", addr);
^
../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);
^~
../kpx_cpu/sheepshaver_glue.cpp: In member function ‘void sheepshaver_cpu::execute_native_op(uint32)’:
../kpx_cpu/sheepshaver_glue.cpp:1070:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = InitStreamModule((void *)gpr(3));
^
../kpx_cpu/sheepshaver_glue.cpp:1076:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_open((queue_t *)gpr(3), (void *)gpr(4), gpr(5), gpr(6), (void*)gpr(7));
^
../kpx_cpu/sheepshaver_glue.cpp:1076:55: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_open((queue_t *)gpr(3), (void *)gpr(4), gpr(5), gpr(6), (void*)gpr(7));
^
../kpx_cpu/sheepshaver_glue.cpp:1076:86: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_open((queue_t *)gpr(3), (void *)gpr(4), gpr(5), gpr(6), (void*)gpr(7));
^
../kpx_cpu/sheepshaver_glue.cpp:1079:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_close((queue_t *)gpr(3), gpr(4), (void *)gpr(5));
^
../kpx_cpu/sheepshaver_glue.cpp:1079:64: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_close((queue_t *)gpr(3), gpr(4), (void *)gpr(5));
^
../kpx_cpu/sheepshaver_glue.cpp:1082:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_wput((queue_t *)gpr(3), (mblk_t *)gpr(4));
^
../kpx_cpu/sheepshaver_glue.cpp:1082:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_wput((queue_t *)gpr(3), (mblk_t *)gpr(4));
^
../kpx_cpu/sheepshaver_glue.cpp:1085:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
gpr(3) = ether_rsrv((queue_t *)gpr(3));
^
Makefile:200: recipe for target 'obj/sheepshaver_glue.o' failed
make: *** [obj/sheepshaver_glue.o] Error 1
make: *** Waiting for unfinished jobs....
I am trying to compile SheepShaver on Ubuntu 18.04.4 LTS (Bionic Beaver) on an aarch64 (Amlogic-based x96 system with Armbian by balbes150). I am getting: