# ATS and Cygwin

**URL:** https://discourse.ats-lang.org/t/ats-and-cygwin/644
**Category:** Google Group
**Created:** [December 11, 2014, 8:16pm UTC](https://discourse.ats-lang.org/t/ats-and-cygwin/644 "2014-12-11T20:16:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)
#### Post date: [December 11, 2014, 8:16pm UTC](https://discourse.ats-lang.org/t/ats-and-cygwin/644/1 "2014-12-11T20:16:10Z")

</div>

Just want to leave a note here.

I bootstrapped ATS2 using ATS1 on Cygwin-32 today  
and also tested the build by issuing the following command-line:

make -C ${PATSHOME}/doc

It was all very smooth.

I did not have access to Cygwin-64.

---

<div class="post-metadata">

### Author: ![Brandon\_Barker](https://sea1.discourse-cdn.com/flex019/user_avatar/discourse.ats-lang.org/brandon_barker/32/61_2.png) [@Brandon\_Barker](https://discourse.ats-lang.org/u/Brandon_Barker)
#### Post date: [December 12, 2014, 6:17pm UTC](https://discourse.ats-lang.org/t/ats-and-cygwin/644/2 "2014-12-12T18:17:42Z")

</div>

Say you want to call patscc or patsopt from a non cygwin environment in  
Windows. I am trying to do this with IntelliJ. Currently, I get the  
following command and result:

Starting process ‘command  
‘C:\cygwin64\home\brand\_000\ATS-Postiats/bin/patscc’’. Working directory:  
C:\cygwin64\home\brand\_000\BIBCalc Command:  
C:\cygwin64\home\brand\_000\ATS-Postiats/bin/patscc -D\_GNU\_SOURCE  
-DATS\_MEMALLOC\_LIBC -fPIC -IC:\cygwin64\home\brand\_000\ATS-Postiats  
-IC:\cygwin64\home\brand\_000\ATS-Postiats/ccomp/runtime -IIATS  
C:\cygwin64\home\brand\_000\ATS-Postiats-contrib/contrib -c  
Calculator\_controller.dats  
Successfully started process ‘command  
‘C:\cygwin64\home\brand\_000\ATS-Postiats/bin/patscc’’  
fopen: No such file or directory  
exit(ATS): [fopen(“/home/brand\_000/BIBCalc/C:\cygwin64\home\brand\_000\ATS-Postiats/prelude/params.hats”,  
“r”)] failed

Is there anything obviously (or not so obviously) wrong with how patscc is  
being called that is making it prepend the CWD to search paths internal to  
patscc (or patsopt)?On Thursday, December 11, 2014 3:23:19 PM UTC-5, Brandon Barker wrote:

> I’ve been using it on Cygwin-64, generally without trouble.
> 
> On Thu, Dec 11, 2014 at 3:16 PM, gmhwxi [gmh...@gmail.com](mailto:gmh...@gmail.com) wrote:
> 
> > Just want to leave a note here.
> > 
> > I bootstrapped ATS2 using ATS1 on Cygwin-32 today  
> > and also tested the build by issuing the following command-line:
> > 
> > make -C ${PATSHOME}/doc
> > 
> > It was all very smooth.
> > 
> > I did not have access to Cygwin-64.
> > 
> > –  
> > You received this message because you are subscribed to the Google Groups  
> > “ats-lang-users” group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com).  
> > To post to this group, send email to [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com).  
> > Visit this group at [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com](https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> –  
> Brandon Barker  
> [brandon...@gmail.com](mailto:brandon...@gmail.com)

---

<div class="post-metadata">

### Author: ![gmhwxi](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gmhwxi](https://discourse.ats-lang.org/u/gmhwxi)
#### Post date: [December 12, 2014, 6:30pm UTC](https://discourse.ats-lang.org/t/ats-and-cygwin/644/3 "2014-12-12T18:30:07Z")

</div>

I think the reason is that 'C:\cygwin64\home\brand\_000' was not treated as  
an absolute path by the code.  
Maybe you could create some symbolic links to address the issue?On Fri, Dec 12, 2014 at 1:17 PM, Brandon Barker [brandon...@gmail.com](mailto:brandon...@gmail.com) wrote:

> Say you want to call patscc or patsopt from a non cygwin environment in  
> Windows. I am trying to do this with IntelliJ. Currently, I get the  
> following command and result:
> 
> Starting process ‘command  
> ‘C:\cygwin64\home\brand\_000\ATS-Postiats/bin/patscc’’. Working directory:  
> C:\cygwin64\home\brand\_000\BIBCalc Command:  
> C:\cygwin64\home\brand\_000\ATS-Postiats/bin/patscc -D\_GNU\_SOURCE  
> -DATS\_MEMALLOC\_LIBC -fPIC -IC:\cygwin64\home\brand\_000\ATS-Postiats  
> -IC:\cygwin64\home\brand\_000\ATS-Postiats/ccomp/runtime -IIATS  
> C:\cygwin64\home\brand\_000\ATS-Postiats-contrib/contrib -c  
> Calculator\_controller.dats  
> Successfully started process ‘command  
> ‘C:\cygwin64\home\brand\_000\ATS-Postiats/bin/patscc’’  
> fopen: No such file or directory  
> exit(ATS): [fopen(“/home/brand\_000/BIBCalc/C:\cygwin64\home\brand\_000\ATS-Postiats/prelude/params.hats”,  
> “r”)] failed
> 
> Is there anything obviously (or not so obviously) wrong with how patscc is  
> being called that is making it prepend the CWD to search paths internal to  
> patscc (or patsopt)?
> 
> On Thursday, December 11, 2014 3:23:19 PM UTC-5, Brandon Barker wrote:
> 
> > I’ve been using it on Cygwin-64, generally without trouble.
> > 
> > On Thu, Dec 11, 2014 at 3:16 PM, gmhwxi [gmh...@gmail.com](mailto:gmh...@gmail.com) wrote:
> > 
> > > Just want to leave a note here.
> > > 
> > > I bootstrapped ATS2 using ATS1 on Cygwin-32 today  
> > > and also tested the build by issuing the following command-line:
> > > 
> > > make -C ${PATSHOME}/doc
> > > 
> > > It was all very smooth.
> > > 
> > > I did not have access to Cygwin-64.
> > > 
> > > –  
> > > You received this message because you are subscribed to the Google  
> > > Groups “ats-lang-users” group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com).  
> > > To post to this group, send email to [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com).  
> > > Visit this group at [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > –  
> > Brandon Barker  
> > [brandon...@gmail.com](mailto:brandon...@gmail.com)
> 
> –  
> You received this message because you are subscribed to the Google Groups  
> “ats-lang-users” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com).  
> To post to this group, send email to [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com).  
> Visit this group at [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/ats-lang-users/2c99f864-8757-4d9e-8385-45a6c09ce9df%40googlegroups.com](https://groups.google.com/d/msgid/ats-lang-users/2c99f864-8757-4d9e-8385-45a6c09ce9df%40googlegroups.com)  
> [https://groups.google.com/d/msgid/ats-lang-users/2c99f864-8757-4d9e-8385-45a6c09ce9df%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/ats-lang-users/2c99f864-8757-4d9e-8385-45a6c09ce9df%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .

---

<div class="post-metadata">

### Author: ![Brandon\_Barker](https://sea1.discourse-cdn.com/flex019/user_avatar/discourse.ats-lang.org/brandon_barker/32/61_2.png) [@Brandon\_Barker](https://discourse.ats-lang.org/u/Brandon_Barker)
#### Post date: [December 11, 2014, 8:22pm UTC](https://discourse.ats-lang.org/t/ats-and-cygwin/644/4 "2014-12-11T20:22:57Z")

</div>

I’ve been using it on Cygwin-64, generally without trouble.On Thu, Dec 11, 2014 at 3:16 PM, gmhwxi [gmh...@gmail.com](mailto:gmh...@gmail.com) wrote:

> Just want to leave a note here.
> 
> I bootstrapped ATS2 using ATS1 on Cygwin-32 today  
> and also tested the build by issuing the following command-line:
> 
> make -C ${PATSHOME}/doc
> 
> It was all very smooth.
> 
> I did not have access to Cygwin-64.
> 
> –  
> You received this message because you are subscribed to the Google Groups  
> “ats-lang-users” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [ats-lang-user...@googlegroups.com](mailto:ats-lang-user...@googlegroups.com).  
> To post to this group, send email to [ats-lan...@googlegroups.com](mailto:ats-lan...@googlegroups.com).  
> Visit this group at [http://groups.google.com/group/ats-lang-users](http://groups.google.com/group/ats-lang-users).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com](https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com)  
> [https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/ats-lang-users/e55be1b7-60f4-4006-8570-bd56eee93572%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .

Brandon Barker  
[brandon...@gmail.com](mailto:brandon...@gmail.com)
