It distributes a 32-bit executable which is supposed to run on 64 bit architectures.
Applying the usual autoPatchelfHook pattern results in the executable being ignored by patchelf, presumably because a 64-bit one is being applied to a 32-bit resource.
Not sure how much use gdb/valgrind can be, given that the binary I’ve got to work with is stripped. It’s been a while since I’ve used either of these, and never without debugging symbols.
It’s quite likely that missing libs is the problem. The contents of result/bin/startmricro64 are
You can add gconv to runtimeDependencies – maybe it wants to link against it. Otherwise substitute the GCONV_PATH variable with the correct path in the script.
Not entirely sure which gconv this is, as there is nothing by that name in nixpkgs. Assuming it’s what comes with glibc, then patching it with sed to make it look like this