- 运行环境Ubuntu18.04
可能出现的错误
scanning dependencies of target helib_benchmark
[ 33%] Building CXX object CMakeFiles/helib_benchmark.dir/bench_thinboot.cpp.o
[ 66%] Building CXX object CMakeFiles/helib_benchmark.dir/bench_fatboot.cpp.o
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:19:24: error: variable or field ‘squareWithFatBoot’ declared void
void squareWithFatBoot(FHEPubKey& pk, Ctxt& c) {
^~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:19:24: error: ‘FHEPubKey’ was not declared in this scope
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:19:35: error: ‘pk’ was not declared in this scope
void squareWithFatBoot(FHEPubKey& pk, Ctxt& c) {
^~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:19:39: error: ‘Ctxt’ was not declared in this scope
void squareWithFatBoot(FHEPubKey& pk, Ctxt& c) {
^~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:19:39: note: suggested alternative:
In file included from /usr/local/include/helib/helib.h:22:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/local/include/helib/Ctxt.h:260:7: note: ‘helib::Ctxt’
class Ctxt {
^~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:19:45: error: ‘c’ was not declared in this scope
void squareWithFatBoot(FHEPubKey& pk, Ctxt& c) {
^
/home/wbq/HElib/benchmarks/bench_fatboot.cpp: In function ‘void BM_fatboot(benchmark::State&, long int, long int, long int, long int, long int, long int, int, std::vector<long int>, std::vector<long int>, std::vector<long int>)’:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:38:25: error: ‘convert’ was not declared in this scope
NTL::Vec<long> mvec = convert<NTL::Vec<long>>(mvector);
^~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:38:25: note: suggested alternative:
In file included from /usr/local/include/helib/DoubleCRT.h:19:0,
from /usr/local/include/helib/helib.h:20,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/local/include/helib/NumbTh.h:333:4: note: ‘helib::convert’
T1 convert(const T2& v2)
^~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:38:46: error: expected primary-expression before ‘>’ token
NTL::Vec<long> mvec = convert<NTL::Vec<long>>(mvector);
^~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:26: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘std::vector<long int>’)
std::cout << "m=" << m
~~~~~~~~~~~~~~~~~~~~~~
<< ", p=" << p
~~~~~~~~~~~~~~
<< ", r=" << r
~~~~~~~~~~~~~~
<< ", bits=" << bits
~~~~~~~~~~~~~~~~~~~~
<< ", c=" << c
~~~~~~~~~~~~~~
<< ", skHwt=" << t
~~~~~~~~~~~~~~~~~~
<< ", c_m=" << c_m
~~~~~~~~~~~~~~~~~~
<< ", mvec=" << mvec
~~~~~~~~~~~~~~~~~~~~
<< ", gens=" << gens
~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(__ostream_type& (*__pf)(__ostream_type&))
^~~~~~~~
/usr/include/c++/7/ostream:108:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}’
/usr/include/c++/7/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
operator<<(__ios_type& (*__pf)(__ios_type&))
^~~~~~~~
/usr/include/c++/7/ostream:117:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
/usr/include/c++/7/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(ios_base& (*__pf) (ios_base&))
^~~~~~~~
/usr/include/c++/7/ostream:127:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘std::ios_base& (*)(std::ios_base&)’
/usr/include/c++/7/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(long __n)
^~~~~~~~
/usr/include/c++/7/ostream:166:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘long int’
/usr/include/c++/7/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned long __n)
^~~~~~~~
/usr/include/c++/7/ostream:170:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘long unsigned int’
/usr/include/c++/7/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(bool __n)
^~~~~~~~
/usr/include/c++/7/ostream:174:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘bool’
In file included from /usr/include/c++/7/ostream:693:0,
from /usr/include/c++/7/iostream:39,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
basic_ostream<_CharT, _Traits>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/ostream.tcc:91:5: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘short int’
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned short __n)
^~~~~~~~
/usr/include/c++/7/ostream:181:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘short unsigned int’
In file included from /usr/include/c++/7/ostream:693:0,
from /usr/include/c++/7/iostream:39,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
basic_ostream<_CharT, _Traits>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/ostream.tcc:105:5: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘int’
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned int __n)
^~~~~~~~
/usr/include/c++/7/ostream:192:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘unsigned int’
/usr/include/c++/7/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(long long __n)
^~~~~~~~
/usr/include/c++/7/ostream:201:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘long long int’
/usr/include/c++/7/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(unsigned long long __n)
^~~~~~~~
/usr/include/c++/7/ostream:205:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘long long unsigned int’
/usr/include/c++/7/ostream:220:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(double __f)
^~~~~~~~
/usr/include/c++/7/ostream:220:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘double’
/usr/include/c++/7/ostream:224:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(float __f)
^~~~~~~~
/usr/include/c++/7/ostream:224:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘float’
/usr/include/c++/7/ostream:232:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(long double __f)
^~~~~~~~
/usr/include/c++/7/ostream:232:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘long double’
/usr/include/c++/7/ostream:245:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
operator<<(const void* __p)
^~~~~~~~
/usr/include/c++/7/ostream:245:7: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘const void*’
In file included from /usr/include/c++/7/ostream:693:0,
from /usr/include/c++/7/iostream:39,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/bits/ostream.tcc:119:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
basic_ostream<_CharT, _Traits>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/ostream.tcc:119:5: note: no known conversion for argument 1 from ‘std::vector<long int>’ to ‘std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:363:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Put_time<_CharT>)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f)
^~~~~~~~
/usr/include/c++/7/iomanip:363:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: ‘std::vector<long int>’ is not derived from ‘std::_Put_time<_CharT>’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:311:5: note: candidate: template<class _CharT, class _Traits, class _MoneyT> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Put_money<_MoneyT>)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f)
^~~~~~~~
/usr/include/c++/7/iomanip:311:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: ‘std::vector<long int>’ is not derived from ‘std::_Put_money<_MoneyT>’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:238:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setw)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f)
^~~~~~~~
/usr/include/c++/7/iomanip:238:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘std::_Setw’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:208:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setprecision)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f)
^~~~~~~~
/usr/include/c++/7/iomanip:208:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘std::_Setprecision’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:178:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setfill<_CharT>)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f)
^~~~~~~~
/usr/include/c++/7/iomanip:178:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: ‘std::vector<long int>’ is not derived from ‘std::_Setfill<_CharT>’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:143:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setbase)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f)
^~~~~~~~
/usr/include/c++/7/iomanip:143:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘std::_Setbase’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:109:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setiosflags)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f)
^~~~~~~~
/usr/include/c++/7/iomanip:109:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘std::_Setiosflags’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/Ptxt.h:20:0,
from /usr/local/include/helib/helib.h:26,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/iomanip:79:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Resetiosflags)
operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f)
^~~~~~~~
/usr/include/c++/7/iomanip:79:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘std::_Resetiosflags’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/memory:81:0,
from /usr/local/include/helib/NumbTh.h:30,
from /usr/local/include/helib/DoubleCRT.h:19,
from /usr/local/include/helib/helib.h:20,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/bits/shared_ptr.h:66:5: note: candidate: template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__shared_ptr<_Tp, _Lp>&)
operator<<(std::basic_ostream<_Ch, _Tr>& __os,
^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:66:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: ‘std::vector<long int>’ is not derived from ‘const std::__shared_ptr<_Tp, _Lp>’
<< ", gens=" << gens
^~~~
In file included from /usr/local/include/helib/NumbTh.h:21:0,
from /usr/local/include/helib/DoubleCRT.h:19,
from /usr/local/include/helib/helib.h:20,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/include/c++/7/complex:528:5: note: candidate: template<class _Tp, class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::complex<_Tp>&)
operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
^~~~~~~~
/usr/include/c++/7/complex:528:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: ‘std::vector<long int>’ is not derived from ‘const std::complex<_Tp>’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:682:5: note: candidate: template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&)
operator<<(_Ostream&& __os, const _Tp& __x)
^~~~~~~~
/usr/include/c++/7/ostream:682:5: note: template argument deduction/substitution failed:
/usr/include/c++/7/ostream: In substitution of ‘template<class _Ostream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_ostream<_Ostream>, std::__is_insertable<typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type, const _Tp&, void> >::value, typename std::__is_convertible_to_basic_ostream<_Tp>::__ostream_type>::type std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_ostream<char>&; _Tp = std::vector<long int>]’:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: required from here
/usr/include/c++/7/ostream:682:5: error: no type named ‘type’ in ‘struct std::enable_if<false, std::basic_ostream<char>&>’
/usr/include/c++/7/ostream:574:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
^~~~~~~~
/usr/include/c++/7/ostream:574:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘const unsigned char*’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:569:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
^~~~~~~~
/usr/include/c++/7/ostream:569:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘const signed char*’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:556:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
^~~~~~~~
/usr/include/c++/7/ostream:556:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘const char*’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/ostream:693:0,
from /usr/include/c++/7/iostream:39,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/bits/ostream.tcc:321:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
^~~~~~~~
/usr/include/c++/7/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘const char*’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:539:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
^~~~~~~~
/usr/include/c++/7/ostream:539:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: mismatched types ‘const _CharT*’ and ‘std::vector<long int>’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:519:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
^~~~~~~~
/usr/include/c++/7/ostream:519:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘unsigned char’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:514:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
^~~~~~~~
/usr/include/c++/7/ostream:514:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘signed char’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:508:5: note: candidate: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
operator<<(basic_ostream<char, _Traits>& __out, char __c)
^~~~~~~~
/usr/include/c++/7/ostream:508:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘char’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:502:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
^~~~~~~~
/usr/include/c++/7/ostream:502:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘char’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/iostream:39:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/ostream:497:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
^~~~~~~~
/usr/include/c++/7/ostream:497:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘std::vector<long int>’)
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:14:
/usr/include/c++/7/system_error:217:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
^~~~~~~~
/usr/include/c++/7/system_error:217:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: cannot convert ‘gens’ (type ‘std::vector<long int>’) to type ‘const std::error_code&’
<< ", gens=" << gens
^~~~
In file included from /usr/include/c++/7/string:52:0,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/bits/stl_map.h:63,
from /usr/include/c++/7/map:61,
from /usr/local/include/benchmark/benchmark.h:176,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:13:
/usr/include/c++/7/bits/basic_string.h:6284:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6284:5: note: template argument deduction/substitution failed:
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:47:29: note: ‘std::vector<long int>’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
<< ", gens=" << gens
^~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:51:3: error: ‘FHEcontext’ was not declared in this scope
FHEcontext context(m, p, r, gens, ords);
^~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:52:3: error: ‘context’ was not declared in this scope
context.zMStar.set_cM(c_m/100.0);
^~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:52:3: note: suggested alternative: ‘gettext’
context.zMStar.set_cM(c_m/100.0);
^~~~~~~
gettext
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:55:3: error: ‘buildModChain’ was not declared in this scope
buildModChain(context, bits, c, /*willBeBootstrappable=*/true, /*skHwt*/t);
^~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:55:3: note: suggested alternative:
In file included from /usr/local/include/helib/helib.h:21:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/local/include/helib/Context.h:504:6: note: ‘helib::buildModChain’
void buildModChain(Context& context, long nBits, long nDgts=3,
^~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:66:3: error: ‘FHESecKey’ was not declared in this scope
FHESecKey secret_key(context);
^~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:67:3: error: ‘secret_key’ was not declared in this scope
secret_key.GenSecKey();
^~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:67:3: note: suggested alternative: ‘setkey’
secret_key.GenSecKey();
^~~~~~~~~~
setkey
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:69:3: error: ‘addSome1DMatrices’ was not declared in this scope
addSome1DMatrices(secret_key);
^~~~~~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:69:3: note: suggested alternative:
In file included from /usr/local/include/helib/helib.h:23:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/local/include/helib/keySwitching.h:154:6: note: ‘helib::addSome1DMatrices’
void addSome1DMatrices(SecKey& sKey, long bound=FHE_KEYSWITCH_THRESH, long keyID=0);
^~~~~~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:70:3: error: ‘addFrbMatrices’ was not declared in this scope
addFrbMatrices(secret_key);
^~~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:70:3: note: suggested alternative:
In file included from /usr/local/include/helib/helib.h:23:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/local/include/helib/keySwitching.h:166:6: note: ‘helib::addFrbMatrices’
void addFrbMatrices(SecKey& sKey, long keyID=0);
^~~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:77:3: error: ‘FHEPubKey’ was not declared in this scope
FHEPubKey& public_key = secret_key;
^~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:77:14: error: ‘public_key’ was not declared in this scope
FHEPubKey& public_key = secret_key;
^~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:78:9: error: ‘EncryptedArray’ does not name a type
const EncryptedArray& ea = *(context.ea);
^~~~~~~~~~~~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:80:17: error: ‘ea’ was not declared in this scope
long nslots = ea.size();
^~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:88:3: error: ‘Ctxt’ was not declared in this scope
Ctxt ctxt(public_key);
^~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:88:3: note: suggested alternative:
In file included from /usr/local/include/helib/helib.h:22:0,
from /home/wbq/HElib/benchmarks/bench_fatboot.cpp:16:
/usr/local/include/helib/Ctxt.h:260:7: note: ‘helib::Ctxt’
class Ctxt {
^~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:89:14: error: ‘ctxt’ was not declared in this scope
ea.encrypt(ctxt, public_key, ptxt);
^~~~
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:89:14: note: suggested alternative: ‘ptxt’
ea.encrypt(ctxt, public_key, ptxt);
^~~~
ptxt
/home/wbq/HElib/benchmarks/bench_fatboot.cpp:91:5: error: ‘squareWithFatBoot’ was not declared in this scope
squareWithFatBoot(public_key, ctxt);
^~~~~~~~~~~~~~~~~
CMakeFiles/helib_benchmark.dir/build.make:92: recipe for target 'CMakeFiles/helib_benchmark.dir/bench_fatboot.cpp.o' failed
make[2]: *** [CMakeFiles/helib_benchmark.dir/bench_fatboot.cpp.o] Error 1
CMakeFiles/Makefile2:92: recipe for target 'CMakeFiles/helib_benchmark.dir/all' failed
make[1]: *** [CMakeFiles/helib_benchmark.dir/all] Error 2
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2
我是这样解决的:
FHEPubKey改为Pubkey,其他类似
- 运行部分结果(貌似放不开(其实不知道咋回事,格式崩了),所以放一个了…)
2020-06-21T07:06:22+08:00
Running ./helib_benchmark
Run on (1 X 2394.51 MHz CPU )
CPU Caches:
L1 Data 32 KiB (x1)
L1 Instruction 32 KiB (x1)
L2 Unified 256 KiB (x1)
L3 Unified 3072 KiB (x1)
Load Average: 2.76, 3.25, 1.59
***WARNING*** Library was built as DEBUG. Timings may be affected.
m=1271, p=2, r=1, bits=580, c=2, skHwt=64, c_m=100, mvec=[31 41], gens=[1026 249], ords=[30 -2]
Initialising context object...
Building modulus chain...
m = 1271, p = 2, phi(m) = 1200
ord(p)=20
normBnd=1.61896
polyNormBnd=3.93997
factors=[31 41]
generator 1026 has order (== Z_m^*) of 30
generator 249 has order (!= Z_m^*) of 2