[zcash/zcash] compile error on master branch (#3476)

I need to update this problem . I update to the latest version and tried several times.

Zcash on one of my computers can be compiled correctly though I haven’t change anything and just use ./zcutil/build.sh -j4 or make . this one have only one RAM of 3G. Ubuntu version is Linux wyh-Z97X-UD3H 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux. gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)

Zcash on the other one can’t be compiled corretly even update to today version. I use ./zcutil/build.sh without -j$(nproc) and see nothing changes. What I only do is tye in git pull and ./zcutil/build.sh . gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) and Linux wyh-B85M-D3V 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.one RAM and it’s size is 1673248 kB. The compile error codes is as follow :
Makefile:3198: recipe for target ‘libbitcoin_server_a-sendalert.o’ failed
make[2]: *** [libbitcoin_server_a-sendalert.o] 段错误 (core dumped)
make[2]: Leaving directory ‘/home/wyh/gosrc/src/github.com/zcash/src’
Makefile:5721: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/wyh/gosrc/src/github.com/zcash/src’
Makefile:627: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1
wyh@wyh-B85M-D3V:~/gosrc/src/github.com/zcash$ git log
commit 622751da12790eb83432db9b26bca7129e856026
Merge: 20f87bc c0aa34a
Author: Homu

Auto merge of #3444 — LarryRuane:2982-mininode-version, r=str4d

generalize mininode.py protocol versioning

Fixes #2982 — replace `overwintered` boolean argument to NodeConn constructor with a protocol version integer, so that adding Sapling (and beyond) will be easier.

third of my computer ,Ubuntu version: Linux wyh-Z97X-UD3H 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10),one 3G RAM , I also just do git pull and ./zcutil/buid.sh without -j$(nproc) then errors come,here is the error code:

+ make V=1
Making all in src
make[1]: Entering directory ‘/home/wyh/gosrc/src/github.com/zcash.bak/src’
make[2]: Entering directory ‘/home/wyh/gosrc/src/github.com/zcash.bak/src’
/home/wyh/gosrc/src/github.com/zcash.bak/depends/x86_64-unknown-linux-gnu/share/../native/bin/ccache g++ -m64 -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I./obj -pthread -I/home/wyh/gosrc/src/github.com/zcash.bak/depends/x86_64-unknown-linux-gnu/share/../include -I./leveldb/include -I./leveldb/helpers/memenv -I/home/wyh/gosrc/src/github.com/zcash/depends/x86_64-unknown-linux-gnu/include -I/home/wyh/gosrc/src/github.com/zcash/depends/x86_64-unknown-linux-gnu/include -I./secp256k1/include -I./snark -I./snark/libsnark -I./univalue/include -I/home/wyh/gosrc/src/github.com/zcash.bak/depends/x86_64-unknown-linux-gnu/share/../include/ -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -DMULTICORE -Wformat -Wformat-security -Wstack-protector -fstack-protector-all -Werror -fPIE -pipe -O1 -g -fopenmp -fwrapv -fno-strict-aliasing -Wno-builtin-declaration-mismatch -MT zcashd-bitcoind.o -MD -MP -MF .deps/zcashd-bitcoind.Tpo -c -o zcashd-bitcoind.o `test -f ‘bitcoind.cpp’ || echo ‘./’`bitcoind.cpp
Makefile:5669: recipe for target ‘zcashd-bitcoind.o’ failed
make[2]: *** [zcashd-bitcoind.o] 段错误 (core dumped)
make[2]: Leaving directory ‘/home/wyh/gosrc/src/github.com/zcash.bak/src’
Makefile:5721: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/wyh/gosrc/src/github.com/zcash.bak/src’
Makefile:627: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1
wyh@wyh-Z97X-UD3H:~/gosrc/src/github.com/zcash.bak$ git log
commit 622751da12790eb83432db9b26bca7129e856026
Merge: 20f87bc c0aa34a
Author: Homu

Auto merge of #3444 — LarryRuane:2982-mininode-version, r=str4d

generalize mininode.py protocol versioning

Fixes #2982 — replace `overwintered` boolean argument to NodeConn constructor with a protocol version integer, so that adding Sapling (and beyond) will be easier.

Thx for two of you.