16 Mar 2012 16:41
Building Scala sources and running testsuite using partest
Geraint <geraintwjones <at> gmail.com>
2012-03-16 15:41:38 GMT
2012-03-16 15:41:38 GMT
I'm trying to run the testsuite supplied in scala-2.9.1-1-sources.tgz.
Can anybody point me at the documentation for how to build and test?
All I've been able to find so far are snippets in various forum
responses.
I worked out that I have to build the sources first, using ant. So I
downloaded ant 1.8.3. I also need to build under a version Java. So I
downloaded Java. In fact, I downloaded 2 versions of Java - version 6
and version 7 - from Oracle.
Building under Java 6 (and ant 1.8.3) works fine, and I'm able to run
the tests using partest (some of which fail).
However, buyilding under Java 7 fails. One or two comments suggested
that Scala doesn't support Java 7 yet. Is this right? Where is this
stated on the Scala website?
In addition to the errors that "ant build" throws out, I get a stack
trace right at the end.
BUILD FAILED
/apps/scala/scala-2.9.1-1-sources.oracle.java.7/build.xml:516:
java.lang.RuntimeException: Compilation failed because of an internal
compiler error; see the error output for details.
at scala.sys.package$.error(package.scala:27)
at scala.tools.ant.sabbus.ScalacFork.execute(ScalacFork.scala:
117)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
(Continue reading)
RSS Feed