Build problem?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build problem?

Alan Lawrence
Hi,

I just checked out scala from subversion (svn co http://
lampsvn.epfl.ch/svn-repos/scala/scala/trunk scala) and tried to build  
it (i.e., invoke "ant"), and it fails with a stack trace somewhere in  
build: (see below).

Am wondering if anyone has any ideas what I might have done - I'm  
using the latest version of scalac (2.1.3), ant (1.6.5), and java 1.5  
on mac os x 10.4.6....???

Many thanks,

Alan
----------
c169:~/dev/scala alan$ ant
Buildfile: build.xml
      [echo] Running SABBUS for scala-core...

init:
      [echo] OS:   UNIX (Mac OS X ppc 10.4.6);
      [echo] Java: 1.5.0_06 ('/System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home');
      [echo] JVM:  Java HotSpot(TM) Client VM 1.5.0_06-64;
      [echo] Ant:  Apache Ant version 1.6.5 compiled on June 2 2005.

setup:
     [mkdir] Created dir: /Users/alan/dev/scala/logs

build.locker:
     [mkdir] Created dir: /Users/alan/dev/scala/build/locker/library
     [javac] Compiling 20 source files to /Users/alan/dev/scala/build/
locker/library
     [starr] Compiling 2 source files to /Users/alan/dev/scala/build/
locker/library
     [starr] Compiling 183 source files to /Users/alan/dev/scala/
build/locker/library
     [mkdir] Created dir: /Users/alan/dev/scala/build/locker/compiler
     [starr] Compiling 148 source files to /Users/alan/dev/scala/
build/locker/compiler
[stopwatch] [timer.locker: 6:11.250 sec]
      [copy] Copying 9 files to /Users/alan/dev/scala/build/locker/
compiler
   [symlink] ln -s /Users/alan/dev/scala/lib/fjbg.jar /Users/alan/dev/
scala/build/locker/fjbg.jar
     [mkdir] Created dir: /Users/alan/dev/scala/build/locker/exec

setup.locker:

build:
     [mkdir] Created dir: /Users/alan/dev/scala/build/quick/library
     [javac] Compiling 20 source files to /Users/alan/dev/scala/build/
quick/library
    [locker] Compiling 2 source files to /Users/alan/dev/scala/build/
quick/library
    [locker] java.lang.NullPointerException
    [locker]     at scala.collection.mutable.HashTable$$anon$0.scan
(HashTable.scala:102)
    [locker]     at scala.collection.mutable.HashTable$$anon$0.next
(HashTable.scala:99)
    [locker]     at scala.collection.mutable.DefaultMapModel$$anon
$0.next(DefaultMapModel.scala:44)
    [locker]     at scala.collection.mutable.DefaultMapModel$$anon
$0.next(DefaultMapModel.scala:41)
    [locker]     at scala.collection.Map$$anon$1.next(Map.scala:98)
    [locker]     at scala.Iterator$class.foreach(Iterator.scala:285)
    [locker]     at scala.collection.Map$$anon$1.foreach(Map.scala:95)
    [locker]     at scala.tools.nsc.backend.jvm.GenJVM$JvmPhase.run
(GenJVM.scala:41)
    [locker]     at scala.tools.nsc.Global$Run.compileSources
(Global.scala:432)
    [locker]     at scala.tools.nsc.Global$Run.compile(Global.scala:490)
    [locker]     at scala.tools.ant.Scalac.execute(Scalac.scala:469)
    [locker]     at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:275)
    [locker]     at org.apache.tools.ant.Task.perform(Task.java:364)
    [locker]     at org.apache.tools.ant.Target.execute(Target.java:341)
    [locker]     at org.apache.tools.ant.Target.performTasks
(Target.java:369)
    [locker]     at org.apache.tools.ant.Project.executeSortedTargets
(Project.java:1216)
    [locker]     at org.apache.tools.ant.Project.executeTarget
(Project.java:1185)
    [locker]     at  
org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:40)
    [locker]     at org.apache.tools.ant.Project.executeTargets
(Project.java:1068)
    [locker]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [locker]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [locker]     at org.apache.tools.ant.launch.Launcher.run
(Launcher.java:246)
    [locker]     at org.apache.tools.ant.launch.Launcher.main
(Launcher.java:67)

BUILD FAILED
/Users/alan/dev/scala/build.xml:566: Compile failed because of an  
internal compiler error (no error message provided); see the error  
output for details.

Total time: 7 minutes 25 seconds
c169:~/dev/scala alan$ which scala
/usr/local/bin/scala
c169:~/dev/scala alan$ scala -version
Scala runtime version 2.1.3 -- (c) 2002-2006 LAMP/EPFL
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-111)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)


Reply | Threaded
Open this post in threaded view
|

Re: Build problem?

Colin Perkins
On 14 Apr 2006, at 15:20, Alan Lawrence wrote:
> I just checked out scala from subversion (svn co http://
> lampsvn.epfl.ch/svn-repos/scala/scala/trunk scala) and tried to  
> build it (i.e., invoke "ant"), and it fails with a stack trace  
> somewhere in build: (see below).
>
> Am wondering if anyone has any ideas what I might have done - I'm  
> using the latest version of scalac (2.1.3), ant (1.6.5), and java  
> 1.5 on mac os x 10.4.6....???

No solution, but I have the same environment, and see the same  
problem here.

Colin
Reply | Threaded
Open this post in threaded view
|

Re: Build problem?

Gilles Dubochet-2
In reply to this post by Alan Lawrence
Bonjour,

> I just checked out scala from subversion (svn co http://
> lampsvn.epfl.ch/svn-repos/scala/scala/trunk scala) and tried to build  
> it (i.e., invoke "ant"), and it fails with a stack trace somewhere in  
> build: (see below).
>
> Am wondering if anyone has any ideas what I might have done - I'm  
> using the latest version of scalac (2.1.3), ant (1.6.5), and java 1.5  
> on mac os x 10.4.6....???

Yes, all Macs seem to suffer from the same problem. Somehow the 1.5 JRE
on Mac OS X is buggy. It seems to randomly loose references to object,
causing null pointer exceptions.

If someone wants to file a bug report with Apple, that would be great.

In the meantime, you should try compiling with JRE 1.4 (by setting the
JAVACMD environment variable before running the Ant script).

By the way, if someone tried compiling Scala on a Intel Mac with JRE
1.5, I would be interested to know how this works.

Cheers,
Gilles.