Alpha version compile error

Test environment: Ubuntu 12.04 server x64
The compile details are as follows:
root@cloud:~/zcash# ./zcutil/fetch-params.sh
zcash - fetch-params.sh

Updating testnet3 symlinks to regtest parameters.
Verifying parameter file integrity via sha256sum...
regtest/z3-proving.key: OK
testnet3/z3-proving.key: OK
regtest/z3-verification.key: OK
testnet3/z3-verification.key: OK
root@cloud:~/zcash# ./zcutil/build.sh -j4
+++ readlink -f ./zcutil/build.sh
++ dirname /root/zcash/zcutil/build.sh
+ cd /root/zcash/zcutil/..
+ LCOV_ARG=
+ '[' x-j4 = x--enable-lcov ']'
++ pwd
+ PREFIX=/root/zcash/depends/x86_64-unknown-linux-gnu/
+ make -j4 -C ./depends/ V=1 NO_QT=1
make: Entering directory /root/zcash/depends'
echo Building libsnark...
Building libsnark...
mkdir -p /root/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-08d0aa24558/.
cd /root/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-08d0aa24558/.; PATH=/root/zcash/depends/x86_64-unknown-linux-gnu/native/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games CXXFLAGS="-fPIC -DNO_PT_COMPRESSION=1" make lib DEPINST=/root/zcash/depends/x86_64-unknown-linux-gnu CURVE=ALT_BN128 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1
make[1]: Entering directory
/root/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-08d0aa24558'
g++ -o src/algebra/curves/alt_bn128/alt_bn128_g1.o src/algebra/curves/alt_bn128/alt_bn128_g1.cpp -c -MMD -fPIC -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=native -mtune=native -DUSE_ASM -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/root/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC
g++ -o src/algebra/curves/alt_bn128/alt_bn128_g2.o src/algebra/curves/alt_bn128/alt_bn128_g2.cpp -c -MMD -fPIC -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=native -mtune=native -DUSE_ASM -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/root/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC
g++ -o src/algebra/curves/alt_bn128/alt_bn128_init.o src/algebra/curves/alt_bn128/alt_bn128_init.cpp -c -MMD -fPIC -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=native -mtune=native -DUSE_ASM -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/root/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC
g++ -o src/algebra/curves/alt_bn128/alt_bn128_pairing.o src/algebra/curves/alt_bn128/alt_bn128_pairing.cpp -c -MMD -fPIC -DNO_PT_COMPRESSION=1 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors -O2 -march=native -mtune=native -DUSE_ASM -DMONTGOMERY_OUTPUT -DCURVE_ALT_BN128 -I/root/zcash/depends/x86_64-unknown-linux-gnu/include -Isrc -DNO_PROCPS -static -DSTATIC
cc1plus: error: unrecognized command line option ‘-std=c++11’
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....
cc1plus: error: unrecognized command line option ‘-std=c++11’
compilation terminated due to -Wfatal-errors.
cc1plus: error: unrecognized command line option ‘-std=c++11’
compilation terminated due to -Wfatal-errors.
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_init.o] Error 1
cc1plus: error: unrecognized command line option ‘-std=c++11’
compilation terminated due to -Wfatal-errors.
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_g2.o] Error 1
make[1]: *** [src/algebra/curves/alt_bn128/alt_bn128_pairing.o] Error 1
make[1]: Leaving directory /root/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-08d0aa24558'
make: *** [/root/zcash/depends/work/build/x86_64-unknown-linux-gnu/libsnark/0.1-08d0aa24558/./.stamp_built] Error 2
make: Leaving directory
/root/zcash/depends'/1X/990fa2f5d3caa6ea6244e9776540ee1165f4b480.png" width="577" height="265">

I don't know the most up-to-date version of Ubuntu server but 12.04 sounds a little old to me... I just compiled z3 on Ubuntu 15.10 (the regular desktop version).

1 Like

The issue is already reported
github.com/zcash/zcash/issues/1702