To successfully call the capnp_generate_cpp() function, the libmultiprocess build system must be provided with paths to the native capnp and capnpc-c++ tools.
This comment points the same:
I think
packages/libmultiprocess.mkprobably needs to be passing a-DCAPNP_EXECUTABLE=.../depends/arm-linux-gnueabihf/native/bin/capnpargument to cmake. Also the package should have dependencies on bothcapnpandnative_capnp.
Fixes bitcoin/bitcoin#24387.