It seems com.github.os72.protocjar only supports 64bit system. On Thu, Jun 29, 2017 at 5:10 AM, <[email protected]> wrote:
> Hi guys, > > Unfortunate, I have met the following problem - I cannot compile protos > in my scala project. > I use "Protocol Buffer Compiler for Scala - Scala PB". All work correctly > under MacOS, but in Ubuntu 16.04 - Xenial Xerus ( > http://releases.ubuntu.com/16.04/ubuntu-16.04.2-desktop-amd64.iso) it > doesn't work and returns the next stack trace: > > protoc-jar: protoc version: 310, detected platform: linux/i386 > java.lang.RuntimeException: error occurred while compiling protobuf files: > Unsupported platform: linux/i386 > at sbtprotoc.ProtocPlugin$.executeProtoc(ProtocPlugin.scala:91) > at sbtprotoc.ProtocPlugin$.sbtprotoc$ProtocPlugin$$ > compile(ProtocPlugin.scala:113) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1$ > $anonfun$4.apply(ProtocPlugin.scala:142) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1$ > $anonfun$4.apply(ProtocPlugin.scala:141) > at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:253) > at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:253) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$ > anonfun$apply$4.apply(Tracked.scala:267) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$ > anonfun$apply$4.apply(Tracked.scala:263) > at sbt.Difference.apply(Tracked.scala:224) > at sbt.Difference.apply(Tracked.scala:206) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3. > apply(Tracked.scala:263) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3. > apply(Tracked.scala:262) > at sbt.Difference.apply(Tracked.scala:224) > at sbt.Difference.apply(Tracked.scala:200) > at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:262) > at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:260) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1. > apply(ProtocPlugin.scala:152) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1. > apply(ProtocPlugin.scala:137) > at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) > at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) > at sbt.std.Transform$$anon$4.work(System.scala:63) > at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) > at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) > at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) > at sbt.Execute.work(Execute.scala:237) > at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) > at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) > at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply( > ConcurrentRestrictions.scala:159) > at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.io.IOException: Unsupported platform: linux/i386 > at com.github.os72.protocjar.Protoc.extractProtoc(Protoc.java:151) > at com.github.os72.protocjar.Protoc.extractProtoc(Protoc.java:169) > at com.github.os72.protocjar.Protoc.runProtoc(Protoc.java:55) > at sbtprotoc.ProtocPlugin$$anonfun$protobufGlobalSettings$8$$ > anonfun$apply$3.apply(ProtocPlugin.scala:54) > at sbtprotoc.ProtocPlugin$$anonfun$protobufGlobalSettings$8$$ > anonfun$apply$3.apply(ProtocPlugin.scala:53) > at protocbridge.ProtocBridge$.runWithGenerators(ProtocBridge.scala:79) > at protocbridge.ProtocBridge$.run(ProtocBridge.scala:61) > at sbtprotoc.ProtocPlugin$.executeProtoc(ProtocPlugin.scala:87) > at sbtprotoc.ProtocPlugin$.sbtprotoc$ProtocPlugin$$ > compile(ProtocPlugin.scala:113) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1$ > $anonfun$4.apply(ProtocPlugin.scala:142) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1$ > $anonfun$4.apply(ProtocPlugin.scala:141) > at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:253) > at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:253) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$ > anonfun$apply$4.apply(Tracked.scala:267) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$ > anonfun$apply$4.apply(Tracked.scala:263) > at sbt.Difference.apply(Tracked.scala:224) > at sbt.Difference.apply(Tracked.scala:206) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3. > apply(Tracked.scala:263) > at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3. > apply(Tracked.scala:262) > at sbt.Difference.apply(Tracked.scala:224) > at sbt.Difference.apply(Tracked.scala:200) > at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:262) > at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:260) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1. > apply(ProtocPlugin.scala:152) > at sbtprotoc.ProtocPlugin$$anonfun$sourceGeneratorTask$1. > apply(ProtocPlugin.scala:137) > at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) > at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) > at sbt.std.Transform$$anon$4.work(System.scala:63) > at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) > at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) > at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) > at sbt.Execute.work(Execute.scala:237) > at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) > at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) > at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply( > ConcurrentRestrictions.scala:159) > at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:748) > [error] (compile:protocGenerate) error occurred while compiling protobuf > files: Unsupported platform: linux/i386 > [error] Total time: 1 s, completed Jun 29, 2017 1:21:49 PM > > I use: > > hryhoriy@hryhoriy-Vostro-3650:~/Work/play-tripdelta$ java -version > java version "1.8.0_131" > Java(TM) SE Runtime Environment (build 1.8.0_131-b11) > Java HotSpot(TM) Server VM (build 25.131-b11, mixed mode) > > hryhoriy@hryhoriy-Vostro-3650:~/Work/play-tripdelta$ sbt sbtVersion > [warn] Executing in batch mode. > [warn] For better performance, hit [ENTER] to switch to interactive > mode, or > [warn] consider launching sbt without any commands, or explicitly > passing 'shell' > [info] Loading project definition from /home/hryhoriy/Work/play- > tripdelta/project > [info] Set current project to Tripdelta (in build > file:/home/hryhoriy/Work/play-tripdelta/) > [info] 0.13.15 > > hryhoriy@hryhoriy-Vostro-3650:~/Work/play-tripdelta$ protoc --version > libprotoc 2.6.1 > > Please, can you advice me what do I wrong? Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
