I had an older debian machine where the compilation succeeded.
After doing dist-upgrade, and autoremove cmake failed because of missing libboost.
I added this:
apt-get install gcc g++ cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git libboost-all-dev
after this, cmake finishes with no errors but the compliation stops with the error above (‘fcontext_t’ in namespace ‘bc’ does not name a type).