Cannot build DGL from source code

I followed the steps to build DGL

# mkdir build && cd build
# cmake ..
# make

I tried to build the DGL from source code but it shows errors like the following:

dmlc-core/include/dmlc/./serializer.h:63:27: error: ‘Write’ is not a member of ‘dmlc::serializer::UndefinedSerializerFor<bool>’
     Else::Write(strm, data);
                           ^

What could be the possible reason for this? Any idea?

Looks like a duplicate of https://github.com/dmlc/dgl/issues/2162 and it has been addressed there.