mx
mx copied to clipboard
mx fails with "no primary suite found"
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.
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.
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?
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.
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.
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.
Are there any updates to this? Still cant find any documentation on how to create a primary mx suite
Maybe https://github.com/graalvm/mx#suites helps.