- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Command-line Build of Library fails
Wed, 2011-03-16, 16:47
Hi,
Latest revision, building "src/library" on the command line using locker compiler fails for me.Error below. (I get the same failure within IntelliJ).
However, the sbt (and according to Jenkins, also the Ant) build works.
I checked out the library source from February 24, and those i could successfully compileusing the same, latest locker compiler.
I'm not sure where to look, it is probably a recent change in the library sources that triggers the error. I suspect also a connection recent changes in generic signatures, since it's triggeredin the method "addGenericSignature".
Lukas
java -Xmx1024m -cp lib/fjbg.jar:lib/msil.jar:lib/forkjoin.jar:target/locker/classes/library:target/locker/classes/compiler/ scala.tools.nsc.Main -cp lib/forkjoin.jar -d sandbox/lib/ -sourcepath src/library `find src/library -name *.scala`
Fails in GenJVM:
error: java.lang.Error: A in trait TraversableViewLike cannot be instantiated from [+A,+Coll,+This <: scala.collection.TraversableView[A,Coll] with scala.collection.TraversableViewLike[A,Coll,This]]scala.collection.TraversableViewLike[A,Coll,This] at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:35) at scala.tools.nsc.symtab.Types$AsSeenFromMap.throwError$1(Types.scala:3389) at scala.tools.nsc.symtab.Types$AsSeenFromMap.instParam$1(Types.scala:3392) at scala.tools.nsc.symtab.Types$AsSeenFromMap.toInstance$1(Types.scala:3403) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3419) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3289) at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3114)
[....]
at scala.tools.nsc.symtab.Types$Type.asSeenFrom(Types.scala:544) at scala.tools.nsc.symtab.Types$Type.memberInfo(Types.scala:558) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.symtab.SymbolTable.atPhase(SymbolTable.scala:96) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.addGenericSignature(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:774)
Latest revision, building "src/library" on the command line using locker compiler fails for me.Error below. (I get the same failure within IntelliJ).
However, the sbt (and according to Jenkins, also the Ant) build works.
I checked out the library source from February 24, and those i could successfully compileusing the same, latest locker compiler.
I'm not sure where to look, it is probably a recent change in the library sources that triggers the error. I suspect also a connection recent changes in generic signatures, since it's triggeredin the method "addGenericSignature".
Lukas
java -Xmx1024m -cp lib/fjbg.jar:lib/msil.jar:lib/forkjoin.jar:target/locker/classes/library:target/locker/classes/compiler/ scala.tools.nsc.Main -cp lib/forkjoin.jar -d sandbox/lib/ -sourcepath src/library `find src/library -name *.scala`
Fails in GenJVM:
error: java.lang.Error: A in trait TraversableViewLike cannot be instantiated from [+A,+Coll,+This <: scala.collection.TraversableView[A,Coll] with scala.collection.TraversableViewLike[A,Coll,This]]scala.collection.TraversableViewLike[A,Coll,This] at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:35) at scala.tools.nsc.symtab.Types$AsSeenFromMap.throwError$1(Types.scala:3389) at scala.tools.nsc.symtab.Types$AsSeenFromMap.instParam$1(Types.scala:3392) at scala.tools.nsc.symtab.Types$AsSeenFromMap.toInstance$1(Types.scala:3403) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3419) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3289) at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3114)
[....]
at scala.tools.nsc.symtab.Types$Type.asSeenFrom(Types.scala:544) at scala.tools.nsc.symtab.Types$Type.memberInfo(Types.scala:558) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.symtab.SymbolTable.atPhase(SymbolTable.scala:96) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.addGenericSignature(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:774)
Wed, 2011-03-16, 17:17
#2
Re: Command-line Build of Library fails
uhoh... might want to turn the siren of https://lampsvn.epfl.ch/trac/scala/ticket/4305 back on...
adriaan
On Wed, Mar 16, 2011 at 4:37 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:
adriaan
On Wed, Mar 16, 2011 at 4:37 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:
Hi,
Latest revision, building "src/library" on the command line using locker compiler fails for me. Error below. (I get the same failure within IntelliJ).
However, the sbt (and according to Jenkins, also the Ant) build works.
I checked out the library source from February 24, and those i could successfully compileusing the same, latest locker compiler.
I'm not sure where to look, it is probably a recent change in the library sources that triggers the error. I suspect also a connection recent changes in generic signatures, since it's triggeredin the method "addGenericSignature".
Lukas
java -Xmx1024m -cp lib/fjbg.jar:lib/msil.jar:lib/forkjoin.jar:target/locker/classes/library:target/locker/classes/compiler/ scala.tools.nsc.Main -cp lib/forkjoin.jar -d sandbox/lib/ -sourcepath src/library `find src/library -name *.scala`
Fails in GenJVM:
error: java.lang.Error: A in trait TraversableViewLike cannot be instantiated from [+A,+Coll,+This <: scala.collection.TraversableView[A,Coll] with scala.collection.TraversableViewLike[A,Coll,This]]scala.collection.TraversableViewLike[A,Coll,This] at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:35) at scala.tools.nsc.symtab.Types$AsSeenFromMap.throwError$1(Types.scala:3389) at scala.tools.nsc.symtab.Types$AsSeenFromMap.instParam$1(Types.scala:3392) at scala.tools.nsc.symtab.Types$AsSeenFromMap.toInstance$1(Types.scala:3403) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3419) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3289) at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3114)
[....]
at scala.tools.nsc.symtab.Types$Type.asSeenFrom(Types.scala:544) at scala.tools.nsc.symtab.Types$Type.memberInfo(Types.scala:558) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.symtab.SymbolTable.atPhase(SymbolTable.scala:96) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.addGenericSignature(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:774)
Wed, 2011-03-16, 17:27
#3
Re: Command-line Build of Library fails
On 3/16/11 9:00 AM, Adriaan Moors wrote:
> uhoh... might want to turn the siren of
> https://lampsvn.epfl.ch/trac/scala/ticket/4305 back on...
Indeed, as adriaan points out I already reported this and even flipped
it to high for a little while. Maybe I am lucky enough to have all
issues converging on a singularity, because I am focused on this right now:
https://lampsvn.epfl.ch/trac/scala/ticket/4337
and it is probably related. Everything swirls around higher kinded
types. It is unlikely to me that 4305 is related to my signature
changes, except inasmuch as it may have unmasked more issues. But we
(OR I, IF ADRIAAN FORSAKES ME) will figure it out.
Wed, 2011-03-16, 17:37
#4
Re: Command-line Build of Library fails
very true, that seems to be the one...
I used the compiler scala-2.9.0.r24343-b20110224020040, and it behaves the same:r24431 compiles fine, r24432 crashes. So r24432 is triggering an older bug.
On Wed, Mar 16, 2011 at 17:00, Adriaan Moors <adriaan.moors@epfl.ch> wrote:
I used the compiler scala-2.9.0.r24343-b20110224020040, and it behaves the same:r24431 compiles fine, r24432 crashes. So r24432 is triggering an older bug.
On Wed, Mar 16, 2011 at 17:00, Adriaan Moors <adriaan.moors@epfl.ch> wrote:
uhoh... might want to turn the siren of https://lampsvn.epfl.ch/trac/scala/ticket/4305 back on...
adriaan
On Wed, Mar 16, 2011 at 4:37 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:
Hi,
Latest revision, building "src/library" on the command line using locker compiler fails for me. Error below. (I get the same failure within IntelliJ).
However, the sbt (and according to Jenkins, also the Ant) build works.
I checked out the library source from February 24, and those i could successfully compileusing the same, latest locker compiler.
I'm not sure where to look, it is probably a recent change in the library sources that triggers the error. I suspect also a connection recent changes in generic signatures, since it's triggeredin the method "addGenericSignature".
Lukas
java -Xmx1024m -cp lib/fjbg.jar:lib/msil.jar:lib/forkjoin.jar:target/locker/classes/library:target/locker/classes/compiler/ scala.tools.nsc.Main -cp lib/forkjoin.jar -d sandbox/lib/ -sourcepath src/library `find src/library -name *.scala`
Fails in GenJVM:
error: java.lang.Error: A in trait TraversableViewLike cannot be instantiated from [+A,+Coll,+This <: scala.collection.TraversableView[A,Coll] with scala.collection.TraversableViewLike[A,Coll,This]]scala.collection.TraversableViewLike[A,Coll,This] at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:35) at scala.tools.nsc.symtab.Types$AsSeenFromMap.throwError$1(Types.scala:3389) at scala.tools.nsc.symtab.Types$AsSeenFromMap.instParam$1(Types.scala:3392) at scala.tools.nsc.symtab.Types$AsSeenFromMap.toInstance$1(Types.scala:3403) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3419) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3289) at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3114)
[....]
at scala.tools.nsc.symtab.Types$Type.asSeenFrom(Types.scala:544) at scala.tools.nsc.symtab.Types$Type.memberInfo(Types.scala:558) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.symtab.SymbolTable.atPhase(SymbolTable.scala:96) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.addGenericSignature(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:774)
Wed, 2011-03-16, 18:07
#5
Re: Command-line Build of Library fails
I'll take my head out of the DOT proofs tomorrow afternoon and try to get this fixed (UNLESS THOU BEAT ME TO IT)
On Wed, Mar 16, 2011 at 5:11 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:
On Wed, Mar 16, 2011 at 5:11 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:
very true, that seems to be the one...
I used the compiler scala-2.9.0.r24343-b20110224020040, and it behaves the same: r24431 compiles fine, r24432 crashes. So r24432 is triggering an older bug.
On Wed, Mar 16, 2011 at 17:00, Adriaan Moors <adriaan.moors@epfl.ch> wrote:
uhoh... might want to turn the siren of https://lampsvn.epfl.ch/trac/scala/ticket/4305 back on...
adriaan
On Wed, Mar 16, 2011 at 4:37 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:
Hi,
Latest revision, building "src/library" on the command line using locker compiler fails for me. Error below. (I get the same failure within IntelliJ).
However, the sbt (and according to Jenkins, also the Ant) build works.
I checked out the library source from February 24, and those i could successfully compileusing the same, latest locker compiler.
I'm not sure where to look, it is probably a recent change in the library sources that triggers the error. I suspect also a connection recent changes in generic signatures, since it's triggeredin the method "addGenericSignature".
Lukas
java -Xmx1024m -cp lib/fjbg.jar:lib/msil.jar:lib/forkjoin.jar:target/locker/classes/library:target/locker/classes/compiler/ scala.tools.nsc.Main -cp lib/forkjoin.jar -d sandbox/lib/ -sourcepath src/library `find src/library -name *.scala`
Fails in GenJVM:
error: java.lang.Error: A in trait TraversableViewLike cannot be instantiated from [+A,+Coll,+This <: scala.collection.TraversableView[A,Coll] with scala.collection.TraversableViewLike[A,Coll,This]]scala.collection.TraversableViewLike[A,Coll,This] at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:35) at scala.tools.nsc.symtab.Types$AsSeenFromMap.throwError$1(Types.scala:3389) at scala.tools.nsc.symtab.Types$AsSeenFromMap.instParam$1(Types.scala:3392) at scala.tools.nsc.symtab.Types$AsSeenFromMap.toInstance$1(Types.scala:3403) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3419) at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply(Types.scala:3289) at scala.tools.nsc.symtab.Types$TypeMap$$anonfun$mapOverArgs$1.apply(Types.scala:3114)
[....]
at scala.tools.nsc.symtab.Types$Type.asSeenFrom(Types.scala:544) at scala.tools.nsc.symtab.Types$Type.memberInfo(Types.scala:558) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$5.apply(GenJVM.scala:566) at scala.tools.nsc.symtab.SymbolTable.atPhase(SymbolTable.scala:96) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.addGenericSignature(GenJVM.scala:566) at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genMethod(GenJVM.scala:774)
On Wed, Mar 16, 2011 at 16:37, Lukas Rytz <lukas.rytz@epfl.ch> wrote: