-
Notifications
You must be signed in to change notification settings - Fork 35
Build Docker with ABY #51
Comments
The boost library is not fully build after:
|
I built the boost library manually:
After that:
|
More outputs from make install for he-transformer:
|
After building boost manually:
|
ERROR:/home/user/.cache/bazel/_bazel_nicolas/4baf5eb2dd7ac89f621f051ae39e488c/external/grpc/BUILD:507:1:C++ compilation of rule '@grpc//:gpr_base' failed (Exit 1)external/grpc/src/core/lib/gpr/log_linux.cc:43:13:error: ambiguating new declaration of 'long int gettid()' static long gettid(void) { returnsyscall(__NR_gettid); } ^~~~~~In file includedfrom /usr/include/unistd.h:1170, fromexternal/grpc/src/core/lib/gpr/log_linux.cc:41:/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16:note: old declaration '__pid_t gettid()' extern __pid_t gettid (void) __THROW; ^~~~~~external/grpc/src/core/lib/gpr/log_linux.cc:43:13:warning: 'long int gettid()' defined but not used [-Wunused-function] static long gettid(void) { returnsyscall(__NR_gettid); } ^~~~~~Target//tensorflow/tools/pip_package:build_pip_package failed to buildUse--verbose_failures to see the command lines of failed build steps. |
To build ABY, g++ version >= 8.4 is required. However, by default, the docker version of Ubuntu 18.04 comes with g++ version 7.5 (as of now). Thus, we should add g++8 (install g++8) to the build of the docker image.
Moreover, I encountered a few problems while building the library inside docker. The main issue was that it seemed as if not the whole boost library was built and then ABY failed to build. I built the boost library fully manually and then was able to build ABY. Finally, I ran the tests for ABY and all passed. The basic python example examples/ax.py also worked.
The text was updated successfully, but these errors were encountered: