Building error ( pointer ‘mem’ used after ‘void free(void*)’)
I'm having troubles to install PALISADE (release or development branch) in arch linux. I follow the build intructions, and got this error (warning...) when i do make. No error in the step of cmake.
In file included from /home/mati/documents/doctorado/palisade-development/src/core/include/math/discretegaussiangenerator.h:66, from /home/mati/documents/doctorado/palisade-development/src/core/include/lattice/ilelement.h:32, from /home/mati/documents/doctorado/palisade-development/src/core/include/lattice/backend.h:30, from /home/mati/documents/doctorado/palisade-development/src/core/include/encoding/plaintext.h:34, from /home/mati/documents/doctorado/palisade-development/src/core/include/encoding/ckkspackedencoding.h:35, from /home/mati/documents/doctorado/palisade-development/src/core/lib/encoding/ckkspackedencoding.cpp:24: /home/mati/documents/doctorado/palisade-development/src/core/include/math/distributiongenerator.h: In static member function ‘static lbcrypto::PRNG& lbcrypto::PseudoRandomNumberGenerator::GetPRNG()’: /home/mati/documents/doctorado/palisade-development/src/core/include/math/distributiongenerator.h:124:18: error: pointer ‘mem’ used after ‘void free(void*)’ [-Werror=use-after-free] 124 | uint32_t counter = reinterpret_cast<long long>(mem); | ^~~~~~~ /home/mati/documents/doctorado/palisade-development/src/core/include/math/distributiongenerator.h:123:13: note: call to ‘void free(void*)’ here 123 | free(mem); | ~~~~^~~~~ cc1plus: all warnings being treated as errors make[2]: *** [src/core/CMakeFiles/coreobj.dir/build.make:76: src/core/CMakeFiles/coreobj.dir/lib/encoding/ckkspackedencoding.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:547: src/core/CMakeFiles/coreobj.dir/all] Error 2 make: *** [Makefile:136: all] Error 2
- Make version 4.3
- cmake version 3.24.2
- gcc version 12.2.0