I'm using Lubuntu 16.04 x86-64 and today downloaded macemu git.
I had previously installed the Ubuntu basilisk2 package, did apt-get build-dep basilisk2 then removed the basilisk2 package.
Building BasiliskII seemed to work fine. At least, I can run the binary and the GUI window appears; I didn't test further than that yet.
However I get an error when trying to build SheepShaver. The last lines output are:
Code: Select all
./dyngen -o basic-dyngen-ops.hpp obj/basic-dyngen-ops.o
dyngen: unexpected external symbol __stack_chk_fail
Makefile:225: recipe for target 'basic-dyngen-ops.hpp' failed
make: *** [basic-dyngen-ops.hpp] Error 1
Here's a longer extract from the end of the console output:
Code: Select all
../kpx_cpu/src/cpu/jit/basic-dyngen-ops.cpp:31:18: note: conflicts with ‘A2’
register uintptr A##REG asm(REG_T##REG); \
^
../kpx_cpu/src/cpu/jit/basic-dyngen-ops.cpp:35:1: note: in expansion of macro ‘DYNGEN_DEFINE_GLOBAL_REGISTER’
DYNGEN_DEFINE_GLOBAL_REGISTER(2);
^
g++ -xc -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 -c ../kpx_cpu/src/cpu/jit/dyngen.c -o obj/dyngen.dgo
../kpx_cpu/src/cpu/jit/dyngen.c: In function ‘gen_code’:
../kpx_cpu/src/cpu/jit/dyngen.c:2088:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
fprintf(outfile, " label_offsets[%d] = %d + (code_ptr() - gen_code_buf);\n", n, val - start_offset);
^
../kpx_cpu/src/cpu/jit/dyngen.c: In function ‘patch_relocations’:
../kpx_cpu/src/cpu/jit/dyngen.c:2379:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
fprintf(outfile, " jmp_addr[%d] = code_ptr() + %d;\n",
^
../kpx_cpu/src/cpu/jit/dyngen.c: In function ‘gen_file’:
../kpx_cpu/src/cpu/jit/dyngen.c:2926:22: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘host_ulong {aka long unsigned int}’ [-Wformat=]
fprintf(outfile, "DEFINE_CST(%s,0x%xL)\n\n", name, *((host_ulong *)(data + sym->st_value)));
^
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 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-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/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -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/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -c ../kpx_cpu/src/cpu/jit/cxxdemangle.cpp -o obj/cxxdemangle.dgo
g++ -o dyngen -Wl,-T,ldscripts/linux-x86_64.ld obj/dyngen.dgo obj/cxxdemangle.dgo
./dyngen -o basic-dyngen-ops.hpp obj/basic-dyngen-ops.o
dyngen: unexpected external symbol __stack_chk_fail
Makefile:225: recipe for target 'basic-dyngen-ops.hpp' failed
make: *** [basic-dyngen-ops.hpp] Error 1