[racket-dev] Errors compiling on cygwin

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Oct 31 11:39:00 EDT 2014

Yes, our Cygwin support has rotted in a variety of small but exotic
ways.

I'm in the process of fixing the problems. The enclosed patch applies
to the development branch or the v6.1.1 release candidate, and it might
work for you, but I'm still checking it.

The fixed-up implementation will be limited in various ways, such as
not supporting places or futures, but I should be able to make all the
basics work.

At Fri, 31 Oct 2014 15:31:32 +0000, Saurabh T wrote:
> 
> >  Hi,
> > 
> > I downloaded racket-6.1-src-builtpkgs.tgz. According to src/README, this 
> > should be compilable on cygwin with --enable-shared. I did not have 
> > success doing so.
> > 
> > The first problem was dynsrc/mzdyn.c failed to 
> > compile due to "expected specifier-qualifier-list before ‘(’ token" 
> > error at schemex.h:1004. The line here reads
> > (*scheme_jit_find_code_end)(void *p);
> > I grepped some and stuck a void* in front of it, and compilation went ahead.
> > 
> > But then it failed with "'WINDOWS_DEFAULT_STACK_SIZE' undeclared (first use 
> in this function)" at eval.c:546
> > intptr_t sz = WINDOWS_DEFAULT_STACK_SIZE;
> 
> To update, I went ahead and copied the macro from where it was defined for 
> windows over to the cygwin section. The next errors were due to three 
> consecutive assignments in schemex.inc that were accessing undefined functions 
> (ones related to "freeze" or "frozen" - unfortunately I don't have the code 
> right now), so I commented those lines out. Now I have a successful link, 
> except it segfaults during make install. This is because this target runs the 
> racketcgc (spelling?) executable, which immediately seg faults (I tried running 
> it in the shell to be sure). 
> 
> I hope someone has more clues about this. Thank you.
>  
> > I
> >  am at a loss at this point. Is racket not expected to compile on 
> > cygwin? If so, can someone remove the cygwin parts in src/README?
> > 
> > Thank you. 		 	   		  
> > _________________________
> >   Racket Developers list:
> >   http://lists.racket-lang.org/dev
>  		 	   		  _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fixups-for-compiling-on-Cygwin.patch
Type: application/octet-stream
Size: 17629 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20141031/2a01dce1/attachment-0001.obj>

Posted on the dev mailing list.