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

mx fails with "no primary suite found" #163

Open
ccleve opened this issue Oct 14, 2018 · 7 comments
Open

mx fails with "no primary suite found" #163

ccleve opened this issue Oct 14, 2018 · 7 comments

Comments

@ccleve
Copy link

ccleve commented Oct 14, 2018

All mx commands fail on my system with:

"no primary suite found for < command name >"

I'm on Windows with the latest release, but I've confirmed it happens on Ubuntu as well.

Bigger problem: there is no documentation anywhere on what a suite is. There is some mention of suites here: https://github.com/graalvm/mx, but it's not enough. Not sure how to fix the problem.

@dougxc
Copy link
Member

dougxc commented Oct 15, 2018

Hi @ccleve , I admit that the documentation for mx is somewhat lacking. We will try to address this over time.
What directory are you executing mx in? It needs to be in a directory corresponding to a suite (i.e. a directory that contains a mx.<suite name> directory). The message you're getting is similar to what happens if you run make in a directory without a make file.

@ccleve
Copy link
Author

ccleve commented Oct 15, 2018

The only documentation I can find on what a suite is is here: https://github.com/graalvm/mx. It's not enough for me to create one and make it work. Is there anything that describes what goes into suite.py?

@dougxc
Copy link
Member

dougxc commented Oct 15, 2018

The only other documentation is in https://github.com/oracle/graal/blob/master/compiler/README.md#building-graal. It's best to look at existing suites such as https://github.com/oracle/graal/tree/master/compiler/mx.compiler.
It would also help to know what you are trying to do.

@ccleve
Copy link
Author

ccleve commented Oct 15, 2018

I get it now. Suite.py is like a Maven pom. Still would be helpful to have reference docs on the format.

All I was trying to do is "mx ideinit" to set up a new project.

@hamidelmaazouz
Copy link

Is there any way to generate it ? What about the other files and directories that come with it ? I am also trying it out and have no clue what all those sections mean.

@psycjw-phd
Copy link

Are there any updates to this? Still cant find any documentation on how to create a primary mx suite

@dougxc
Copy link
Member

dougxc commented Oct 25, 2021

Maybe https://github.com/graalvm/mx#suites helps.

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

4 participants