Hi all,
I'm fairly out of my depth here, trying to compile Gambit such that it
will cross-compile (on OS X) and produce executables that will run on
my old m68k-based Palm (err, actually ARM-based, but with some weird
caveats that make it easier to use 68k). There doesn't seem to be any
documentation on how to do such a thing, but grepping in the latest
source release implies that it can be done via the "--host" configure
option.
With the following configure command:
./configure --prefix=/Users/oisin/code/palm/scheme/gambit/
--host=m68k-palmos --enable-ansi-c --enable-char-size=2
--enable-single-host
(the enable-ansi-c and char-size=2 options were just a stab in the
dark and neither help nor hinder)
and the following make line (for wchar.h):
C_INCLUDE_PATH=/Users/oisin/.wine/drive_c/PalmOSCygwin/usr/include/ make
...I get hundreds of thousands of errors like this, before the build gives up:
/var/folders/ra/raN9YbS9GOKB9pULa-Z47E+++TI/-Tmp-/cc7yLvmh.s:193444:
Error: Value of 716162 too large for field of 2 bytes at 0x81dfa
/var/folders/ra/raN9YbS9GOKB9pULa-Z47E+++TI/-Tmp-/cc7yLvmh.s:193444:
Error: Signed .word overflow; switch may be too large; 716162 at
0x81dfa
.....
make[1]: *** [_io.o] Error 1
make: *** [all-recursive] Error 1
Maybe this is because the 68k only has a 16-bit word size. Does it
mean that Gambit C can't be build to compile for the 68k, or is there
a way to do it?
thanks,
Oisín