$ sudo apt-get install build-essential autoconf libtool pkg-config
$ sudo apt-get install libgflags-dev
$ sudo apt-get install clang-5.0 libc++-dev
$ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
$ cd grpc
When I try to build it with bazel, I get the following error -
$ ~/private/bazel-2.0.0-linux-x86_64 build :allStarting local Bazel server and connecting to it...DEBUG: Rule 'io_bazel_rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1523916428 -0700"DEBUG: Call stack for the definition of repository 'io_bazel_rules_python' which is a git_repository (rule definition at /home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18):- /nobackup/grpc/WORKSPACE:34:1ERROR: /home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/io_bazel_rules_python/python/pip.bzl:39:25: Traceback (most recent call last):File "/home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/io_bazel_rules_python/python/pip.bzl", line 37repository_rule(<2 more arguments>)File "/home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/io_bazel_rules_python/python/pip.bzl", line 39, in repository_ruleattr.label(allow_files = True, <2 more arguments>)'single_file' is no longer supported. use allow_single_file instead. You can use --incompatible_disable_deprecated_attr_params=false to temporarily disable this check.ERROR: error loading package '': Extension file 'python/pip.bzl' has errorsERROR: error loading package '': Extension file 'python/pip.bzl' has errorsINFO: Elapsed time: 4.947sINFO: 0 processes.FAILED: Build did NOT complete successfully (0 packages loaded)
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e7cf6e99-98e1-46d6-9245-4e8bb9c21bb6%40googlegroups.com.
$ ~/private/bazel-1.0.0-linux-x86_64 build :all
Starting local Bazel server and connecting to it...
INFO: Writing tracer profile to '/home/nisargs/.cache/bazel/_bazel_nisargs/509de2f44a35a9c68f4268d75d0fe17a/command.profile.gz'
DEBUG: /home/nisargs/.cache/bazel/_bazel_nisargs/509de2f44a35a9c68f4268d75d0fe17a/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:226:13: rbe_msan not using checked in configs; Bazel version 1.0.0 was picked/selected with '["9.0.0", "10.0.0"]' compatible configs but none match the 'env = {"ABI_LIBC_VERSION": "glibc_2.19", "ABI_VERSION": "clang", "BAZEL_COMPILER": "clang", "BAZEL_HOST_SYSTEM": "i686-unknown-linux-gnu", "BAZEL_TARGET_CPU": "k8", "BAZEL_TARGET_LIBC": "glibc_2.19", "BAZEL_TARGET_SYSTEM": "x86_64-unknown-linux-gnu", "CC": "clang", "CC_TOOLCHAIN_NAME": "linux_gnu_x86", "BAZEL_LINKOPTS": "-lc++:-lc++abi:-lm"}', 'config_repos = None',and/or 'create_cc_configs = True' passed as attrs
INFO: SHA256 (https://boringssl.googlesource.com/boringssl/+archive/83da28a68f32023fd3b95a8ae94991a07b1f6c62.tar.gz) = f1fde09c75c73890a6453943b7e4161b34f3d4f0f0478bc6325f73d18086f190
DEBUG: Rule 'boringssl' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "f1fde09c75c73890a6453943b7e4161b34f3d4f0f0478bc6325f73d18086f190"
DEBUG: Call stack for the definition of repository 'boringssl' which is a http_archive (rule definition at /home/nisargs/.cache/bazel/_bazel_nisargs/509de2f44a35a9c68f4268d75d0fe17a/external/bazel_tools/tools/build_defs/repo/http.bzl:262:16):
- /nobackup/grpc-temp/grpc/bazel/grpc_deps.bzl:105:9
- /nobackup/grpc-temp/grpc/WORKSPACE:5:1
INFO: Analyzed 96 targets (52 packages loaded, 3117 targets configured).
INFO: Found 96 targets...
ERROR: /home/nisargs/.cache/bazel/_bazel_nisargs/509de2f44a35a9c68f4268d75d0fe17a/external/upb/BUILD:57:1: C++ compilation of rule '@upb//:upb' failed (Exit 1) clang failed: error executing command /s/std/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -MD -MF bazel-out/k8-fastbuild/bin/external/upb/_objs/upb/port.pic.d ... (remaining 20 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/upb/upb/port.c:2:
external/upb/upb/upb.h:12:10: fatal error: 'stdarg.h' file not found
#include <stdarg.h>
^~~~~~~~~~
1 error generated.
INFO: Elapsed time: 197.128s, Critical Path: 3.69s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
$ /s/std/bin/clang --version
clang version 8.0.0 (trunk 340542)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /s/std/bin
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.