Here's a weird one:
Using the version of Gambit 4.6.0 that I built using Marc's script (which simultaneously builds Gambit for Mac OS X, iOS, and the iOS simulator), this works just peachy fine:
Makefile:
GAMBIT_HOME=/usr/local/gambit/MacOSX GSC=${GAMBIT_HOME}/bin/gsc GSC_INC=${GAMBIT_HOME}/include GSC_LIB=${GAMBIT_HOME}/lib
compile_scheme: ${GSC} -:~~bin=${GSC_BIN},~~lib=${GSC_LIB},~~include=${GSC_INC} -f -link HelloGambit.scm
However, if I change the first line to:
GAMBIT_HOME=/usr/local/gambit/iPhoneSimulator
...gsc can no longer find the source file I'm compiling:
cairagor:libHelloGambit mikel$ make /usr/local/gambit/iPhoneSimulator/bin/gsc -:~~bin=,~~lib=/usr/local/gambit/iPhoneSimulator/lib,~~include=/usr/local/gambit/iPhoneSimulator/include -f -link HelloGambit.scm *** ERROR -- Can't find file "/Users/mikel/Projects/libHelloGambit/src/simios/libHelloGambit/HelloGambit.scm" make: *** [compile_scheme] Error 70
Yes, I did check carefully to ensure that the file does, in fact, exist at the path "/Users/mikel/Projects/libHelloGambit/src/simios/libHelloGambit/HelloGambit.scm"
--me