The Discord reply above was in response to someone else having a similar issue, so despite our recommendation to not run zcashd as root, let’s see if we can at least figure out what change caused this.
The most obvious candidate is that we moved from Boost 1.74 to 1.75. @jogrgo please apply this patch (patch -p1 <this.patch
) and then recompile and test to see if it fixes your problem:
From ca57f3bd23d269cc960960e90a98b59c4264d5c1 Mon Sep 17 00:00:00 2001
From: Jack Grigg <jack@z.cash>
Date: Sat, 26 Dec 2020 12:58:44 +0000
Subject: [PATCH] Revert "Update boost to 1.75, postpone other updates."
This reverts commit 8f4dd4460bcb6e43a21dd9deafe9ccebbf24c577.
---
depends/packages/boost.mk | 12 ++++++++---
depends/patches/boost/iostreams-106.patch | 25 ++++++++++++++++++++++
depends/patches/boost/signals2-noise.patch | 23 ++++++++++++++++++++
qa/zcash/postponed-updates.txt | 13 ++++++-----
4 files changed, 63 insertions(+), 10 deletions(-)
create mode 100644 depends/patches/boost/iostreams-106.patch
create mode 100644 depends/patches/boost/signals2-noise.patch
diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk
index fedf13c12..c99846d0c 100644
--- a/depends/packages/boost.mk
+++ b/depends/packages/boost.mk
@@ -1,8 +1,9 @@
package=boost
-$(package)_version=1_75_0
-$(package)_download_path=https://dl.bintray.com/boostorg/release/1.75.0/source
+$(package)_version=1_74_0
+$(package)_download_path=https://dl.bintray.com/boostorg/release/1.74.0/source
$(package)_file_name=$(package)_$($(package)_version).tar.bz2
-$(package)_sha256_hash=953db31e016db7bb207f11432bef7df100516eeb746843fa0486a222e3fd49cb
+$(package)_sha256_hash=83bfc1507731a0906e387fc28b7ef5417d591429e51e788417fe9ff025e116b1
+$(package)_patches=iostreams-106.patch signals2-noise.patch
ifneq ($(host_os),darwin)
$(package)_dependencies=libcxx
@@ -30,6 +31,11 @@ $(package)_cxxflags_freebsd=-fPIC
$(package)_ldflags+=-static-libstdc++ -lc++abi
endef
+define $(package)_preprocess_cmds
+ patch -p2 < $($(package)_patch_dir)/iostreams-106.patch && \
+ patch -p2 < $($(package)_patch_dir)/signals2-noise.patch
+endef
+
define $(package)_config_cmds
./bootstrap.sh --without-icu --with-libraries=$($(package)_config_libraries) && \
sed -i -e "s|using gcc ;|using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$(boost_archiver_$(host_os))\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;|" project-config.jam
diff --git a/depends/patches/boost/iostreams-106.patch b/depends/patches/boost/iostreams-106.patch
new file mode 100644
index 000000000..dcecd5d0d
--- /dev/null
+++ b/depends/patches/boost/iostreams-106.patch
@@ -0,0 +1,25 @@
+From 4e76f73826fd0a7067b837e4850a9051436f5ec5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?=
+ <jeanmichael.celerier+github@gmail.com>
+Date: Sun, 22 Dec 2019 10:26:38 +0100
+Subject: [PATCH] Fix build on windows with libc++
+
+Proposed by @SquallATF in #67
+---
+ include/boost/iostreams/detail/config/fpos.hpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/boost/iostreams/detail/config/fpos.hpp b/include/boost/iostreams/detail/config/fpos.hpp
+index c5dc6cf59..a5835421f 100644
+--- a/include/boost/iostreams/detail/config/fpos.hpp
++++ b/include/boost/iostreams/detail/config/fpos.hpp
+@@ -26,7 +26,8 @@
+
+ # if (defined(_YVALS) || defined(_CPPLIB_VER)) && !defined(__SGI_STL_PORT) && \
+ !defined(_STLPORT_VERSION) && !defined(__QNX__) && !defined(_VX_CPU) && !defined(__VXWORKS__) \
+- && !((defined(BOOST_MSVC) || defined(BOOST_CLANG)) && _MSVC_STL_VERSION >= 141)
++ && !((defined(BOOST_MSVC) || defined(BOOST_CLANG)) && _MSVC_STL_VERSION >= 141) \
++ && !defined(_LIBCPP_VERSION)
+ /**/
+
+ #include <boost/iostreams/detail/ios.hpp>
diff --git a/depends/patches/boost/signals2-noise.patch b/depends/patches/boost/signals2-noise.patch
new file mode 100644
index 000000000..e0a9ce48f
--- /dev/null
+++ b/depends/patches/boost/signals2-noise.patch
@@ -0,0 +1,23 @@
+From fd27423fea5537bc857c1fa14bb0c25b994f77b3 Mon Sep 17 00:00:00 2001
+From: Frank Mori Hess <fmh6jj@gmail.com>
+Date: Mon, 20 Jul 2020 14:17:05 -0400
+Subject: [PATCH] Fix warning about deprecated
+ boost/function_output_iterator.hpp
+
+---
+ include/boost/signals2/detail/null_output_iterator.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/boost/signals2/detail/null_output_iterator.hpp b/include/boost/signals2/detail/null_output_iterator.hpp
+index 9e986959..dee4373c 100644
+--- a/include/boost/signals2/detail/null_output_iterator.hpp
++++ b/include/boost/signals2/detail/null_output_iterator.hpp
+@@ -11,7 +11,7 @@
+ #ifndef BOOST_SIGNALS2_NULL_OUTPUT_ITERATOR_HPP
+ #define BOOST_SIGNALS2_NULL_OUTPUT_ITERATOR_HPP
+
+-#include <boost/function_output_iterator.hpp>
++#include <boost/iterator/function_output_iterator.hpp>
+
+ namespace boost
+ {
diff --git a/qa/zcash/postponed-updates.txt b/qa/zcash/postponed-updates.txt
index d09cbea63..0f31f20fa 100644
--- a/qa/zcash/postponed-updates.txt
+++ b/qa/zcash/postponed-updates.txt
@@ -7,21 +7,20 @@
# Clang is pinned to a version that matches the Rust version.
# This would be Clang 9, but for 4.1.0 we are using Clang 8 and postponing the upgrade.
# libc++ is pinned to the same version as Clang.
-native_clang 8.0.1 2021-01-20
-native_clang 9.0.0 2021-01-20
-native_clang 9.0.1 2021-01-20
+native_clang 8.0.1 2020-12-01
+native_clang 9.0.0 2020-12-01
+native_clang 9.0.1 2020-12-01
native_clang 10.0.0 2021-01-20
native_clang 10.0.1 2021-01-20
native_clang 11.0.0 2021-01-20
-libcxx 8.0.1 2021-01-20
-libcxx 9.0.0 2021-01-20
-libcxx 9.0.1 2021-01-20
+libcxx 8.0.1 2020-12-01
+libcxx 9.0.0 2020-12-01
+libcxx 9.0.1 2020-12-01
libcxx 10.0.0 2021-01-20
libcxx 10.0.1 2021-01-20
libcxx 11.0.0 2021-01-20
native_ccache 4.0 2021-01-20
-native_ccache 4.1 2021-01-20
bdb 18.1.40 2021-01-20
--
2.25.1