Strange. The build error happens with the "brial-1.2.8".
I was always successful building Sage from the sources. Just today I have built 10.7 without problems (my log shows though that brial comes in version 1.2.14)
/usr/bin/bash ../../libtool --tag=CXX --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../libbrial/include/polybori -I../../groebner/include -I../../libbrial/include -I../../libbrial/include -ftemplate-depth-100 -g -O2 -c -o BlockDegLexOrder.lo BlockDegLexOrder.cc
[brial-1.2.8] [spkg-install] libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../libbrial/include/polybori -I../../groebner/include -I../../libbrial/include -I../../libbrial/include -ftemplate-depth-100 -g -O2 -c BlockDegLexOrder.cc -fPIC -DPIC -o .libs/BlockDegLexOrder.o
[brial-1.2.8] [spkg-install] In file included from ../../libbrial/include/polybori/ring/CCuddInterface.h:25,
[brial-1.2.8] [spkg-install] from ../../libbrial/include/polybori/ring/CCuddCore.h:22,
[brial-1.2.8] [spkg-install] from ../../libbrial/include/polybori/BoolePolyRing.h:24,
[brial-1.2.8] [spkg-install] from ../../libbrial/include/polybori/BoolePolynomial.h:30,
[brial-1.2.8] [spkg-install] from ../../libbrial/include/polybori/orderings/COrderingFacade.h:22,
[brial-1.2.8] [spkg-install] from ../../libbrial/include/polybori/orderings/CBlockOrderingFacade.h:19,
[brial-1.2.8] [spkg-install] from ../../libbrial/include/polybori/BlockDegLexOrder.h:22,
[brial-1.2.8] [spkg-install] from BlockDegLexOrder.cc:18:
[brial-1.2.8] [spkg-install] ../../libbrial/include/polybori/routines/pbori_func.h:114:15: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]