gRPC 安装失败"make"
gRPC installation fails at "make"
我正在遵循构建的源指令以安装grpc
$ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
成功
$ cd grpc
成功
$ git submodule update --init
成功
$ make
构建一些源文件后失败
third_party/boringssl/crypto/rand/urandom.c:62:2: error: #error "system call number for getrandom is not the expected value"
#error "system call number for getrandom is not the expected value"
^
In file included from /usr/include/x86_64-linux-gnu/sys/syscall.h:31:0,
from third_party/boringssl/crypto/rand/urandom.c:32:
third_party/boringssl/crypto/rand/urandom.c: In function ‘init_once’:
third_party/boringssl/crypto/rand/urandom.c:128:15: error: ‘__NR_getrandom’ undeclared (first use in this function)
syscall(SYS_getrandom, &dummy, sizeof(dummy), GRND_NONBLOCK);
^
third_party/boringssl/crypto/rand/urandom.c:128:15: note: each undeclared identifier is reported only once for each function it appears in
third_party/boringssl/crypto/rand/urandom.c: In function ‘fill_with_entropy’:
third_party/boringssl/crypto/rand/urandom.c:258:21: error: ‘__NR_getrandom’ undeclared (first use in this function)
r = syscall(SYS_getrandom, out, len, 0 /* no flags */);
^
Makefile:2564: recipe for target '/home/usrnm/grpc/objs/opt/third_party/boringssl/crypto/rand/urandom.o' failed
make: *** [/home/usrnm/grpc/objs/opt/third_party/boringssl/crypto/rand/urandom.o] Error 1
OS:Linux 4.4.0-0 SMP Debian 4.4.16-1
GCC版本:GCC(Debian 4.9.2-10)4.9.2
我在Internet上找不到有关此错误的任何开放问题或任何帮助。
如果没有嵌入式鲍林斯(Boringssl),您可能会有更好的运气。尝试使用:
构建EMBED_OPENSSL=false make
如果您遇到缺少软件包的错误,请确保已安装libssl-dev
。
在编译鲍林斯时,问题似乎发生了。我们使用$ git submodule
给出的版本,在撰写本文时为be2ee342d3781ddb954f91f8a7e660c6f59e87e5 third_party/boringssl (version_for_cocoapods_7.0-526-gbe2ee342)
。您是否可以单独编译BoringsSL?
相关文章:
- 如果没有malloc,链表实现将失败
- 模板参数替换失败,并且未完成隐式转换
- 具有默认模板参数的多态类的模板推导失败
- 视图中的参数推导失败:take_while
- 链接到自行创建的dll失败
- 带有特殊路径部分的"std::filesystem::weakly_canonical"失败
- GetShortPathName在网络驱动器上使用中文文件夹时失败
- gcc和c++17的过载解析失败
- 为什么使用 P/Invoke 调用 dll 时,某些计算机中的 LoadLibrary 失败?
- 在WSL:configure_file上对config_file的每次调用都失败:配置文件时出现问题
- "Make"失败并出现 Clang 错误 - 如何从 Clang 获得错误?
- make:致命错误:目标命令失败
- MAKE/CMAKE子目录链接到外部库的链接失败
- gRPC 安装失败"make"
- WSL:make在使用-j时失败
- make在swig-create-ruby包装器上失败
- 为什么"make distcheck"在这个非常基本的"Hello, World!"自动工具示例中失败?
- MS链接从gnu-make失败,但从cmd行工作
- make find_package(OpenGL REQUIRED)失败,没有任何错误消息
- make add_custom_command失败,目标被删除