scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
230 stars 21 forks source link

ant target "cldclib" does not build #176

Closed scabug closed 13 years ago

scabug commented 16 years ago

The build is complaining about ObjectOutputStream missing and finally runs into an internal compiler error: BUILD FAILED /Users/keiblin/opt/svn/scala-bundle/scala/build.xml:707: Compile failed because of an internal compiler error (object ScalaRunTime? does not have a member _hashCode); see the error output for details.

--- full ant output log --- ant clean.all Buildfile: build.xml [echo] Running SABBUS for scala-core...

ant-init:

clean.all: [delete] Deleting directory /Users/keiblin/opt/svn/scala-bundle/scala/build

BUILD SUCCESSFUL Total time: 12 seconds chat:/opt/svn/scala-bundle/scala keiblin$$ chat:/opt/svn/scala-bundle/scala keiblin$$ ant cldclib Buildfile: build.xml [echo] Running SABBUS for scala-core...

ant-init:

init: [exec] Result: 127 [echo] OS: UNIX (Mac OS X i386 10.4.10); [echo] Java: Java HotSpot(TM) Server VM 1.5.0_07-87 ('/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home'); [echo] Memory: 1024 MB; [echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006.

setup: [echo] Build number is '2.6.0.x.20071014-162544' [echo] Built Sonntag, 14 Oktober 2007, 16:25:44 (CEST) from SVN revision x

build.locker: [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/library [javac] Compiling 13 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/library [starr] Compiling 1 source file to /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/library [starr] Compiling 297 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/library [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/compiler [starr] Compiling 185 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/compiler [stopwatch] [timer.locker: 4:03.040 sec] [copy] Copying 5 files to /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/compiler [symlink] ln -s /Users/keiblin/opt/svn/scala-bundle/scala/lib/fjbg.jar /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/fjbg.jar [symlink] ln -s /Users/keiblin/opt/svn/scala-bundle/scala/lib/msil.jar /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/msil.jar [symlink] ln -s /Users/keiblin/opt/svn/scala-bundle/scala/lib/jline.jar /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/lib/jline.jar Warning: Reference locker.classpath has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may support referencing ids defined in non-executed targets. [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/locker/bin

setup.locker:

build: [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/library [javac] Compiling 13 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/library [locker] Compiling 1 source file to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/library [locker] Compiling 297 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/library [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/dbc [locker] Compiling 65 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/dbc [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/actors [javac] Compiling 6 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/actors [locker] Compiling 20 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/actors [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/compiler [locker] Compiling 185 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/compiler [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/partest [starr] Compiling 4 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/partest [stopwatch] [timer.quick: 5:38.795 sec] [copy] Copying 5 files to /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/compiler [symlink] ln -s /Users/keiblin/opt/svn/scala-bundle/scala/lib/fjbg.jar /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/fjbg.jar [symlink] ln -s /Users/keiblin/opt/svn/scala-bundle/scala/lib/msil.jar /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/msil.jar [symlink] ln -s /Users/keiblin/opt/svn/scala-bundle/scala/lib/jline.jar /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/lib/jline.jar Warning: Reference quick.classpath has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may support referencing ids defined in non-executed targets. [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/quick/bin

setup.quick:

cldc.sources: [mkdir] Created dir: /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc/src [copy] Copying 232 files to /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc/src [copy] Copying 24 files to /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc/src

cldclib: [javac] Compiling 11 source files to /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc [quick] Compiling 1 source file to /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc [quick] /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc/src/scala/List.scala:1228: error: not found: type ObjectOutputStream [quick] private def writeObject(out: ObjectOutputStream) { [quick] ^ [quick] /Users/keiblin/opt/svn/scala-bundle/scala/build/cldc/src/scala/List.scala:1234: error: not found: type ObjectInputStream [quick] private def readObject(in: ObjectInputStream) { [quick] ^ [quick] TypeHistory(parser:1,,null) [quick] { [quick]
[quick] } [quick] scala.tools.nsc.FatalError: object ScalaRunTime does not have a member _hashCode [quick] at scala.tools.nsc.symtab.Definitions$$definitions$$.getMember(Definitions.scala:332) [quick] at scala.tools.nsc.typechecker.SyntheticMethods$$class.forwardingMethod$$0(SyntheticMethods.scala:114) [quick] at scala.tools.nsc.typechecker.SyntheticMethods$$class.addSyntheticMethods(SyntheticMethods.scala:271) [quick] at scala.tools.nsc.Global$$analyzer$$.addSyntheticMethods(Global.scala:259) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typedClassDef(Typers.scala:1015) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed1(Typers.scala:2750) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3031) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed1(Typers.scala:2768) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3031) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3064) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typedStat$$0(Typers.scala:1512) [quick] at scala.tools.nsc.typechecker.Typers$$Typer$$$$anonfun$$59.apply(Typers.scala:1542) [quick] at scala.tools.nsc.typechecker.Typers$$Typer$$$$anonfun$$59.apply(Typers.scala:1542) [quick] at scala.List$$.loop$$0(List.scala:244) [quick] at scala.List$$.mapConserve(List.scala:261) [quick] at scala.List$$.loop$$0(List.scala:248) [quick] at scala.List$$.mapConserve(List.scala:261) [quick] at scala.List$$.loop$$0(List.scala:248) [quick] at scala.List$$.mapConserve(List.scala:261) [quick] at scala.List$$.loop$$0(List.scala:248) [quick] at scala.List$$.mapConserve(List.scala:261) [quick] at scala.List$$.loop$$0(List.scala:248) [quick] at scala.List$$.mapConserve(List.scala:261) [quick] at scala.List$$.loop$$0(List.scala:248) [quick] at scala.List$$.mapConserve(List.scala:261) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typedStats(Typers.scala:1542) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed1(Typers.scala:2746) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3031) [quick] at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:3064) [quick] at scala.tools.nsc.typechecker.Analyzer$$typerFactory$$$$anon$$1.apply(Analyzer.scala:40) [quick] at scala.tools.nsc.Global$$GlobalPhase.applyPhase(Global.scala:243) [quick] at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:231) [quick] at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:231) [quick] at scala.Iterator$$class.foreach(Iterator.scala:375) [quick] at scala.collection.mutable.ListBuffer$$$$anon$$0.foreach(ListBuffer.scala:255) [quick] at scala.tools.nsc.Global$$GlobalPhase.run(Global.scala:231) [quick] at scala.tools.nsc.Global$$Run.compileSources(Global.scala:533) [quick] at scala.tools.nsc.Global$$Run.compile(Global.scala:617) [quick] at scala.tools.ant.Scalac.execute(Scalac.scala:572) [quick] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [quick] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) [quick] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [quick] at java.lang.reflect.Method.invoke(Method.java:585) [quick] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [quick] at org.apache.tools.ant.Task.perform(Task.java:348) [quick] at org.apache.tools.ant.Target.execute(Target.java:357) [quick] at org.apache.tools.ant.Target.performTasks(Target.java:385) [quick] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) [quick] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) [quick] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [quick] at org.apache.tools.ant.Project.executeTargets(Project.java:1181) [quick] at org.apache.tools.ant.Main.runBuild(Main.java:698) [quick] at org.apache.tools.ant.Main.startAnt(Main.java:199) [quick] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [quick] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

BUILD FAILED /Users/keiblin/opt/svn/scala-bundle/scala/build.xml:707: Compile failed because of an internal compiler error (object ScalaRunTime does not have a member _hashCode); see the error output for details.

Total time: 10 minutes 5 seconds

scabug commented 16 years ago

Imported From: https://issues.scala-lang.org/browse/SI-176?orig=1 Reporter: Alexander Keiblinger (ake) Attachments:

scabug commented 16 years ago

Alexander Keiblinger (ake) said: Using the attached context diff it is possible to build the scala library for cldc 1.0. Some of the workarounds for cldc were outdated. But there is a problem left. In List.scala (methods private def writeObject(out: ObjectOutputStream) and private def readObject(in: ObjectInputStream)) a serialization mechanism is used that is not available on the cldc platform.

It would be useful to have a serialisation mechanism that builds on more fundamental java (or scala) mechanisms to stay compatible with J2SE and CLDC 1.0. Otherwise it is not possible to exchange list based data between mobile and non-mobile java applications.

scabug commented 16 years ago

Alexander Keiblinger (ake) said: cldc.diff for patching cldc lib source

scabug commented 16 years ago

@dragos said: well... cldc is in need of a maintainer.

scabug commented 16 years ago

@michelou said: Fixed in rev r13290.

scabug commented 15 years ago

@odersky said: Milestone 2.6.1 deleted