Repository: mlcommons/inference
Issue: Error installing Loadgen: command 'gcc' failed with exit status 1
Root cause: Validation Gap

Hi!

I'm trying to install MLPerf Inference Benchmarks locally without docker and I get some issue while trying to install Loadgen:


I'm currently running this on:

MacOS BigSur 11.4
Python 3.7.5
And I get the following output when running the command CFLAGS="-std=c++14" python setup.py develop --user :


`/Users/admin/Library/Python/3.9/bin


running develop
running egg_info
writing mlperf_loadgen.egg-info/PKG-INFO
writing dependency_links to mlperf_loadgen.egg-info/dependency_links.txt
writing top-level names to mlperf_loadgen.egg-info/top_level.txt
reading manifest file 'mlperf_loadgen.egg-info/SOURCES.txt'
writing manifest file 'mlperf_loadgen.egg-info/SOURCES.txt'
running build_ext
building 'mlperf_loadgen' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -std=c++14 -DMAJOR_VERSION=1 -DMINOR_VERSION=1 -I. -I../third_party/pybind/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c issue_query_controller.cc -o build/temp.macosx-10.9-x86_64-3.7/issue_query_controller.o
issue_query_controller.cc:547:20: warning: lambda capture 'thread_idx' is not used [-Wunused-lambda-capture]
        LogDetail([thread_idx](AsyncDetail& detail) {
                   ^
issue_query_controller.cc:312:7: note: in instantiation of function template specialization 'mlperf::loadgen::IssueQueryController::IssueQueriesInternal<mlperf::TestScenario::Server, true>' requested here
      IssueQueriesInternal<TestScenario::Server, true>(num_threads, thread_idx);
      ^
issue_query_controller.cc:547:20: warning: lambda capture 'thread_idx' is not used [-Wunused-lambda-capture]
        LogDetail([thread_idx](AsyncDetail& detail) {
                   ^
issue_query_controller.cc:365:5: note: in instantiation of function template specialization 'mlperf::loadgen::IssueQueryController::IssueQueriesInternal<mlperf::TestScenario::MultiStream, false>' requested here
    IssueQueriesInternal<scenario, false>(1, 0);
    ^
issue_query_controller.cc:547:20: warning: lambda capture 'thread_idx' is not used [-Wunused-lambda-capture]
        LogDetail([thread_idx](AsyncDetail& detail) {
                   ^
issue_query_controller.cc:365:5: note: in instantiation of function template specialization 'mlperf::loadgen::IssueQueryController::IssueQueriesInternal<mlperf::TestScenario::MultiStreamFree, false>' requested here
    IssueQueriesInternal<scenario, false>(1, 0);
    ^
issue_query_controller.cc:547:20: warning: lambda capture 'thread_idx' is not used [-Wunused-lambda-capture]
        LogDetail([thread_idx](AsyncDetail& detail) {
                   ^
issue_query_controller.cc:365:5: note: in instantiation of function template specialization 'mlperf::loadgen::IssueQueryController::IssueQueriesInternal<mlperf::TestScenario::Offline, false>' requested here
    IssueQueriesInternal<scenario, false>(1, 0);
    ^
issue_query_controller.cc:547:20: warning: lambda capture 'thread_idx' is not used [-Wunused-lambda-capture]
        LogDetail([thread_idx](AsyncDetail& detail) {
                   ^
issue_query_controller.cc:365:5: note: in instantiation of function template specialization 'mlperf::loadgen::IssueQueryController::IssueQueriesInternal<mlperf::TestScenario::Server, false>' requested here
    IssueQueriesInternal<scenario, false>(1, 0);
    ^
issue_query_controller.cc:547:20: warning: lambda capture 'thread_idx' is not used [-Wunused-lambda-capture]
        LogDetail([thread_idx](AsyncDetail& detail) {
                   ^
issue_query_controller.cc:365:5: note: in instantiation of function template specialization 'mlperf::loadgen::IssueQueryController::IssueQueriesInternal<mlperf::TestScenario::SingleStream, false>' requested here
    IssueQueriesInternal<scenario, false>(1, 0);
    ^
6 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -std=c++14 -DMAJOR_VERSION=1 -DMINOR_VERSION=1 -I. -I../third_party/pybind/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c loadgen.cc -o build/temp.macosx-10.9-x86_64-3.7/loadgen.o
In file included from loadgen.cc:34:
In file included from ./issue_query_controller.h:21:
./logging.h:716:26: error: invalid operands to binary expression ('basic_ostream<char>' and 'const std::__1::vector<unsigned long>')
        << "\"value\": " << ArgValueTransform(value) << ", "
        ~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~
./logging.h:553:16: note: in instantiation of function template specialization 'mlperf::logging::AsyncLog::LogDetail<std::__1::vector<unsigned long>>' requested here
    async_log_.LogDetail(key, value, file_name, line_no);
               ^
loadgen.cc:958:5: note: in instantiation of function template specialization 'mlperf::logging::AsyncDetail::Log<std::__1::vector<unsigned long>>' requested here
    MLPERF_LOG(detail, "loaded_qsl_set", samples);
    ^
./logging.h:21:10: note: expanded from macro 'MLPERF_LOG'
  logger.Log((key), (value), __FILE__, __LINE__)
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:760:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'char' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:793:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, char __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:800:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'signed char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:807:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'unsigned char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:821:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const char *' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:867:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const char *' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:874:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const signed char *' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:882:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const unsigned char *' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1066:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const std::__1::error_code' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/thread:213:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'std::__1::__thread_id' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, __thread_id __id)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:3895:1: note: candidate function template not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const std::__1::bernoulli_distribution' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const bernoulli_distribution& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:753:1: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'std::__1::vector<unsigned long>')
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:814:1: note: candidate template ignored: could not match 'const _CharT *' against 'std::__1::vector<unsigned long>'
operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1049:1: note: candidate template ignored: could not match 'basic_string' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1057:1: note: candidate template ignored: could not match 'basic_string_view' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1074:1: note: candidate template ignored: could not match 'shared_ptr' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1093:1: note: candidate template ignored: could not match 'bitset' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1039:1: note: candidate template ignored: requirement '!is_lvalue_reference<std::__1::basic_ostream<char, std::__1::char_traits<char>> &>::value' was not satisfied [with _Stream = std::__1::basic_ostream<char> &, _Tp = std::__1::vector<unsigned long>]
operator<<(_Stream&& __os, const _Tp& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:1086:1: note: candidate template ignored: could not match 'unique_ptr' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, unique_ptr<_Yp, _Dp> const& __p)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:362:1: note: candidate template ignored: could not match '__iom_t8' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, const __iom_t8<_MoneyT>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:482:1: note: candidate template ignored: could not match '__iom_t10' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os, const __iom_t10<_CharT>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:572:33: note: candidate template ignored: could not match '__quoted_output_proxy' against 'vector'
basic_ostream<_CharT, _Traits>& operator<<(
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:592:33: note: candidate template ignored: could not match '__quoted_proxy' against 'vector'
basic_ostream<_CharT, _Traits>& operator<<(
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:1981:1: note: candidate template ignored: could not match 'linear_congruential_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:2451:1: note: candidate template ignored: could not match 'mersenne_twister_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:2772:1: note: candidate template ignored: could not match 'subtract_with_carry_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:2954:1: note: candidate template ignored: could not match 'discard_block_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:3207:1: note: candidate template ignored: could not match 'independent_bits_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:3439:1: note: candidate template ignored: could not match 'shuffle_order_engine' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:3662:1: note: candidate template ignored: could not match 'uniform_int_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:3783:1: note: candidate template ignored: could not match 'uniform_real_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4078:1: note: candidate template ignored: could not match 'binomial_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4196:1: note: candidate template ignored: could not match 'exponential_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4350:1: note: candidate template ignored: could not match 'normal_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4500:1: note: candidate template ignored: could not match 'lognormal_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4724:1: note: candidate template ignored: could not match 'poisson_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4835:1: note: candidate template ignored: could not match 'weibull_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:4954:1: note: candidate template ignored: could not match 'extreme_value_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5126:1: note: candidate template ignored: could not match 'gamma_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5262:1: note: candidate template ignored: could not match 'negative_binomial_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5368:1: note: candidate template ignored: could not match 'geometric_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5472:1: note: candidate template ignored: could not match 'chi_squared_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5592:1: note: candidate template ignored: could not match 'cauchy_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5714:1: note: candidate template ignored: could not match 'fisher_f_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:5830:1: note: candidate template ignored: could not match 'student_t_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:6053:1: note: candidate template ignored: could not match 'discrete_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:6355:1: note: candidate template ignored: could not match 'piecewise_constant_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/random:6695:1: note: candidate template ignored: could not match 'piecewise_linear_distribution' against 'vector'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:195:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument
    basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&))
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:199:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'basic_ios<std::__1::basic_ostream<char>::char_type> &(*)(basic_ios<std::__1::basic_ostream<char>::char_type> &)' (aka 'basic_ios<char> &(*)(basic_ios<char> &)') for 1st argument
    basic_ostream& operator<<(basic_ios<char_type, traits_type>&
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:204:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'std::__1::ios_base &(*)(std::__1::ios_base &)' for 1st argument
    basic_ostream& operator<<(ios_base& (*__pf)(ios_base&))
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:207:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'bool' for 1st argument
    basic_ostream& operator<<(bool __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:208:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'short' for 1st argument
    basic_ostream& operator<<(short __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:209:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'unsigned short' for 1st argument
    basic_ostream& operator<<(unsigned short __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:210:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'int' for 1st argument
    basic_ostream& operator<<(int __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:211:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'unsigned int' for 1st argument
    basic_ostream& operator<<(unsigned int __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:212:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'long' for 1st argument
    basic_ostream& operator<<(long __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:213:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'unsigned long' for 1st argument
    basic_ostream& operator<<(unsigned long __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:214:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'long long' for 1st argument
    basic_ostream& operator<<(long long __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:215:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'unsigned long long' for 1st argument
    basic_ostream& operator<<(unsigned long long __n);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:216:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'float' for 1st argument
    basic_ostream& operator<<(float __f);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:217:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'double' for 1st argument
    basic_ostream& operator<<(double __f);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:218:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'long double' for 1st argument
    basic_ostream& operator<<(long double __f);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:219:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'const void *' for 1st argument; take the address of the argument with &
    basic_ostream& operator<<(const void* __p);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:220:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'basic_streambuf<std::__1::basic_ostream<char>::char_type> *' (aka 'basic_streambuf<char> *') for 1st argument
    basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:223:20: note: candidate function not viable: no known conversion from 'const std::__1::vector<unsigned long>' to 'std::nullptr_t' (aka 'nullptr_t') for 1st argument
    basic_ostream& operator<<(nullptr_t)
                   ^
1 error generated.
error: command 'gcc' failed with exit status 1`

Could you pleas help me about this Thank you!

We don't have any submitter tried on Mac OS. If you have a fix to this issue on Mac OS, please provide a PR with the fix

@AniFace which gcc version are you using?