Git Product home page Git Product logo

Comments (6)

Janmajayamall avatar Janmajayamall commented on September 23, 2024

Can you share more details about the machine you are using to build ?

from openfhe-development.

hzs268 avatar hzs268 commented on September 23, 2024

I have the same problem when I try to build in windows 10 with the official guidence :
"https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/windows.html"

Admin@HZS-DESKTOP MINGW64 /d/download/openfhe-development/build
$ cmake ..
-- Building in Release mode
-- BUILD_UNITTESTS: ON
-- BUILD_EXAMPLES: ON
-- BUILD_BENCHMARKS: ON
-- BUILD_EXTRAS: OFF
-- BUILD_STATIC: OFF
-- BUILD_SHARED: ON
-- GIT_SUBMOD_AUTO: ON
-- WITH_BE2: ON
-- WITH_BE4: ON
-- WITH_NTL: OFF
-- WITH_TCM: OFF
-- WITH_INTEL_HEXL: OFF
-- WITH_OPENMP: ON
-- NATIVE_SIZE: 64
-- CKKS_M_FACTOR: 1
-- WITH_NATIVEOPT: OFF
-- WITH_COVTEST: OFF
-- USE_MACPORTS: OFF
-- BUILTIN_INFO_AVAILABLE is defined
***** INSTALL IS AT C:/Program Files (x86)/OpenFHE; to change, run cmake with -DCMAKE_INSTALL_PREFIX=/your/path
-- Architecture is x86_64
-- NATIVEINT is set to 64
-- MATHBACKEND is set to 4
-- Submodule update
-- git version: v1.5.5-14-ge451e50e normalized to 1.5.5.14
-- Version: 1.5.5.14
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done (1.0s)
-- Generating done (0.4s)
-- Build files have been written to: D:/download/openfhe-development/build

Admin@HZS-DESKTOP MINGW64 /d/download/openfhe-development/build
$ make -j16
-- Copied demoData files
[ 0%] Building CXX object third-party/google-benchmark/src/CMa[k e 1F%i]l esB/ubielndcihnmga rCkX.dXi ro/bbjeenccth mtahrikr.cdc-.pobjar
ty/google-benchmark/src/CMakeFil[e s[ 1/ b%1e]%n ]c hBmuBaiurlikdl.iddniignr g/C bXCeXXn Xco hbomjbaerjcket_c attph iit_hriindtr-edrp-naparlt.aycr/tgcyo./ooggboljoe
g-lbee-nbcehmarkn/cshrmca/rCkM/askrecF/iClMeask/ebFeinlcehsm/abrekn.cdhimra/rbke.ndcihrm/abrekn_cnhammaer.kc_cr.eogbijs
ter.cc.obj
[ 1%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benc[h m 2a%r]k .dBiuri/lcdoilnogr pCrXiXn to.bcjce.cotb jthird-party/google-benchmark/src/CMakeFiles/benchmark.dir/benchmark_runner.cc.obj
[ 2%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.cc.obj
[ 3%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/complexity.cc.obj
[ 3%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/console_reporter.cc.obj
[ 3%] Building CXX object third-party/google-benchmark/src/CM[a k e3F%i]l es/Bbueinlcth mtaarrkg.edti rt/hciorudn-tpearr.tcyc
.obj
[ 4%] Building CXX object third-party/google-benchmark/src/CMakeFiles/be[n c h4m%a]r k.dBiuri/lcdsivn_gr eCpXoXr toebrj.eccct. otbhjir
d-party/google-benchmark/src/CMakeFiles/benchmark.dir/json_reporter.cc.obj
[ 4%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/perf_counters.cc.obj
[ 5%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.obj
[ 5%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/sleep.cc.obj
[ 5%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/be2-poly-impl.cpp.obj
[ 5%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/be4-poly-impl.cpp.obj
[ 6%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/be6-poly-impl.cpp.obj
[ 6%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.obj
[ 6%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/benative-poly-impl.cpp.obj
[ 6%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/dgsampling.cpp.obj
[ 7%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.obj
[ 8%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/elemparamfactory.cpp.obj
[ 8%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/elemparams.cpp.obj
[ 8%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/field2n.cpp.obj
[ 9%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/hal/default/dcrtpoly-impl.cpp.obj
[ 9%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/hal/default/dcrtpoly.cpp.obj
[ 9%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/ildcrtparams.cpp.obj
[ 10%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/ilparams.cpp.obj
[ 10%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/matrix-lattice-impl.cpp.obj
[ 10%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/poly-impl.cpp.obj
[ 10%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.obj
[ 10%] Building CXX object third-party/google-benchmark/src/CMakeFiles/benchmark.dir/timers.cc.obj
[ 11%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/poly.cpp.obj
[ 11%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/stdlatticeparms.cpp.obj
[ 11%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/trapdoor-dcrtpoly-impl.cpp.obj
[ 12%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/trapdoor-poly-impl.cpp.obj
[ 12%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/lattice/trapdoor.cpp.obj
[ 12%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/binaryuniformgenerator.cpp.obj
[ 13%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/chebyshev.cpp.obj
[ 13%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/dftransform.cpp.obj
[ 13%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/discretegaussiangenerator.cpp.obj
[ 14%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/discretegaussiangeneratorgeneric.cpp.obj
[[ 1144%%]] BBuuiillddiinngg CCXXXX oobbjjeecctt ssrrcc//ccoorree//CCMMaakkeeFFiilleess//ccoorreeoobbjj..ddiirr//lliibb//mmaatthh//ddiissctrreitbeuutniiofnogremngeernaetroart.ocrp.pc.popb.jo
bj
[ 14%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintdyn/be4-math-impl.cpp.obj
[ 15%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintdyn/mubintvecdyn.cpp.obj
[ 15%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintdyn/ubintdyn.cpp.obj
[ 16%] Linking CXX static library ../../../lib/libbenchmark.a
[ 16%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintfxd/be2-math-impl.cpp.obj
[ 17%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintfxd/mubintvecfxd.cpp.obj
[ 17%] Built target benchmark
[ 17%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintfxd/ubintfxd.cpp.obj
[ 17%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintntl/be6-math-impl.cpp.obj
[ 18%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintntl/mubintvecntl.cpp.obj
[ 18%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/bigintntl/ubintntl.cpp.obj
[ 18%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/intnat/benative-math-impl.cpp.obj
[ 19%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/intnat/mubintvecnat.cpp.obj
[ 19%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/hal/intnat/ubintnat.cpp.obj
[ 19%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/matrix-impl.cpp.obj
[ 20%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/matrix.cpp.obj
[ 20%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/matrixstrassen.cpp.obj
[ 20%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/nbtheory.cpp.obj
[ 21%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/nbtheory2.cpp.obj
[ 21%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/math/ternaryuniformgenerator.cpp.obj
[ 21%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/blockAllocator/blockAllocator.cpp.obj
[ 22%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/blockAllocator/xallocator.cpp.obj
[ 22%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/debug.cpp.obj
[ 22%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/demangle.cpp.obj
[ 23%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/hashutil.cpp.obj
[ 23%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/inttypes.cpp.obj
[ 23%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/openfhebase64.cpp.obj
[ 25%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/parallel.cpp.obj
[ 25%] Building C object src/core/CMakeFiles/coreobj.dir/lib/utils/prng/blake2b-ref.c.obj
[ 25%] Building C object src/core/CMakeFiles/coreobj.dir/lib/utils/prng/blake2xb-ref.c.obj
[ 26%] Building CXX object src/core/CMakeFiles/coreobj.dir/lib/utils/utilities.cpp.obj
[ 26%] Built target coreobj
[ 26%] Linking CXX shared library ../../lib/libOPENFHEcore.dll
[ 26%] Built target OPENFHEcore
[ 27%] Building CXX object src/core/CMakeFiles/parallel.dir/examples/parallel.cpp.obj
[ 27%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTest128.cpp.obj
[ 27%] Building CXX object src/pke/CMakeF[i l2e7s%/]p keobBju.idlidri/[nl 28gi% b]C/ XcXiB puohibeljrdeticentxg t s-CriXcmX/p clo.obrjcee/pcCptM. aoskrbecj/F
ciolree[s/ /C2cM8oa%kr]eeF[ il_B2etu9sei%/sl]ctd osi.nrBdgeui _ilCtrdXe/iXsun tngosi tCb.tXjdeXeis crto//tbUu jnnseiircttctTt/ eecsssottrr/BciUenn//iVcetCocTMrteae.sk/etcCFMpBiapilk.noeeIbFjn
istl/.cceopsrpe/._sotabemjspt
lsi.ndgi.rd/iurn[/ ie3tx0ta%em]sp tl/eUBsnu/iilstTaedmsiptlnBigl noCgcXkX.A cloplbopjc.[eao ctb3tej0 .%
sc]rpc /pp.Bkouebi/jlC
dMiankge FCiXXl eosb/jpekceto bsjr.cd/iprk/el/iCbM/ackoenFsitlaenst/sp-kiemopblj..cdpipr./olbijb/
cryptocon[t e3x0t%.]c pp.Boubijld
i[n g3 0C%X]X obBjueicltd sirncg/ bCiXnXf hoeb/jCeMcatk esFricl/ebsi/nbfihnef/hCeMoabkje.Fdiilre/sl/ibbi/nbfihnefohbej-.cdoinrs/tlainbt/sb-iinmf[ph le3.-1cb%[pa]sp e.3-o1Bsb[%ucj ]ih
3 le1dmi%Ben]u g.ic lBpCdupXii.Xnlo gdbo ijbCnj
XgeX c CtoX Xbs jroceb/cjcteo crster /csC/rMpcak/k[eceo/ FrC3ieM2l/a%eCk]sMe /aFckiBoelurFeieisl_l/dtepieskns/eg[tco sobC3.rjX2de.X%i_d ]rtio /erbusB/jntuleistici.tbtlde/ discsirtrrn//ycguUp/ nntbCiiotXticTXtnoe efnsoshttbteeCj//xoeUCtmcnMfmti aoatscrkTtnceeoE/FsilcrtleoyDemr.eseCc/pnR/CptTbM.sEiao.lnkbcefejpmhFp
eei.nolotbebsj.jsc./
pdcpio.rro/ebl_jit
be/sbtisn.fdhierc/ounntietxtte.sctp/pU.noibtjTe
stDistrGen.cpp.obj
[ 33%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/cryptoobject-impl.cpp.obj
[ 33%] Linking CXX executable ../../bin/examples/co[r e3/3p%a]r allLeiln.keixneg
CXX executable ../../bin/examples/core/sampling.exe
[ 33%] Building CXX object src/binfhe/CMakeFiles/binfheobj.dir/lib/lwe-pke.cpp.obj
[ 33%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/encoding/ckkspackedencoding.cpp.obj
[ 33%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/encoding/coefpackedencoding.cpp.obj
[ 33%] Built target parallel
[ 33%] Built target sampling
[ 33%] Building CXX object src/binfhe/CMakeFiles/binfheobj.dir/lib/rgsw-acc-cggi.cpp.obj
[ 33%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/encoding/encodingparams.cpp.obj
[ 34%] Building CXX object src/binfhe/CMakeFiles/binfheobj.dir/lib/rgsw-acc-dm.cpp.obj
[ 34%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestException.cpp.obj
[ 34%] Building CXX object src/binfhe/CMakeFiles/binfheobj.dir/lib/rgsw-acc.cpp.obj
[ 34%] Building CXX object src/binfhe/CMakeFiles/binfheobj.dir/lib/rgsw-cryptoparameters.cpp.obj
[ 35%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestField2n.cpp.obj
[ 36%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/encoding/packedencoding.cpp.obj
[ 36%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestLatticeParams.cpp.obj
[ 36%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/encoding/stringencoding.cpp.obj
[ 36%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestMatrix.cpp.obj
[ 36%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/globals-impl.cpp.obj
[ 37%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/key/evalkey.cpp.obj
[ 37%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/key/evalkeyrelin.cpp.obj
[ 38%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestMubintvec.cpp.obj
[ 38%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestNTT.cpp.obj
[ 38%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/key/privatekey.cpp.obj
[ 38%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestNbTheory.cpp.obj
[ 39%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestPolyElements.cpp.obj
[ 39%] Built target binfheobj
[ 39%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestSTLBlockAllocate.cpp.obj
[ 40%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/key/publickey.cpp.obj
[ 41%] Linking CXX shared library ../../lib/libOPENFHEbinfhe.dll
[ 41%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestSerialize.cpp.obj
[ 41%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/keyswitch/keyswitch-base.cpp.obj
[ 41%] Built target OPENFHEbinfhe
[ 42%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestTransform.cpp.obj
[ 42%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestTrapdoor.cpp.obj
[ 42%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestUtils.cpp.obj
[ 43%] Building CXX object src/binfhe/CMakeFiles/binfhe_tests.dir/unittest/UnitTestFHEW.cpp.obj
[ 43%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/keyswitch/keyswitch-bv.cpp.obj
[ 43%] Building CXX object src/binfhe/CMakeFiles/binfhe_tests.dir/unittest/UnitTestFHEWDeep.cpp.obj
[ 43%] Building CXX object src/binfhe/CMakeFiles/binfhe_tests.dir/unittest/UnitTestFHEWSerial.cpp.obj
[ 44%] Building CXX object src/binfhe/CMakeFiles/binfhe_tests.dir/unittest/UnitTestFunc.cpp.obj
[ 45%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/keyswitch/keyswitch-hybrid.cpp.obj
[ 45%] Building CXX object src/binfhe/CMakeFiles/binfhe_tests.dir///test/Main_TestAll.cpp.obj
[ 45%] Building CXX object src/binfhe/CMakeFiles/boolean-ap.dir/examples/boolean-ap.cpp.obj
[ 46%] Building CXX object src/core/CMakeFiles/core_tests.dir/unittest/UnitTestXallocate.cpp.obj
[ 46%] Building CXX object src/core/CMakeFiles/core_tests.dir///test/Main_TestAll.cpp.obj
[ 47%] Building CXX object src/binfhe/CMakeFiles/boolean-serial-binary-dynamic-large-precision.dir/examples/boolean-serial-binary-dynamic-large-precision.cpp.obj
[ 47%] Building CXX object src/pke/CMakeFiles/pkeobj.dir/lib/scheme/bfvrns/bfvrns-cryptoparameters.cpp.obj
[ 48%] Linking CXX executable ../../bin/examples/binfhe/boolean-ap.exe
In file included from D:/download/openfhe-development/third-party/cereal/include/cereal/types/polymorphic.hpp:39,
from D:/download/openfhe-development/src/core/include/utils/serializable.h:58,
from D:/download/openfhe-development/src/core/include/math/hal.h:53,
from D:/download/openfhe-development/src/core/include/lattice/hal/default/dcrtpoly.h:45,
from D:/download/openfhe-development/src/core/include/lattice/hal/default/lat-backend-default.h:39,
from D:/download/openfhe-development/src/core/include/lattice/lat-hal.h:42,
from D:/download/openfhe-development/src/binfhe/include/binfhe-base-params.h:35,
from D:/download/openfhe-development/src/binfhe/include/binfhe-base-scheme.h:35,
from D:/download/openfhe-development/src/binfhe/include/binfhecontext.h:39,
from D:/download/openfhe-development/src/binfhe/include/binfhecontext-ser.h:39,
from D:/download/openfhe-development/src/binfhe/unittest/UnitTestFHEWSerial.cpp:39:
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp: In instantiation of 'static const
Derived* cereal::detail::PolymorphicCasters::downcast(const void*, const std::type_info&) [with Derived = lbcrypto::LWECryptoParams]':
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:670:64: required from 'cereal::detail::OutputBindingCreator<Archive, T>::OutputBindingCreator() [with Archive = cereal::JSONOutputArchive; T = lbcrypto::LWECryptoParams]'

......

D:/download/openfhe-development/third-party/cereal/include/cereal/details/static_object.hpp:73:20: required from 'static T& cereal::detail::StaticObject::create() [with T = cereal::detail::InputBindingCreator<cereal::JSONInputArchive, lbcrypto::SchemeBFVRNS>]'
D:/download/openfhe-development/third-party/cereal/include/cereal/details/static_object.hpp:84:24: required from 'static T& cereal::detail::StaticObject::getInstance() [with T = cereal::detail::InputBindingCreator<cereal::JSONInputArchive, lbcrypto::SchemeBFVRNS>]'
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:723:90: required from 'static const cereal::detail::InputBindingCreator<Archive, T>& cereal::detail::create_bindings<Archive, T>::load(std::true_type) [with Archive = cereal::JSONInputArchive; T = lbcrypto::SchemeBFVRNS; std::true_type = std::integral_constant<bool, true>]'
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:769:39: required from 'static void cereal::detail::polymorphic_serialization_support<Archive, T>::instantiate() [with Archive = cereal::JSONInputArchive; T = lbcrypto::SchemeBFVRNS]'
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:757:49: required from 'struct cereal::detail::polymorphic_serialization_support<cereal::JSONInputArchive, lbcrypto::SchemeBFVRNS>'
D:/download/openfhe-development/third-party/cereal/include/cereal/archives/json.hpp:1102:1: required by substitution of 'template<class T, class BindingTag> typename cereal::detail::polymorphic_serialization_support<cereal::JSONInputArchive, T>::type cereal::detail::instantiate_polymorphic_binding(T*, cereal::JSONInputArchive*, BindingTag, adl_tag) [with T = lbcrypto::SchemeBFVRNS; BindingTag = cereal::detail::polymorphic_binding_tag]'
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:785:40: required from 'void cereal::detail::bind_to_archives<T, Tag>::bind(std::false_type) const [with T = lbcrypto::SchemeBFVRNS; Tag = cereal::detail::polymorphic_binding_tag; std::false_type = std::integral_constant<bool, false>]'
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:799:13: required from 'const cereal::detail::bind_to_archives<T, Tag>& cereal::detail::bind_to_archives<T, Tag>::bind() const [with T = lbcrypto::SchemeBFVRNS; Tag = cereal::detail::polymorphic_binding_tag]'
D:/download/openfhe-development/src/pke/include/scheme/bfvrns/bfvrns-ser.h:43:1: required from here
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:218:22: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
218 | auto const & mapping = lookup( baseInfo, typeid(Derived), &{ UNREGISTERED_POLYMORPHIC_CAST_EXCEPTION(load) } );
| ^~~~~~~
D:/download/openfhe-development/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:218:38: note: the temporary was destroyed at the end of the full expression 'cereal::detail::PolymorphicCasters::lookup<cereal::detail::PolymorphicCasters::upcastlbcrypto::SchemeBFVRNS(lbcrypto::SchemeBFVRNS*, const std::type_info&)::<lambda()> >(std::type_index((* & baseInfo)), std::type_index(_ZTIN8lbcrypto12SchemeBFVRNSE), cereal::detail::PolymorphicCasters::upcastlbcrypto::SchemeBFVRNS(lbcrypto::SchemeBFVRNS*, const std::type_info&)::<lambda()>{(* & baseInfo)})'
218 | auto const & mapping = lookup( baseInfo, typeid(Derived), &{ UNREGISTERED_POLYMORPHIC_CAST_EXCEPTION(load) }
;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors
make[2]: *** [src/pke/CMakeFiles/pke_tests.dir/build.make:242: src/pke/CMakeFiles/pke_tests.dir/unittest/utbfvrns/UnitTestBFVrnsSerialize.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:880: src/pke/CMakeFiles/pke_tests.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

##############################################################################
Here is my env settings(with lastest MSY2 version [msys2-x86_64-20230318.exe] "https://www.msys2.org/#installation"):

Admin@HZS-DESKTOP MINGW64 /d/download/openfhe-development/build
$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-13.1.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/include --libexecdir=/mingw64/lib --enable-bootstrap --enable-checking=release --with-arch=nocona --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-lto --enable-libgomp --disable-libssp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev6, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --disable-libstdcxx-debug --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.0 (Rev6, Built by MSYS2 project)

Admin@HZS-DESKTOP MINGW64 /d/download/openfhe-development/build
$ cmake --version
cmake version 3.26.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Admin@HZS-DESKTOP MINGW64 /d/download/openfhe-development/build
$ make -v
GNU Make 4.4.1
Built for x86_64-pc-msys
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

from openfhe-development.

zzzhhhlll avatar zzzhhhlll commented on September 23, 2024

G:/openfhe-development-main/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:218:22: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
218 | auto const & mapping = lookup( baseInfo, typeid(Derived), &{ UNREGISTERED_POLYMORPHIC_CAST_EXCEPTION(load) } );
| ^~~~~~

G:/openfhe-development-main/third-party/cereal/include/cereal/details/polymorphic_impl.hpp:204:22: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
204 | auto const & mapping = lookup( baseInfo, typeid(Derived), &{ UNREGISTERED_POLYMORPHIC_CAST_EXCEPTION(save) } );
| ^~~~~~~

these are errors
I don't know how to solve
(windows11 + msys2)

from openfhe-development.

yspolyakov avatar yspolyakov commented on September 23, 2024

@zzzhhhlll Can you confirm that you built using the main branch and used git to clone the repo?

from openfhe-development.

yspolyakov avatar yspolyakov commented on September 23, 2024

@dsuponitskiy I tried building using the main branch in MING64 + Windows 10 (g++ 12.2.0). Everything worked correctly. So the problem reported here might be specific to g++ 13 (v13.1.0 was mentioned above).

from openfhe-development.

dsuponitskiy avatar dsuponitskiy commented on September 23, 2024

A fix is currently available in the dev branch of OpenFHE. We will move it to main with the next OpenFHE release.

from openfhe-development.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.