root@ubuntu:~# gcc --version
gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@ubuntu:~# cmake --version
cmake version 3.13.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
root@ubuntu:~# dpkg -s libboost-dev | grep 'Version'
Version: 1.58.0.1ubuntu1
root@ubuntu:~# uname -a
Linux ubuntu 4.9.137-0409137-generic #201811131541 SMP Tue Nov 13 20:44:19 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
Evrything are in line with the requirements of the compilation, but it is unable to compile successfully.
I verified the boost version and its 1.58 as it seems you used.
Your are compiling it on a LTS?
Maybe you are missing cpu power if that is a server/droplet.I would use a computer with multiple thread if you haven't try.
Except that, if you installed dependencies, I can't say and would search about that error on google to see how it can be resolved.