leezu edited a comment on issue #20082: URL: https://github.com/apache/incubator-mxnet/issues/20082#issuecomment-805864798
The problem here is that OpWrapperGenerator.py needs to `dlopen` the `libmxnet.so` to generate C++ interface code. However, as you cross-compiled the latter, this fails. To solve the problem (if you are on linux), you could use QEMU with [binfmt](https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh). As an example how QEMU can be applied, on our CI we use the following arm docker container that runs on x86_64 via qemu: https://github.com/apache/incubator-mxnet/blob/c7a8ccc7220d0d710e5274d075c4ce4f55c81c37/ci/docker/docker-compose.yml#L148-L168 https://github.com/apache/incubator-mxnet/blob/c7a8ccc7220d0d710e5274d075c4ce4f55c81c37/ci/docker/Dockerfile.test.arm#L19-L43 To solve your issue, you may need to setup your system so that https://github.com/apache/incubator-mxnet/blob/833cb89e3e7a5262151a3b512d18a82d6de917be/cpp-package/scripts/OpWrapperGenerator.py#L321 succeeds through QEMU (this should be transparently handled by the OS if you setup QEMU binfmt correctly). Another option is to run the whole compilation on the target architecture, via the QEMU based container mentioned above. Thirdly, if you have other ideas to make https://github.com/apache/incubator-mxnet/blob/833cb89e3e7a5262151a3b512d18a82d6de917be/cpp-package/scripts/OpWrapperGenerator.py#L321 architecture independent that would also be welcome -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
