PALISADE does not compile in XCode 12
Original issue is palisade-release#19 (closed) Description of the error by @tnsu
I am trying to install Palisade for my research. macOS Catalina Apple clang version 12.0.0 (clang-1200.0.32.2) I had to reinstall Xcode and then only got this error on the build directory that was originally created when I used cmake 3.17.1 version (the latest version when I first installed Palisade)
I now did a fresh installation of Palisade and got rid of that error, but now get the error below when executing "make" command at step 7
[ 0%] Built target third-party [ 24%] Built target coreobj [ 24%] Built target PALISADEcore [ 24%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestSerialize.cpp.o In file included from /Users . . /palisade-release/src/core/../core/include/lattice/elemparams.h:29: In file included from /Users/palisade-release/src/core/../core/include/math/backend.h:266: /Users/palisade-release/src/core/../core/include/math/bigintnat/mubintvecnat.h:669:19: error: loop variable 'v' of type 'const bigintnat::NativeIntegerT' creates a copy from type 'const bigintnat::NativeIntegerT' [-Werror,-Wrange-loop-analysis] for (const auto v : vector) { ^ /Users/palisade-release/third-party/cereal/include/cereal/cereal.hpp:460:9: note: in instantiation of function template specialization 'cereal::save<cereal::JSONOutputArchive, std::__1::allocator<bigintnat::NativeIntegerT > >' requested here CEREAL_SAVE_FUNCTION_NAME(*self, t); ^ . . . .
2 errors generated. make[2]: *** [src/core/CMakeFiles/core_tests.dir/unittest/UnitTestSerialize.cpp.o] Error 1
make[1]: *** [src/core/CMakeFiles/core_tests.dir/all] Error 2
make: *** [all] Error 2
Any solution?