You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RFC] ipc: Check / enforce exception support #36058
I put the check in Core cmake so we don't touch the libmultiprocess subtree. Finding libkj from the parent isn't great; I can move the check into libmultiprocess if that's preferable.
KJ_NO_EXCEPTIONS=0 on Core does not rebuild libkj. Configure fails when the library was built without exception support.
Description of the proposed changes is a little vague, but I don't think most of the changes in #36060 currently make sense.
34201d5 which corresponds to suggestion 1 here seems very complicated. I do think it's good to detect problems at compile time but I think a simpler solution like bitcoin-core/libmultiprocess#364 would be better.
4f71358 seems to correspond to suggestion #2 here. It is setting -DKJ_NO_EXCEPTIONS=0 depends without an explanation of why it being set, apparently due to a bug that only happens in the netbsd packaging system capnproto/capnproto#2756 that doesn't happen in depends.
68bee58 has a little more justification than 4f71358 because it at least does work around a bug that can happen in reality. But I'm not sure it is worth the complexity if capnproto bug capnproto/capnproto#2756 is already fixed upstream and there is a clear error and manual workaround for netbsd users in the meantime.
Note: It would also help to link to capnproto/capnproto#2756 in the issue description otherwise the CI failure linked there doesn't make a lot of sense. (I wasted some time trying to debug it.)
Note: It would also help to link to capnproto/capnproto#2756 in the issue description otherwise the CI failure linked there doesn't make a lot of sense. (I wasted some time trying to debug it.)
Activity
151henry151 commentedon Aug 24, 2026
Draft PR for the three items: #36060
I put the check in Core cmake so we don't touch the
libmultiprocesssubtree. Findinglibkjfrom the parent isn't great; I can move the check intolibmultiprocessif that's preferable.KJ_NO_EXCEPTIONS=0on Core does not rebuildlibkj. Configure fails when the library was built without exception support.fanquake commentedon Sep 9, 2026
cc @ryanofsky @Sjors
Sjors commentedon Sep 10, 2026
That sounds reasonable to me. Exceptions are expected, so it's not just about breaking functional tests.
ryanofsky commentedon Sep 10, 2026
Description of the proposed changes is a little vague, but I don't think most of the changes in #36060 currently make sense.
34201d5 which corresponds to suggestion 1 here seems very complicated. I do think it's good to detect problems at compile time but I think a simpler solution like bitcoin-core/libmultiprocess#364 would be better.
4f71358 seems to correspond to suggestion #2 here. It is setting -DKJ_NO_EXCEPTIONS=0 depends without an explanation of why it being set, apparently due to a bug that only happens in the netbsd packaging system capnproto/capnproto#2756 that doesn't happen in depends.
68bee58 has a little more justification than 4f71358 because it at least does work around a bug that can happen in reality. But I'm not sure it is worth the complexity if capnproto bug capnproto/capnproto#2756 is already fixed upstream and there is a clear error and manual workaround for netbsd users in the meantime.
Note: It would also help to link to capnproto/capnproto#2756 in the issue description otherwise the CI failure linked there doesn't make a lot of sense. (I wasted some time trying to debug it.)
hebasto commentedon Sep 10, 2026
Thanks! Added.
util: Error out at compile time if KJ_NO_EXCEPTIONS is set
Merge #364: util: Error out at compile time if KJ_NO_EXCEPTIONS is set