On Mon, 2010-11-29 at 14:17 -0500, Marc Feeley wrote:
It will also help to do
% export GAMBC_CC_VERBOSE=1
at the shell so that subsequent invocations of gsc will report which programs are being executed by gsc (actually those executed by the gambc-cc.bat script executed by gsc):
OK, I think I may have all the information needed. This is what's passed to open-process:
(path: "/usr/local/Gambit-C/v4.6.0/bin/gambc-cc.bat" arguments: ("dyn") environment: ("GAMBCDIR_INCLUDE=/usr/local/Gambit-C/v4.6.0/include/" "BUILD_DYN_OUTPUT_FILENAME=/home/lucier/.gambit/lib/r6rs.o1" "BUILD_DYN_CC_OPTIONS=" "BUILD_DYN_LD_OPTIONS_PRELUDE=" "BUILD_DYN_LD_OPTIONS=" "BUILD_DYN_INPUT_FILENAMES=/tmp/r6rs-expand-1291069607/srfi-1-min.c /tmp/r6rs-expand-1291069607/srfi-99.c /tmp/r6rs-expand-1291069607/error.c /tmp/r6rs-expand-1291069607/srfi-69.c /tmp/r6rs-expand-1291069607/uri.c /tmp/r6rs-expand-1291069607/catalog.c /tmp/r6rs-expand-1291069607/compat-gambit.c /tmp/r6rs-expand-1291069607/runtime.c /tmp/r6rs-expand-1291069607/srfi-66.c /tmp/r6rs-expand-1291069607/core.c /tmp/r6rs-expand-1291069607/expander.c /tmp/r6rs-expand-1291069607/primitives.c /tmp/r6rs-expand-1291069607/r6rs.o1.c" "GAMBC_CC_VERBOSE=") stdout-redirection: #f directory: #f)
And this is the command that gambc-cc.bat runs, which fails with "collect2: cannot find 'ld'":
/pkgs/gcc-4.5.1/bin/gcc -fschedule-insns -march=native -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -rdynamic -shared -D___SINGLE_HOST -D___DYNAMIC -I"/usr/local/Gambit-C/v4.6.0/include/" -o "/home/lucier/.gambit/lib/r6rs.o1" /tmp/r6rs-expand-1291069607/srfi-1-min.c /tmp/r6rs-expand-1291069607/srfi-99.c /tmp/r6rs-expand-1291069607/error.c /tmp/r6rs-expand-1291069607/srfi-69.c /tmp/r6rs-expand-1291069607/uri.c /tmp/r6rs-expand-1291069607/catalog.c /tmp/r6rs-expand-1291069607/compat-gambit.c /tmp/r6rs-expand-1291069607/runtime.c /tmp/r6rs-expand-1291069607/srfi-66.c /tmp/r6rs-expand-1291069607/core.c /tmp/r6rs-expand-1291069607/expander.c /tmp/r6rs-expand-1291069607/primitives.c /tmp/r6rs-expand-1291069607/r6rs.o1.c
Any suggestions? For example, should the environment contain my path?
Brad