robovm / robovm-gradle-plugin

RoboVM Gradle plugin
45 stars 24 forks source link

Crash when building Scala project #11

Closed AbeJellinek closed 10 years ago

AbeJellinek commented 10 years ago

I'm trying to compile a project written in Scala with this plugin, but LLVM always crashes after a few seconds with a slightly cryptic message:

20:38:51.450 [INFO] [org.gradle.api.Task] Compiling RoboVM app, this could take a while, especially the first time round
20:39:03.637 [DEBUG] [org.gradle.api.Task] Compiling scala.concurrent.forkjoin.ForkJoinPool (ios x86)
> Building 95% > :gdx-ios:launchIPhoneSimulatorLLVM ERROR: ran out of registers during register allocation

I've deleted my RoboVM cache, updated LLVM (though I doubt it uses system LLVM), everything. I know that it works when I invoke RoboVM manually from the command line. What could the problem possibly be?

jtakakura commented 10 years ago

Have you tested small program (for example, Hello World or sample app like https://github.com/robovm/robovm-sample-ios-app)? (Maybe this error was occurred using libgdx.) I think the cause of this error is not this plugin if you could run from the command line.

AbeJellinek commented 10 years ago

I have tried it with very simple programs, and the same bug occurs, but yeah, it seems to be a bug in RoboVM. Sorry for the mistaken report.