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

Cygwin #188

Open
peblpebl opened this issue Mar 28, 2019 · 4 comments
Open

Cygwin #188

peblpebl opened this issue Mar 28, 2019 · 4 comments

Comments

@peblpebl
Copy link

I am trying to run in mx in cygwin, but am getting:

WARNING: No platform-specific definition is available for library NINJA for your OS (cygwin)
library NINJA:
Library without "path" attribute must have a non-empty "urls" list attribute or "maven" attribute

when just doing mx update.

pebl@stationary /cygdrive/d/shared/git/mx
$ which ninja
/usr/bin/ninja
pebl@stationary /cygdrive/d/shared/git/mx
$ ninja --version
1.9.0
pebl@stationary /cygdrive/d/shared/git/mx
$ uname -a
CYGWIN_NT-6.1 stationary 3.0.4(0.338/5/3) 2019-03-16 09:50 x86_64 Cygwin

Adding

       "cygwin" : {
          "amd64" : {
            "urls" : ["https://github.com/ninja-build/ninja/releases/download/v{version}/ninja-win.zip"],
            "sha1" : "637cc6e144f5cc7c6388a30f3c32ad81b2e0442e"
          }
        },

to mx.mx/suite.py, seems to help, but I dont know if this is the right way.

@dougxc
Copy link
Member

dougxc commented Mar 29, 2019

@peblpebl thanks for submitting.
@pejovica does that fix look right?

@pejovica
Copy link
Member

@peblpebl I'm not completely sure what are you trying to do, but cygwin-amd64 should be a binary for Cygwin, and not for Windows. So, if you need a Cygwin ninja you could mark NINJA library as optional on Cygwin (like it is done for Solaris), in which case the binary from your environment will be picked up.

On the other hand, if you are trying to build for Windows (and only use Cygwin as a shell), you might be better off using the native Windows Python instead of the Cygwin one. It may happen that things will work better in that case.

@peblpebl
Copy link
Author

peblpebl commented Mar 31, 2019

I am trying to build a native image of a java project. Given win in not supported yet, I have a virtualbox with ubuntu that shares a drive between guest/host. When I see that is working, I want to try to see how far I get with a native image of windows. Secondly I want to see how fast I can get a R script to run (it uses some fortran libs). But I am currently stuck at mx eclipseinit.

@dougxc
Copy link
Member

dougxc commented Apr 1, 2019

@peblpebl we are now considering to remove cygwin environment support altogether: #189
Can you please confirm that mx works for you when run with a standard Windows python executable.

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