So I configure it using the following:
./configure --disable-jit CFLAGS="-Wl,-no_pie" CXXFLAGS="-Wl,-no_pie" LDFLAGS="-Wl,-no_pie"
(I don't understand the pie bit, but a guy here seems to think it's important to remove pie for some reason... https://github.com/cebix/macemu/issues/16)
The emulator is also saying:
https://i.imgur.com/795vqSQ.png
And in the log...
My EXTREMELY LIMITED brain tells me this is something to do with how the emulator works. Is it some kind of memory addressing? My brain is too small to understand how this all works but maybe there is a clue here:X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 105 (X_ChangePointerControl)
Value in failed request: 0x0
Serial number of failed request: 9
Current serial number in output stream: 10
https://github.com/tycho/sheepshaver/co ... e925462e6b
I think memory... somebody patched the configure.ac file to have a special addressing mode for OS X (maybe Apple prevents us from doing certain things so they are working around this?) Either way, the above 'patch' looks like a dirt hack that goes in and hard codes 0x1000000 if you're on a Mac... no? Either way, there now seems to be a more dynamic solution being distributed with the source (within configure.ac):
QUESTION...dnl Addressing mode
AC_ARG_ENABLE(addressing,
[ --enable-addressing=AM set the addressing mode to use [default=real]],
[case "$enableval" in
real) WANT_ADDRESSING_MODE="real";;
direct) WANT_ADDRESSING_MODE="direct";;
direct,0x*) WANT_ADDRESSING_MODE="direct"; NATMEM_OFFSET=`echo "$enableval" | sed -n '/direct,\(0[[xX]][[0-9A-Fa-f]]*\([[UuLl]]\{1,2\}\)\?\)$/s//\1/p'`;;
esac],
[WANT_ADDRESSING_MODE="real"]
)
Am I on the right track? 'Real' addressing mode is being used with my binary. I try using 'direct' by using the following configure option:
However, no dice. Guessing I can be more specific, but "--enable-addressing=direct,0x1000000" does not work either. When configuring, both say:./configure --disable-jit --enable-addressing=direct CFLAGS="-Wl,-no_pie" CXXFLAGS="-Wl,-no_pie" LDFLAGS="-Wl,-no_pie"
So I'm a little stuck. It appears that:checking for addressing mode to use... configure: error: could not determine a sensible NATMEM_OFFSET value
- JIT is just... broken on OS X?
- There's some kind of a memory (or other) issue that I have just embarrassed myself trying to pretend I understand.
- This is a 64-bit binary... maybe 64-bit has broken a few things and I need to start thinking about compiling a 32-bit binary?
I dunno... but some help/advice/discussion on the matter would be really helpful. Cheers :D