[gambit-list] Gambit-C and cygwin

Marc Feeley feeley at iro.umontreal.ca
Fri Mar 18 13:58:07 EDT 2011


The problem appears to be in the implementation of shell-command (which in turn calls open-process).

I don't have a fix yet.  Unfortunately, as part of the compilation process, "gsc -obj" and "gsc -exe" need to call open-process (to run the script gambc-cc.bat which actually calls the C compiler).

I will investigate.

Also, to compile the .c files you need to pass a bunch of options to the C compiler.  That information is found in bin/gambc-cc.bat .  You can also read the manual, but it may contain stale information regarding cygwin.

Marc


On 2011-03-17, at 2:25 PM, Valeriya Pudova wrote:

> Hello,
> 
> 
> I have compiled with cygwin the latest gambit version (4.6.0). Was used sequence
> 
> ./configure --enable-single-host 
> make
> make install
> 
> The "make check" stop in infinity loop after:
> ../gsi/gsi -:h4000,~~bin=../bin,~~lib=../lib,~~include=../include -f error.scm < error.scm > test2.out
> 
> Anyway. After installation the "gsi" works. "gsc -c" also. 
> 
> But "gsi -obj" or "gsc -exe" dying in infinity loop 
> (can be terminated by ctrl+c with message *** INTERRUPTED IN ##make-device-port-from-single-device)
> 
> If try compile file .c file by gcc there is error:
>  undefined reference to `_WinMain at 16'
> 
> Also log has allot of 
> /tmp/cco0Sj28.o:test.c:(.text+0x71): undefined reference to `____gstate'
> /tmp/cco0Sj28.o:test.c:(.text+0x84): undefined reference to `____G_fac'
> /tmp/cco0Sj28.o:test.c:(.text+0xbc): undefined reference to `____gstate'
> /tmp/cco0Sj28.o:test.c:(.text+0xd4): undefined reference to `____G_fac'
> ....
> 
> Any ideas?
> 
> -- Valeriya
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list



More information about the Gambit-list mailing list