Open
Description
Environment:
Ubuntu 16.04
bazel version
Build label: 0.4.3rc6
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Dec 21 15:53:43 2016 (1482335623)
Build timestamp: 1482335623
Build timestamp as int: 1482335623
In WORKSPACE:
git_repository(
name = "io_bazel",
remote = "git://github.com/bazelbuild/bazel.git",
tag = "0.4.3",
)
git_repository(
name = "io_bazel_rules_scala",
remote = "https://github.com/bazelbuild/rules_scala.git",
commit = "4f3fc159d64711f2b28d18b507cfe25c3348e4d5",
)
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories")
scala_repositories()
maven_jar(
name = "me_chrons_boopickle_2_11",
artifact = "me.chrons:boopickle_2.11:1.2.4",
)
In third_party/BUILD:
java_library(
name = "me_chrons_boopickle_2_11",
visibility = ["//visibility:public"],
exports = [
"@me_chrons_boopickle_2_11//jar",
],
)
SimpleCaseClass.scala:
package com.komanov.bazeltest
import boopickle.Default._
case class SimpleCaseClass(name: String)
object SimpleCaseClass {
override def toByteArray(s: SimpleCaseClass) = {
Pickle.intoBytes(s)
}
}
Its BUILD file:
scala_library(
name = "bazeltest",
srcs = ["SimpleCaseClass.scala"],
deps = ["//third_party:me_chrons_boopickle_2_11"],
)
When I try to build it:
bazel build --verbose_failures --worker_verbose //src/com/komanov/bazeltest
INFO: Found 1 target...
WARNING: Scalac worker (id 39) can no longer be used, because its process terminated itself or got killed.
INFO: Destroying Scalac worker (id 39)
INFO: Created new non-sandboxed Scalac worker (id 40), logging to .../.cache/bazel/_bazel_user/8284de460f2a76fffe4edd44c16c874d/bazel-workers/worker-40-Scalac.log
ERROR: .../src/com/komanov/bazeltest/BUILD:1:1: scala //src/com/komanov/bazeltest:bazeltest failed: Worker process did not return a correct WorkResponse. This is probably caused by a bug in the worker, writing unexpected other data to stdout.
Target //src/com/komanov/bazeltest:bazeltest failed to build
INFO: Elapsed time: 2.200s, Critical Path: 2.09s
Looks like macros expansion related (non-macros code is working fine with this library).
Metadata
Metadata
Assignees
Labels
No labels