"Bradley Lucier" wrote:
OK, thanks, now I end with
/pkgs/gcc-4.5.1/bin/gcc [...] collect2: cannot find 'ld'
If you do a search for this error message you will find a number of discussions about its possible origin. Are you actually able to compile and link a plain C source file? Yours may not be a Gambit-related problem...
Afficher les réponses par date
Interesting, ... when I run the offending command in my shell (tcsh) then it completes just fine and creates ~/.gambit/lib/r6rs.o1. This is the command in the compile script that generates the "can't find ld" error:
(gambc-cc "dyn" output: (path-expand (string-append r6rs-result ".o1")) input-files: (append (map (lambda (f) (string-append f ".c")) modules) (list link-file)))
I wonder what's going on ... Now I'm lucky in that it appears that this is the last thing in the "compile" script. (Another reason to like make, you can build an intermediate result by hand if necessary and then continue with the rest of the make process.)
Brad
On Mon, 2010-11-29 at 15:44 -0500, Bradley Lucier wrote:
(gambc-cc "dyn" output: (path-expand (string-append r6rs-result ".o1")) input-files: (append (map (lambda (f) (string-append f ".c")) modules) (list link-file)))
I see now that gambc-cc is defined in primitives.scm as a "smart" compilation command and that perhaps it isn't getting the environment right. I'll have to look at it some more.
Brad