Comments (11)
The error appears to be complaining that the protobuf files in your build directory were generated by an older version of protoc than you are using to compile the library. Did you update to a newer version of protoc recently? If you delete the build
directory and start from scratch, this will likely be resolved, because the protobuf files will be regenerated.
from homomorphic-implementors-toolkit.
I deleted build/
and rebuilt it, did not work.
I have the latest protoc
installed from homebrew
.
brew upgrade protobuf
Warning: protobuf 23.3 already installed
from homomorphic-implementors-toolkit.
My next guess is that you have two versions of protobuf installed, and the Cmake is generating the protobuf files with one version (perhaps the system version), while the compiler is using an older version (perhaps a version that is erroneously being installed during the CMake setup step). Could you delete build
again and post the complete output from cmake . -Bbuild -GNinja -DHIT_BUILD_EXAMPLES=ON -DCMAKE_CXX_COMPILER=/usr/local/Cellar/llvm/16.0.6/bin/clang++
and ninja -Cbuild
?
from homomorphic-implementors-toolkit.
cmake . -Bbuild -GNinja -DHIT_BUILD_EXAMPLES=ON -DCMAKE_CXX_COMPILER=/usr/local/Cellar/llvm/16.0.6/bin/clang++ ─╯
-- The CXX compiler identification is Clang 16.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Cellar/llvm/16.0.6/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- HIT Build type (CMAKE_BUILD_TYPE): Release
-- Found Boost installed on the system.
-- Obtaining seal...
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/seal
-- Building seal...
[1/7] Performing update step for 'EP_SEAL'
[2/7] No patch step for 'EP_SEAL'
[3/7] Performing configure step for 'EP_SEAL'
-- Build type (CMAKE_BUILD_TYPE): Release
-- Microsoft SEAL debug mode: OFF
-- SEAL_USE_CXX17: ON
-- SEAL_BUILD_DEPS: ON
-- SEAL_USE_MSGSL: ON
-- Microsoft GSL: download ...
-- SEAL_USE_ZLIB: ON
-- ZLIB: download ...
CMake Deprecation Warning at /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/seal/build/thirdparty/zlib-src/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- SEAL_USE_ZSTD: ON
-- Zstandard: download ...
-- ZSTD VERSION: 1.5.2
-- CMAKE_INSTALL_PREFIX: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party
-- CMAKE_INSTALL_LIBDIR: lib
-- ZSTD_LEGACY_SUPPORT not defined!
-- ZSTD_MULTITHREAD_SUPPORT is disabled
-- SEAL_USE_INTEL_HEXL: OFF
-- BUILD_SHARED_LIBS: OFF
-- SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT: ON
-- SEAL_USE_GAUSSIAN_NOISE: OFF
-- SEAL_DEFAULT_PRNG: Blake2xb
-- SEAL_AVOID_BRANCHING: OFF
-- x86intrin.h - found
-- SEAL_USE_INTRIN: ON
-- SEAL_USE_MEMSET_S: ON
-- SEAL_USE_EXPLICIT_BZERO: OFF
-- SEAL_USE_EXPLICIT_MEMSET: OFF
-- SEAL_BUILD_SEAL_C: OFF
-- SEAL_BUILD_EXAMPLES: OFF
-- SEAL_BUILD_TESTS: OFF
-- SEAL_BUILD_BENCH: OFF
-- Configuring done (4.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/seal/build
[4/7] Performing build step for 'EP_SEAL'
ninja: no work to do.
[5/7] Performing install step for 'EP_SEAL'
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/config.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/lib/libseal-4.1.a
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/lib/cmake/SEAL-4.1/SEALTargets.cmake
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/lib/cmake/SEAL-4.1/SEALTargets-release.cmake
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/lib/cmake/SEAL-4.1/SEALConfig.cmake
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/lib/cmake/SEAL-4.1/SEALConfigVersion.cmake
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/util
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/gsl_util
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/gsl_narrow
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/narrow
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/algorithm
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/assert
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/gsl_assert
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/span
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/gsl
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/pointers
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/byte
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/gsl_algorithm
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/gsl_byte
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/span_ext
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/gsl/string_span
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/lib/pkgconfig/seal.pc
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/batchencoder.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/ciphertext.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/ckks.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/modulus.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/context.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/decryptor.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/dynarray.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/encryptionparams.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/encryptor.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/evaluator.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/galoiskeys.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/keygenerator.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/kswitchkeys.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/memorymanager.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/plaintext.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/publickey.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/randomgen.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/randomtostd.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/relinkeys.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/seal.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/secretkey.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/serializable.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/serialization.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/valcheck.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/version.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/blake2.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/blake2-impl.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/clang.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/clipnormal.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/common.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/croots.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/defines.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/dwthandler.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/fips202.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/galois.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/gcc.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/globals.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/hash.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/hestdparms.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/iterator.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/locks.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/mempool.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/msvc.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/numth.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/pointer.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/polyarithsmallmod.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/polycore.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/rlwe.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/rns.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/scalingvariant.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/ntt.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/streambuf.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/uintarith.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/uintarithmod.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/uintarithsmallmod.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/uintcore.h
-- Installing: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1/seal/util/ztools.h
[6/7] No test step for 'EP_SEAL'
[7/7] Completed 'EP_SEAL'
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Microsoft SEAL -> Version 4.1.1 detected
-- Microsoft SEAL -> Targets available: SEAL::seal
CMake Warning at /usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindProtobuf.cmake:524 (message):
Protobuf compiler version 23.3 doesn't match library version 4.23.3
Call Stack (most recent call first):
cmake/modules/FindProtobufLib.cmake:4 (find_package)
CMakeLists.txt:77 (find_package)
-- Protobuf is already installed.
-- GLog is already installed.
-- Obtaining tbb...
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb
-- Building tbb...
[1/7] Performing update step for 'EP_TBB'
[2/7] No patch step for 'EP_TBB'
[3/7] No configure step for 'EP_TBB'
[4/7] No build step for 'EP_TBB'
[5/7] No install step for 'EP_TBB'
[6/7] No test step for 'EP_TBB'
[7/7] Completed 'EP_TBB'
-- Installing TBB...
-- Building Intel TBB: /usr/bin/make -j8 tbb_build_prefix=tbb_cmake_build_subdir tbb_build_dir=/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/tbb_cmake_build compiler=clang
-- TBB_VERSION : 2020.3
-- Configuring done (30.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build
from homomorphic-implementors-toolkit.
ninja -Cbuild ─╯
ninja: Entering directory `build'
[2/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ckksparams.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ckksparams.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ckksparams.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ckksparams.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ckksparams.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ckksparams.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ckksparams.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ckksparams.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[3/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext_vector.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext_vector.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext_vector.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext_vector.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext_vector.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ciphertext_vector.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ciphertext_vector.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ciphertext_vector.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[4/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encoding_unit.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encoding_unit.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encoding_unit.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encoding_unit.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encoding_unit.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encoding_unit.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encoding_unit.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encoding_unit.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[5/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_row_vector.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_row_vector.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_row_vector.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_row_vector.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_row_vector.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_row_vector.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_row_vector.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_row_vector.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[6/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_col_vector.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_col_vector.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_col_vector.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_col_vector.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_col_vector.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_col_vector.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_col_vector.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_col_vector.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[7/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/ciphertext.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ciphertext.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ciphertext.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/ciphertext.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[8/34] Building CXX object protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_matrix.pb.cc.o
FAILED: protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_matrix.pb.cc.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -w -MD -MT protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_matrix.pb.cc.o -MF protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_matrix.pb.cc.o.d -o protobuf/CMakeFiles/aws_hit_proto.dir/hit/protobuf/encrypted_matrix.pb.cc.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_matrix.pb.cc
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_matrix.pb.cc:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf/encrypted_matrix.pb.h:11:10: fatal error: 'google/protobuf/port_def.inc' file not found
#include "google/protobuf/port_def.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[11/34] Building CXX object src/CMakeFiles/aws_hit_obj.dir/hit/api/evaluator.cpp.o
ninja: build stopped: subcommand failed.
from homomorphic-implementors-toolkit.
I suspect this error
CMake Warning at /usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindProtobuf.cmake:524 (message):
Protobuf compiler version 23.3 doesn't match library version 4.23.3
is the source of the problem. The build script did detect that you have protobuf installed, but you seem to have two versions on your system. I'm also not seeing the error you reported, instead I see 'google/protobuf/port_def.inc' file not found
. This again suggests that something is not right with your protobuf installation, rather than with HIT.
from homomorphic-implementors-toolkit.
I solved that problem but stuck in another...
I uninstalled protobuf 23.4
from homebrew
(https://formulae.brew.sh/formula/protobuf)
brew uninstall protobuf
and upgraded to protobuf 4.23.4
using pip
(https://pypi.org/project/protobuf/)
pip install --upgrade protobuf
now I am stuck in build
ninja -Cbuild ─╯
ninja: Entering directory `build'
[12/34] Building CXX object src/CMakeFiles/aws_hit_obj.dir/hit/api/context.cpp.
FAILED: src/CMakeFiles/aws_hit_obj.dir/hit/api/context.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/src/../protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT src/CMakeFiles/aws_hit_obj.dir/hit/api/context.cpp.o -MF src/CMakeFiles/aws_hit_obj.dir/hit/api/context.cpp.o.d -o src/CMakeFiles/aws_hit_obj.dir/hit/api/context.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/context.cpp
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/context.cpp:71:59: fatal error: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
HEContext::HEContext(CKKSParams params) : ckks_params(move(params)) {
^
std::
1 error generated.
[13/34] Building CXX object src/CMakeFiles/aws_hit_obj.dir/hit/api/params.cpp.o
FAILED: src/CMakeFiles/aws_hit_obj.dir/hit/api/params.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/src/../protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT src/CMakeFiles/aws_hit_obj.dir/hit/api/params.cpp.o -MF src/CMakeFiles/aws_hit_obj.dir/hit/api/params.cpp.o.d -o src/CMakeFiles/aws_hit_obj.dir/hit/api/params.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/params.cpp
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/params.cpp:24:18: fatal error: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
: params(move(params)), log_scale_(log_scale), use_std_params_(use_standard_params) {
^
std::
1 error generated.
[21/34] Building CXX object src/CMakeF...hit/api/evaluator/scaleestimator.cpp.o
ninja: build stopped: subcommand failed.
from homomorphic-implementors-toolkit.
This looks like a new warning introduced in very recent clang versions. HIT has -Wfatal-errors
set, so this warning is treated as an error.
I've pushed a new commit; if you pull and rebuild, it should be fixed.
from homomorphic-implementors-toolkit.
Thank you for the quick fix; unfortunately, the build failed again.
ninja -Cbuild ─╯
ninja: Entering directory `build'
[1/23] Building CXX object src/CMakeFi.../api/linearalgebra/linearalgebra.cpp.o
FAILED: src/CMakeFiles/aws_hit_obj.dir/hit/api/linearalgebra/linearalgebra.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/src/../protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT src/CMakeFiles/aws_hit_obj.dir/hit/api/linearalgebra/linearalgebra.cpp.o -MF src/CMakeFiles/aws_hit_obj.dir/hit/api/linearalgebra/linearalgebra.cpp.o.d -o src/CMakeFiles/aws_hit_obj.dir/hit/api/linearalgebra/linearalgebra.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.cpp
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.cpp:4:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:785:13: fatal error: use of undeclared identifier '__pstl'
parallel_for(arg1.num_cts(), [&](int i) { eval.multiply_inplace(arg1[i], arg2[i]); });
^
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:58:19: note: expanded from macro 'parallel_for'
std::for_each(__pstl::execution::par, begin(COMBINE(iterIdxs, __LINE__)), end(COMBINE(iterIdxs, __LINE__)), body)
^
1 error generated.
[2/23] Building CXX object tests/CMake...pi/linearalgebra/encryptedmatrix.cpp.o
FAILED: tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encryptedmatrix.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encryptedmatrix.cpp.o -MF tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encryptedmatrix.cpp.o.d -o tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encryptedmatrix.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/linearalgebra/encryptedmatrix.cpp
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/linearalgebra/encryptedmatrix.cpp:10:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:785:13: fatal error: use of undeclared identifier '__pstl'
parallel_for(arg1.num_cts(), [&](int i) { eval.multiply_inplace(arg1[i], arg2[i]); });
^
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:58:19: note: expanded from macro 'parallel_for'
std::for_each(__pstl::execution::par, begin(COMBINE(iterIdxs, __LINE__)), end(COMBINE(iterIdxs, __LINE__)), body)
^
1 error generated.
[3/23] Building CXX object tests/CMake...-tests.dir/api/evaluator/opcount.cpp.o
FAILED: tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/opcount.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/opcount.cpp.o -MF tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/opcount.cpp.o.d -o tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/opcount.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/evaluator/opcount.cpp
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/evaluator/opcount.cpp:8:
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/hit.h:22:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:785:13: fatal error: use of undeclared identifier '__pstl'
parallel_for(arg1.num_cts(), [&](int i) { eval.multiply_inplace(arg1[i], arg2[i]); });
^
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:58:19: note: expanded from macro 'parallel_for'
std::for_each(__pstl::execution::par, begin(COMBINE(iterIdxs, __LINE__)), end(COMBINE(iterIdxs, __LINE__)), body)
^
1 error generated.
[4/23] Building CXX object tests/CMake...it-tests.dir/api/evaluator/debug.cpp.o
FAILED: tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/debug.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/debug.cpp.o -MF tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/debug.cpp.o.d -o tests/CMakeFiles/hit-unit-tests.dir/api/evaluator/debug.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/evaluator/debug.cpp
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/evaluator/debug.cpp:8:
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/hit.h:22:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:785:13: fatal error: use of undeclared identifier '__pstl'
parallel_for(arg1.num_cts(), [&](int i) { eval.multiply_inplace(arg1[i], arg2[i]); });
^
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:58:19: note: expanded from macro 'parallel_for'
std::for_each(__pstl::execution::par, begin(COMBINE(iterIdxs, __LINE__)), end(COMBINE(iterIdxs, __LINE__)), body)
^
1 error generated.
[5/23] Building CXX object tests/CMake...r/api/linearalgebra/encodingunit.cpp.o
FAILED: tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encodingunit.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encodingunit.cpp.o -MF tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encodingunit.cpp.o.d -o tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/encodingunit.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/linearalgebra/encodingunit.cpp
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/linearalgebra/encodingunit.cpp:8:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:785:13: fatal error: use of undeclared identifier '__pstl'
parallel_for(arg1.num_cts(), [&](int i) { eval.multiply_inplace(arg1[i], arg2[i]); });
^
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:58:19: note: expanded from macro 'parallel_for'
std::for_each(__pstl::execution::par, begin(COMBINE(iterIdxs, __LINE__)), end(COMBINE(iterIdxs, __LINE__)), body)
^
1 error generated.
[6/23] Building CXX object tests/CMake.../api/linearalgebra/linearalgebra.cpp.o
FAILED: tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/linearalgebra.cpp.o
/usr/local/Cellar/llvm/16.0.6/bin/clang++ -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/protobuf/hit/protobuf -I/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/build/third-party/include/SEAL-4.1 -isystem /usr/local/include -isystem /Users/devharsh/Downloads/homomorphic-implementors-toolkit/third-party/tbb/src/include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -std=c++17 -Wall -Werror -Wformat=2 -Wwrite-strings -Wvla -fvisibility=hidden -fno-common -funsigned-char -Wextra -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wunused-result -Wfatal-errors -Wmissing-declarations -Wmissing-field-initializers -Wshadow -Wpedantic -Wno-sign-compare -MD -MT tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/linearalgebra.cpp.o -MF tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/linearalgebra.cpp.o.d -o tests/CMakeFiles/hit-unit-tests.dir/api/linearalgebra/linearalgebra.cpp.o -c /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/linearalgebra/linearalgebra.cpp
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/tests/api/linearalgebra/linearalgebra.cpp:8:
In file included from /Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/hit.h:22:
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:785:13: fatal error: use of undeclared identifier '__pstl'
parallel_for(arg1.num_cts(), [&](int i) { eval.multiply_inplace(arg1[i], arg2[i]); });
^
/Users/devharsh/Downloads/homomorphic-implementors-toolkit/src/hit/api/linearalgebra/linearalgebra.h:58:19: note: expanded from macro 'parallel_for'
std::for_each(__pstl::execution::par, begin(COMBINE(iterIdxs, __LINE__)), end(COMBINE(iterIdxs, __LINE__)), body)
^
1 error generated.
[10/23] Building CXX object tests/CMak...ts.dir/api/evaluator/homomorphic.cpp.o
ninja: build stopped: subcommand failed.
from homomorphic-implementors-toolkit.
Are you using an x86 processor? Intel's TBB library likely only works on x86.
Unfortunately, I don't have a Mac, so it's hard for me to help you. I did have two other people try to build on a Mac, but neither of them were successful either, and both of them had different build failures from each other and you.
Your problem appears to be related to installing dependencies, rather than something with HIT itself. While I did my best to make it easy to install on Unix systems, I'm unfortunately not able to support Mac right now. If you do manage to figure out how to get this working on Mac, I would love to hear about it so that I can potentially improve the build system.
from homomorphic-implementors-toolkit.
I have (x86_64), 2.4 GHz Quad-Core Intel Core i5.
from homomorphic-implementors-toolkit.
Related Issues (20)
- Validate Protobuf inputs HOT 1
- Remove the ability to serialize a plaintext
- Add Mixed-Unit API to LinearAlgebra API
- Document SEAL memory management
- Example fails on Lattigo branch
- De-duplicate evaluation keys
- Threading issue in Lattigo branch HOT 1
- Add API to test whether a given Galois key is present
- Rethink ScaleEstimator with Bootstrapping HOT 1
- Stricter Evaluation API HOT 1
- Add arithmetic operators for linear algebra API
- Add `subtract` and friends to linear algebra API
- Add alternate option for matrix/matrix multiplication
- Add checks in linear algebra API to ensure inputs are valid
- Add `save` API to ciphertexts and linear algebra objects
- Missing from the Examples HOT 1
- Update README HOT 2
- Open TODOs
- Get customer feedback on logging experience
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homomorphic-implementors-toolkit.