You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/11/20 09:27:06 UTC

[GitHub] TeXniKK commented on issue #13303: mxnet-cpp package cross-compilation fails with OSError: "wrong ELF class: ELFCLASS32"

TeXniKK commented on issue #13303: mxnet-cpp package cross-compilation fails with OSError: "wrong ELF class: ELFCLASS32"
URL: https://github.com/apache/incubator-mxnet/issues/13303#issuecomment-440203170
 
 
   @lebeg , thanks for suggestion. I've slightly modified it, because removal of whole section will cause dependency failure of several MXNet modules.
   
   This patch helped as a workaround:
   
   `diff --git a/CMakeLists.txt b/CMakeLists.txt
   index adff533..df8fa39 100644
   --- a/CMakeLists.txt
   +++ b/CMakeLists.txt
   @@ -299,6 +299,8 @@ include_directories("3rdparty/tvm/include")
    include_directories("3rdparty/dmlc-core/include")
    include_directories("3rdparty/dlpack/include")
    
   +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/nnvm/include/nnvm DESTINATION ${CMAKE_INSTALL_INCLUDEDI$
   +
    # commented out until PR goes through
    #if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/dlpack)
    #  add_subdirectory(3rdparty/dlpack)
   diff --git a/cpp-package/CMakeLists.txt b/cpp-package/CMakeLists.txt
   index f7fbc77..fbe8c86 100644
   --- a/cpp-package/CMakeLists.txt
   +++ b/cpp-package/CMakeLists.txt
   @@ -12,10 +12,12 @@ if(USE_CPP_PACKAGE)
        MAIN_DEPENDENCY mxnet
        DEPENDS mxnet ${CMAKE_CURRENT_SOURCE_DIR}/scripts/OpWrapperGenerator.py
        COMMAND echo "Running: OpWrapperGenerator.py"
   -    COMMAND python OpWrapperGenerator.py $<TARGET_FILE:mxnet>
   +#    COMMAND python OpWrapperGenerator.py $<TARGET_FILE:mxnet>
        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts
      )
    
   +  install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/mxnet-cpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
   +
      if(NOT DO_NOT_BUILD_EXAMPLES)
        add_subdirectory(example)
      endif()
   diff --git a/cpp-package/include/mxnet-cpp/op.h b/cpp-package/include/mxnet-cpp/op.h
   new file mode 100644
   index 0000000..69409cd
   --- /dev/null
   +++ b/cpp-package/include/mxnet-cpp/op.h
   .... Copied code here.....
   `

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services