Upstream 'patchelf' doesn't work on ARM. Here's the upstream bug report: https://github.com/NixOS/patchelf/issues/8
I had to apply a rather large patch from a fork of 'patchelf' to get it working: https://github.com/sriemer/patchelf/commit/0a96239cea6b97b9a0fff80da576e58ca2dfb2a2 For now, I've applied this patch on the 'wip-armhf' branch in commit 8de9362f3. If anyone has a better suggestion, I'm all ears. Mark