Debian 7 Wheezy compilation errors


#1

System - 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux
Trying to build according to https://github.com/zcash/zcash/wiki/1.0-User-Guide and got errors on build step
./zcutil/build.sh -j$(nproc)

...

echo Building libsnark...
Building libsnark...
mkdir -p /home/z/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-2f195ee328b/.
cd /home/z/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-2f195ee328b/.; PATH=/home/z/zcash/depends/x86_64-unknown-linux-gnu/native/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" make lib DEPINST=/home/z/zcash/depends/x86_64-unknown-linux-gnu CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
make[1]: Entering directory `/home/z/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-2f195ee328b'
g++ -o src/algebra/curves/alt_bn128/alt_bn128_g1.o src/algebra/curves/alt_bn128/alt_bn128_g1.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/algebra/curves/alt_bn128/alt_bn128_g2.o src/algebra/curves/alt_bn128/alt_bn128_g2.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/algebra/curves/alt_bn128/alt_bn128_init.o src/algebra/curves/alt_bn128/alt_bn128_init.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/algebra/curves/alt_bn128/alt_bn128_pairing.o src/algebra/curves/alt_bn128/alt_bn128_pairing.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/algebra/curves/alt_bn128/alt_bn128_pp.o src/algebra/curves/alt_bn128/alt_bn128_pp.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/common/profiling.o src/common/profiling.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/common/utils.o src/common/utils.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
g++ -o src/gadgetlib1/constraint_profiling.o src/gadgetlib1/constraint_profiling.cpp -c -MMD -fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=x86-64 -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/z/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC -DMULTICORE -fopenmp
In file included from src/common/serialization.tcc:20:0,
from src/common/serialization.hpp:102,
from src/algebra/fields/bigint.hpp:15,
from src/algebra/fields/fp.hpp:13,
from src/algebra/curves/alt_bn128/alt_bn128_init.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_g1.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_g1.cpp:8:
src/common/assert_except.hpp: In function ‘void assert_except(bool)’:
src/common/assert_except.hpp:8:15: error: ‘runtime_error’ is not a member of ‘std’
compilation terminated due to -Wfatal-errors.
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_g1.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from src/common/serialization.tcc:20:0,
from src/common/serialization.hpp:102,
from src/algebra/fields/bigint.hpp:15,
from src/algebra/fields/fp.hpp:13,
from src/algebra/curves/alt_bn128/alt_bn128_init.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_init.cpp:8:
src/common/assert_except.hpp: In function ‘void assert_except(bool)’:
src/common/assert_except.hpp:8:15: error: ‘runtime_error’ is not a member of ‘std’
compilation terminated due to -Wfatal-errors.
In file included from src/common/serialization.tcc:20:0,
from src/common/serialization.hpp:102,
from src/algebra/fields/bigint.hpp:15,
from src/algebra/fields/fp.hpp:13,
from src/algebra/curves/alt_bn128/alt_bn128_init.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_pp.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_pp.cpp:8:
src/common/assert_except.hpp: In function ‘void assert_except(bool)’:
src/common/assert_except.hpp:8:15: error: ‘runtime_error’ is not a member of ‘std’In file included from src/common/serialization.tcc:20:0,
from src/common/serialization.hpp:102,
from src/algebra/fields/bigint.hpp:15,
from src/algebra/fields/fp.hpp:13,
from src/algebra/curves/alt_bn128/alt_bn128_init.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_pairing.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_pairing.cpp:8:
src/common/assert_except.hpp: In function ‘void assert_except(bool)’:
src/common/assert_except.hpp:8:15: error: ‘runtime_error’ is not a member of ‘std’

compilation terminated due to -Wfatal-errors.
compilation terminated due to -Wfatal-errors.
In file included from src/common/serialization.tcc:20:0,
from src/common/serialization.hpp:102,
from src/algebra/fields/bigint.hpp:15,
from src/algebra/fields/fp.hpp:13,
from src/algebra/curves/alt_bn128/alt_bn128_init.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_g2.hpp:11,
from src/algebra/curves/alt_bn128/alt_bn128_g2.cpp:8:
src/common/assert_except.hpp: In function ‘void assert_except(bool)’:
src/common/assert_except.hpp:8:15: error: ‘runtime_error’ is not a member of ‘std’
compilation terminated due to -Wfatal-errors.
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_init.o] Error 1
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_pairing.o] Error 1
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_pp.o] Error 1
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_g2.o] Error 1
make[1]: Leaving directory /home/z/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-2f195ee328b'
make: *** [/home/z/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-2f195ee328b/./.stamp_built] Error 2
make: Leaving directory
/home/z/zcash/depends'


#2

The same issue found
github.com/zcash/zcash/issues/1702