gavgaurav / nativelibs4java

Automatically exported from code.google.com/p/nativelibs4java
0 stars 0 forks source link

Compiler crash of scalacl/0.2.Beta13 with Scala 2.9.0 #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Scala 2.9.0
2. Use scalacl/0.2.Beta13 

The Compiler crashes due to a java.lang.VerifyError: (class: 
scalacl/MiscMatchers$class, method: primArrayBuilderClasses signature: 
(Lscalacl/MiscMatchers;)Lscala/collection/immutable/Map;) Incompatible argument 
to function

     [exec] error: java.lang.reflect.InvocationTargetException
     [exec]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [exec]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
     [exec]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     [exec]     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
     [exec]     at scala.tools.nsc.plugins.Plugin$.instantiate(Plugin.scala:152)
     [exec]     at scala.tools.nsc.plugins.Plugins$$anonfun$loadRoughPluginsList$1.apply(Plugins.scala:34)
     [exec]     at scala.tools.nsc.plugins.Plugins$$anonfun$loadRoughPluginsList$1.apply(Plugins.scala:34)
     [exec]     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
     [exec]     at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
     [exec]     at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
     [exec]     at scala.collection.immutable.List.foreach(List.scala:45)
     [exec]     at scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
     [exec]     at scala.collection.immutable.List.map(List.scala:45)
     [exec]     at scala.tools.nsc.plugins.Plugins$class.loadRoughPluginsList(Plugins.scala:34)
     [exec]     at scala.tools.nsc.Global.loadRoughPluginsList(Global.scala:35)
     [exec]     at scala.tools.nsc.plugins.Plugins$class.roughPluginsList(Plugins.scala:37)
     [exec]     at scala.tools.nsc.Global.roughPluginsList(Global.scala:35)
     [exec]     at scala.tools.nsc.plugins.Plugins$class.loadPlugins(Plugins.scala:73)
     [exec]     at scala.tools.nsc.Global.loadPlugins(Global.scala:35)
     [exec]     at scala.tools.nsc.plugins.Plugins$class.plugins(Plugins.scala:98)
     [exec]     at scala.tools.nsc.Global.plugins(Global.scala:35)
     [exec]     at scala.tools.nsc.plugins.Plugins$class.computePluginPhases(Plugins.scala:109)
     [exec]     at scala.tools.nsc.Global.computePluginPhases(Global.scala:35)
     [exec]     at scala.tools.nsc.Global.computePhaseDescriptors(Global.scala:595)
     [exec]     at scala.tools.nsc.Global.phaseDescriptors(Global.scala:600)
     [exec]     at scala.tools.nsc.Global$Run.<init>(Global.scala:702)
     [exec]     at scala.tools.nsc.Main$.process(Main.scala:105)
     [exec]     at scala.tools.nsc.Main$.main(Main.scala:123)
     [exec]     at scala.tools.nsc.Main.main(Main.scala)
     [exec] Caused by: java.lang.VerifyError: (class: scalacl/MiscMatchers$class, method: primArrayBuilderClasses signature: (Lscalacl/MiscMatchers;)Lscala/collection/immutable/Map;) Incompatible argument to function
     [exec]     at scalacl.LoopsTransformComponent.<init>(LoopsTransformComponent.scala:60)
     [exec]     at scalacl.ScalaCLPlugin$.components(ScalaCLPlugin.scala:189)
     [exec]     at scalacl.ScalaCLPlugin.<init>(ScalaCLPlugin.scala:84)
     [exec]     ... 29 more
     [exec] 

Original issue reported on code.google.com by wolf.sei...@gmail.com on 21 May 2011 at 7:00

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for your report.
It indeed seems like it will be hard to provide a version of ScalaCL that's 
compatible with Scala 2.8.x and Scala 2.9.x at the same time.
I'm currently testing version 0.2.Beta14, which is Scala 2.9.x-compatible only, 
and will let you know when it's out (might be in a few hours :-)).

Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 21 May 2011 at 8:18

GoogleCodeExporter commented 9 years ago
Hello,

This is fixed in version 0.2.Beta14 (available through Maven and sbaz).
Please note that this version (and the upcoming ones) is no longer compatible 
with scala 2.8.x and earlier scala releases.

Thanks for your help !
Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 25 May 2011 at 1:36