I have a compiling issue of the zcash mining client. All dependencies in from github beta install guide prepared. Stuck here at this point. Please help!
./zcutil/build.sh -j$(nproc)
…
make[1]: Entering directory /home/dirk/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-125fb4a588e' 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=native -mtune=native -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/home/dirk/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]: Leaving directory /home/dirk/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-125fb4a588e’
make: *** [/home/dirk/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-125fb4a588e/./.stamp_built] Error 2
make: Leaving directory `/home/dirk/zcash/depends’
Linux 108 3.2.0-4-amd64 #1 SMP Debian 3.2.81-1 x86_64 GNU/Linux
I have had success building various pool miners in stretch (aka testing). And you don’t even need to upgrade your entire system. You can run debootstrap to have a little stretch system running inside of your jessie (or wheezy or whatever) main system. Here are the instructions I followed on how to do this: How To Configure Chroot Environments for Testing on an Ubuntu 12.04 VPS | DigitalOcean
And then once you have built the binary once, you don’t even need to repeat the build process every time you setup a new chroot, you can just copy the binary (assuming the systems are running on the same architecture, like amd64).