Closed promag closed 3 years ago
Thanks for reporting this!
Trying to build bitcoin/bitcoin@a3d7a98 on macOS results in the following error:
I am able to reproduce this, and this is caused by #43. The reason it happens is that the version of https://github.com/bitcoin/bitcoin/pull/19160 built here is a few months old, originally pushed 2020-11-24, and not compatible with the current version of libmultiprocess after #43.
There are three ways to fix it:
1) Update https://github.com/bitcoin/bitcoin/pull/19160 pull from a3d7a9864b1
pr/ipc-echo.19 to pr/ipc-echo.24 or newer.
2) Downgrade libmultiprocess from the version you have installed to an older version preceding PR #43
3) Apply the following changes manually:
git diff pr/ipc-echo.19..pr/ipc-echo.24 src/ipc/capnp/*.capnp
diff --git a/src/ipc/capnp/echo.capnp b/src/ipc/capnp/echo.capnp
index cedf6f2718e..1bdd81321ca 100644
--- a/src/ipc/capnp/echo.capnp
+++ b/src/ipc/capnp/echo.capnp
@@ -8,6 +8,8 @@ using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("ipc::capnp::messages");
using Proxy = import "/mp/proxy.capnp";
+$Proxy.include("interfaces/echo.h");
+$Proxy.include("ipc/capnp/echo.capnp.h");
interface Echo $Proxy.wrap("interfaces::Echo") {
destroy @0 (context :Proxy.Context) -> ();
diff --git a/src/ipc/capnp/init.capnp b/src/ipc/capnp/init.capnp
index 06f767b02c5..78f1c7f8cd9 100644
--- a/src/ipc/capnp/init.capnp
+++ b/src/ipc/capnp/init.capnp
@@ -9,6 +9,8 @@ $Cxx.namespace("ipc::capnp::messages");
using Echo = import "echo.capnp";
using Proxy = import "/mp/proxy.capnp";
+$Proxy.include("ipc/capnp/init.h");
+$Proxy.includeTypes("ipc/capnp/init-types.h");
interface Init $Proxy.wrap("interfaces::Init") {
construct @0 (threadMap: Proxy.ThreadMap) -> (threadMap :Proxy.ThreadMap);
🤦 I thought I was on the latest version, not sure what happened as I usually fetch the latest version. Sorry for the noise!
Not noise at all! Definitely could have provided clearer build errors here. I filed https://github.com/chaincodelabs/libmultiprocess/issues/54 to track this.
Trying to build bitcoin/bitcoin@a3d7a9864b on macOS results in the following error:
I've followed 805eb73 build and install instructions.
On the bitcoin folder, I've made a fresh clone and configure.