Incubator-mxnet: error while building mxnet from source

Created on 24 Aug 2020  路  8Comments  路  Source: apache/incubator-mxnet

Description

(A clear and concise description of what the bug is.)
I am trying to build mxnet from source to test some source code I have modified. I am following the instructions given here: https://mxnet.apache.org/versions/1.6/get_started/build_from_source.html .

Two things

  1. For me, there seems to be no direct indication in the link above on how to build for v1.6. The make\config.mk seems to not be present.
  2. Thus I went to the next step, and it resulted in the error below.

Error Message

(Paste the complete error message. Please also include stack trace by setting environment variable DMLC_LOG_STACK_TRACE_DEPTH=10 before running your script.)`
mxnet-install

To Reproduce

(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)

Steps to reproduce

(Paste the commands you ran that produced the error.)

  1. python -m pip install --user -e ./python
    2.

What have you tried to solve it?

1.
2.

Environment

We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:

curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python

# paste outputs here

mxnet-install-2

Bug Installation Unclear ErroDoc

All 8 comments

Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.

For me, there seems to be no direct indication in the link above on how to build for v1.6. The make\config.mk seems to not be present.

The file is present on v1.6: https://github.com/apache/incubator-mxnet/blob/v1.6.x/make/config.mk

I suspect you are not compiling v1.6? If you would like to compile the master version, you need to use cmake. But also for 1.6, as you are on Windows, you need to use cmake.

Please post here if you run into more issues. Thanks

Thanks for the very prompt response. While specifying the error, there seems to be a mistake from my side. I thought the master branch of this repo was the source for v1.6, but that is not the case.

As you have rightly said, I have the master branch of incubator-mxnet. How can I use cmake to compile it?

The website will by default show you the guide for 1.6, as it is the latest stable version. You can navigate to the master version of the guide by selecting "master" in the upper right corner, pressing "Get Started" and then clicking on the "compile from source" guide.

Unfortunately we can't link that page directly at this time due to https://github.com/apache/incubator-mxnet/issues/18913

Thanks. I am now following these steps, will tell if any error pops up

I don't have a GPU installed on my machine, so I turned this to OFF

https://github.com/apache/incubator-mxnet/blob/3c4ac19daa3e645d918692b864ea19640f7e0314/CMakeLists.txt#L42

Now the resulting error is this:
cmake-cuda

What should be done?

Just use cmake-gui, and search USE_CUDA in the dialog, and turn it OFF.

on linux it's -DUSE_CUDA=OFF though I'm not sure how it works on windows 馃う

Was this page helpful?
0 / 5 - 0 ratings