[MITgcm-support] how to build the mitgcm code on cygwin?

brainf brainf at 163.com
Sun May 21 11:06:47 EDT 2006


Hi Ed Hill,
  Thx very much.
I have solved the problem on cygwin,
Cygwin doesn't have the header "ucontext.h", But I found this file writed by sb. It works.


======= At 2006-05-20, 22:50:08 you wrote: =======

>
>On Sat, 2006-05-20 at 14:56 +0800, brainf wrote:
>> I can build the code on debain
>> When I compile the code on cygwin ,it has some error following:
>> 
>> ********************* error start***************************
>> $ make
>> gcc  -D_BYTESWAPIO -DWORDLENGTH=4 -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME -DHAVE
>> _CLOC -DHAVE_SETRLSTK -DHAVE_STAT  -I.  -c sigreg.c
>> sigreg.c:26:22: ucontext.h: No such file or directory
>> sigreg.c:31: warning: "struct ucontext" declared inside parameter list
>> sigreg.c:31: warning: its scope is only this definition or declaration, which is
>>  probably not what you want
>> make: *** [sigreg.o] Error 1
>> 
>> ******************** error     end  ************************
>> 
>> How to install it on cygwin?
>
>
>Hi "brainf",
>
>Your cygwin install doesn't include a full development environment.  It
>lacks the headers that declare data structures for signal registration.
>Those headers are probably available (or installable) within cygwin
>since they are needed by a vast number of packages (not least of which
>is bash).
>
>So, some things that can be done are:
>
> 1) figure out how to install those headers (probably a quick
>    "apt-get ..." command but I don't know which package
>    provides them),
>
> 2) by hand, remove all instances of "sigreg.c" from the Makefile
>    following the "make depend" step, or
>
> 3) quit using the half-baked cygwin environment and run MITgcm
>    on an actual Linux or Unix machine.
>
>I recommend option #3.
>
>Ed
>
>-- 
>Edward H. Hill III, PhD
>office:  MIT Dept. of EAPS 54-1424;  77 Massachusetts Ave.
>             Cambridge, MA 02139-4307
>emails:  eh3 at mit.edu                ed at eh3.com
>URLs:    http://web.mit.edu/eh3/    http://eh3.com/
>phone:   617-253-0098
>fax:     617-253-4464
>
>
>_______________________________________________
>MITgcm-support mailing list
>MITgcm-support at mitgcm.org
>http://mitgcm.org/mailman/listinfo/mitgcm-support
>

= = = = = = = = = = = = = = = = = = = =
			

Best regards.				 
brainf
brainf at 163.com
2006-05-21






More information about the MITgcm-support mailing list