Hi Michael,
Recently I tried to build Scala on Windows and faced the same error
(well, I assume it's the same, since, as Adriaan says, you haven't
posted the entire error log). My problem was in "Program Files"
fragment of the path to either Ant or Scala. IIRC, when I changed
ANT_HOME to C:\PROGRA~2\ant\ and SCALA_HOME to C:\PROGRA~2\Scala,
everything started working again.
Also, I got errors when trying to build Scala with JDK 1.7. It has
some weird problems with Swing, so I switched to JDK 1.6, and
everything was fine. I've heard that there's a separate branch for
building with JDK 1.7, but didn't check this myself.
Cheers,
Eugene
On Nov 2, 4:20 pm, "Thorpe, Michael" <
michael.thorp...@imperial.ac.uk>
wrote:
> Hi,
>
> I'm trying to build the latest build of the scala compiler on windows, which is currently failing with:
>
> [scalacfork] Compiling 103 files to c:\Users\Michael\scala\build\quick\classes\library
>
> BUILD FAILED
> c:\Users\Michael\scala\build.xml:517: 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:144)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:390)
> at org.apache.tools.ant.Target.performTasks(Target.java:411)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)