mx icon indicating copy to clipboard operation
mx copied to clipboard

mx fails with "no primary suite found"

Open ccleve opened this issue 6 years ago • 7 comments

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.

ccleve avatar Oct 14 '18 23:10 ccleve

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.

dougxc avatar Oct 15 '18 07:10 dougxc

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?

ccleve avatar Oct 15 '18 15:10 ccleve

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.

dougxc avatar Oct 15 '18 15:10 dougxc

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.

ccleve avatar Oct 15 '18 15:10 ccleve

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.

hamidelmaazouz avatar Sep 19 '20 22:09 hamidelmaazouz

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

psycjw-phd avatar Oct 25 '21 13:10 psycjw-phd

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

dougxc avatar Oct 25 '21 13:10 dougxc