Call of overloaded ‘OperatorMap(<brace-enclosed initializer list>)’ is ambiguous

Hello, I am trying to build libtorch from source and faced the following error.

pytorch/torch/csrc/jit/passes/device_type_analysis.cpp: In member function ‘void torch::jit::{anonymous}::DeviceTypePropagationPass::buildRuleRegistry()’:
pytorch/torch/csrc/jit/passes/device_type_analysis.cpp:240:5: error: call of overloaded ‘OperatorMap(<brace-enclosed initializer list>)’ is ambiguous
     };
     ^
In file included from pytorch/torch/csrc/jit/passes/device_type_analysis.cpp:6:0:
pytorch/torch/csrc/jit/ir/ir.h:1651:12: note: candidate: torch::jit::OperatorMap<T>::OperatorMap(std::initializer_list<std::pair<const char*, T> >) [with T = std::function<bool(torch::jit::Node*)>]
   explicit OperatorMap(std::initializer_list<std::pair<const char*, T>> init) {
            ^~~~~~~~~~~
pytorch/torch/csrc/jit/ir/ir.h:1646:12: note: candidate: torch::jit::OperatorMap<T>::OperatorMap(std::initializer_list<std::pair<std::shared_ptr<torch::jit::Operator>, T> >) [with T = std::function<bool(torch::jit::Node*)>]
   explicit OperatorMap(
            ^~~~~~~~~~~‘OperatorMap(<brace-enclosed initializer list>)’ is ambiguous

I cloned v1.11.0 and my compile setting is:

cmake -DBUILD_SHARED_LIBS:BOOL=ON -DUSE_MPI=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DPYTHON_EXECUTABLE:PATH=`which python3` -DUSE_CUDA=OFF -DCMAKE_INSTALL_PREFIX:PATH=../pytorch-install ../pytorch

Other information:

Debian 9
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
cmake version 3.18.4