google / fully-homomorphic-encryption

An FHE compiler for C++
Apache License 2.0
3.53k stars 256 forks source link

Using OpenFHE compile error,but Using TFHE is ok #21

Closed maltoseeee closed 2 years ago

maltoseeee commented 2 years ago

bazel run //transpiler/examples/fibonacci:fibonacci_openfhe_testbench Starting local Bazel server and connecting to it... INFO: Analyzed target //transpiler/examples/fibonacci:fibonacci_openfhe_testbench (99 packages loaded, 21005 targets configured). INFO: Found 1 target... ERROR: /home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/external/openfhe/BUILD.bazel:55:6: Foreign Cc - CMake: Building binfhe failed: (Exit 1): bash failed: error executing command /bin/bash -c bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/wrapper_build_script.sh

Use --sandbox_debug to see verbose messages from the sandbox bash failed: error executing command /bin/bash -c bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/wrapper_build_script.sh

Use --sandbox_debug to see verbose messages from the sandbox rules_foreign_cc: Build failed! rules_foreign_cc: Keeping temp build directory and dependencies directory for debug. rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag. rules_foreigncc: Printing build logs: ____ BEGIN BUILD LOGS _____

Bazel external C/C++ Rules. Building library binfhe

Environment:__ BUILD_SCRIPT=bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/build_script.sh EXT_BUILD_ROOT=/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption BUILD_LOG=bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/CMake.log PWD=/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption BUILD_WRAPPER_SCRIPT=bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/wrapper_build_script.sh PYTHON_BIN_PATH=/usr/bin/python3 TMPDIR=/tmp EXT_BUILD_DEPS=/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption/bazel-out/k8-opt/bin/external/openfhe/binfhe.ext_build_deps BUILD_TMPDIR=/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption/bazel-out/k8-opt/bin/external/openfhe/binfhe.build_tmpdir SHLVL=2 BAZEL_CXXOPTS=-std=c++17 CMAKE_BUILD_PARALLEL_LEVEL=16 INSTALLDIR=/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption/bazel-out/k8-opt/bin/external/openfhe/binfhe PATH=/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption:/home/constexpr/.cache/bazelisk/downloads/bazelbuild/bazel-4.0.0-linux-x8664/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin =/usr/bin/env


-- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5")
-- Found Git: /usr/bin/git (found version "2.25.1") -- Configuring incomplete, errors occurred! See also "/home/constexpr/.cache/bazel/_bazel_constexpr/57e8517c1009cf8d8f04e6f3fe94bf13/sandbox/linux-sandbox/1/execroot/com_google_fully_homomorphic_encryption/bazel-out/k8-opt/bin/external/openfhe/binfhe.buildtmpdir/CMakeFiles/CMakeOutput.log". ____ END BUILD LOGS _____ rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/wrapper_build_script.sh rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/build_script.sh rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/openfhe/binfhe_foreign_cc/CMake.log

Target //transpiler/examples/fibonacci:fibonacci_openfhe_testbench failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 18.715s, Critical Path: 5.56s INFO: 2 processes: 2 internal. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully

davidbrucecousins commented 2 years ago

you may need to install autoconf in your system. --Dave Cousins, OpenFHE team.

j2kun commented 2 years ago

Agreed, the error message states the problem

CMake Error at CMakeLists.txt:377 (message): Autoconf is not installed.

Please try installing autoconf and reopen this issue if the problem persists https://www.gnu.org/software/autoconf/