Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on cygwin fails #28891

Closed
mintty opened this issue Aug 25, 2018 · 4 comments
Closed

Building on cygwin fails #28891

mintty opened this issue Aug 25, 2018 · 4 comments

Comments

@mintty
Copy link

mintty commented Aug 25, 2018

Building on cygwin (native, not for MinGW) fails:

Makefile:303: target '/home/towo/tmp/julia/usr/bin/lib.dll' does not exist
cp /home/towo/tmp/julia/usr/bin
/bin/cp: missing destination file operand after '/home/towo/tmp/julia/usr/bin'
Try '/bin/cp --help' for more information.
make: *** [Makefile:303: /home/towo/tmp/julia/usr/bin/lib.dll] Error 1

@Keno
Copy link
Member

Keno commented Aug 26, 2018

Cygwin is not a supported platform. We do however recognize the cygwin tty names, so please try a native build for your purposes.

@mintty
Copy link
Author

mintty commented Aug 26, 2018

It's not my purpose but your's. In #7267, the Julia community discusses to integrate with a better terminal, considering mintty. This would be seamless if Julia were running on Cygwin.
As you support Linux, I see no essential obstacles to support Cygwin as well.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Aug 26, 2018

Hi! Are you the real MinTTY? There's no need to build Julia against the cygwin dll to get seamless support with MinTTY—it's already fully integrated (as long as we are able to exec the stty.exe binary that's usually shipped alongside it). From perusing #7267, the obstacle with shipping MinTTY has come from its reliance on some posix compatibility layer (e.g. cygwin1.dll) causing packaging headaches when integrating with software that uses a different version of it (e.g. when we used to ship with Git for Windows). Personally, I almost exclusively use Julia on Windows through MinTTY (installed via Cygwin).

Btw, dup #6925 (and others), so I'm going to try to fork this discussion thread back to #7267

@vtjnash vtjnash closed this as completed Aug 26, 2018
@mintty
Copy link
Author

mintty commented Aug 27, 2018

Ah, so julia calls stty raw -echo onlcr -ocrnl opost and catches ^C, ^D from the tty, thus avoiding the signal handling incompatibility. Assumedly it also checks the environment (TERM, LC_*) to adapt properly.
That's fine.
Maybe a small how-to entry on the project page might teach people that this integration works already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants