Checksum error
PinkMiu opened this issue · 0 comments
Hi,
Thank you for the tutorial, its saved me ! :)
I just noticed that the checksum in workpace.bzl for the Protobuf have changed, here is the correction i've done to make it run:
patched_http_archive(
name = "protobuf",
urls = [
"https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz",
"http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz",
],
sha256 = "e5fdeee6b28cf6c38d61243adff06628baa434a22b5ebb7432d2a7fbabbdb13d",
strip_prefix = "protobuf-0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66",
# TODO: remove patching when tensorflow stops linking same protos into
# multiple shared libraries loaded in runtime by python.
# This patch fixes a runtime crash when tensorflow is compiled
# with clang -O2 on Linux (see tensorflow/tensorflow#8394)
patch_file = str(Label("//third_party/protobuf:add_noinlines.patch")),
)
We need to import the protobuf library under the names com_google_protobuf
and com_google_protobuf_cc to enable proto_library support in bazel.
Unfortunately there is no way to alias http_archives at the moment.
native.http_archive(
name = "com_google_protobuf",
urls = [
"https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz",
"http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz",
],
sha256 = "e5fdeee6b28cf6c38d61243adff06628baa434a22b5ebb7432d2a7fbabbdb13d",
strip_prefix = "protobuf-0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66",
)
native.http_archive(
name = "com_google_protobuf_cc",
urls = [
"https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz",
"http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz",
],
sha256 = "e5fdeee6b28cf6c38d61243adff06628baa434a22b5ebb7432d2a7fbabbdb13d",
strip_prefix = "protobuf-0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66",
)
Thank you again for the tutorial !!