RinatVeliakhmedov-TomTom edited a comment on issue #20082:
URL: 
https://github.com/apache/incubator-mxnet/issues/20082#issuecomment-805441864


   When running without USE_CPP_PACKAGE, it build just fine, but when I try to 
build the c++ package, I get an error:
   
   ```
   [386/430] cd /Users/veliakhm/nc/mxnet/cpp-package/scripts && echo Running:\ 
OpWrapperGenerator.py && python OpWrapperGenerator.py 
/Users/veliakhm/nc/mxnet/build/libmxnet.so
   FAILED: cpp-package/CMakeFiles/cpp_package_op_h 
../cpp-package/include/mxnet-cpp/op.h cpp-package/MAIN_DEPENDENCY 
cpp-package/mxnet
   cd /Users/veliakhm/nc/mxnet/cpp-package/scripts && echo Running:\ 
OpWrapperGenerator.py && python OpWrapperGenerator.py 
/Users/veliakhm/nc/mxnet/build/libmxnet.so
   Running: OpWrapperGenerator.py
   Traceback (most recent call last):
     File "OpWrapperGenerator.py", line 433, in <module>
       raise(e)
     File "OpWrapperGenerator.py", line 427, in <module>
       f.write(patternStr % ParseAllOps())
     File "OpWrapperGenerator.py", line 321, in ParseAllOps
       cdll.libmxnet = cdll.LoadLibrary(sys.argv[1])
     File "/Users/veliakhm/opt/anaconda3/lib/python3.7/ctypes/__init__.py", 
line 442, in LoadLibrary
       return self._dlltype(name)
     File "/Users/veliakhm/opt/anaconda3/lib/python3.7/ctypes/__init__.py", 
line 364, in __init__
       self._handle = _dlopen(self._name, mode)
   OSError: dlopen(/Users/veliakhm/nc/mxnet/build/libmxnet.so, 6): no suitable 
image found.  Did find:
        /Users/veliakhm/nc/mxnet/build/libmxnet.so: unknown file type, first 
eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
        /Users/veliakhm/nc/mxnet/build/libmxnet.so: stat() failed with errno=25
   ninja: build stopped: subcommand failed.
   ```
   
   Same error observed when building from ubuntu:20.04 docker, so probably not 
the macOS fault this time.


-- 
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]

Reply via email to