Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fail to install mxnet on Macos using docker (./tools.sh) #16629

Closed
danielgoncalvesti opened this issue Oct 25, 2019 · 9 comments · Fixed by #16690
Closed

Fail to install mxnet on Macos using docker (./tools.sh) #16629

danielgoncalvesti opened this issue Oct 25, 2019 · 9 comments · Fixed by #16690

Comments

@danielgoncalvesti
Copy link

Description

I'm trying to run the script incubator-mxnet/docker/tools.sh but I'm getting a message of error when the script is executed.

Error Message

cp /mxnet/3rdparty/mkldnn/build/install/lib/libmkldnn.so.0 /mxnet/lib
cp: cannot stat '/mxnet/3rdparty/mkldnn/build/install/lib/libmkldnn.so.0': No such file or directory
make: *** [/mxnet/3rdparty/mkldnn/build/install/lib/libmkldnn.so.0] Error 1

@ChaiBapchya
Copy link
Contributor

Hey @danielgoncalvesti Thanks for posting this issue
But we need more code for reproducing this issue.
For starters - Which commit+device+language?

@ChaiBapchya
Copy link
Contributor

ChaiBapchya commented Oct 28, 2019

@mxnet-label-bot add [Pending Requester Info]

@danielgoncalvesti
Copy link
Author

danielgoncalvesti commented Oct 29, 2019

I'm using the latest commit from the master branch.
My configuration is:
-MacOS Catalina 10.15
-Docker 2.1.0.4 (stable)
-Python 3.7.4

I short, I enter the docker folder, and then run this command:
./tool.sh build python cpu

The installation purpose of this tool on docker is just to create my own binary database. So I have a collection of pictures in a folder and want to generate a binary file like 'database.bin'.

@ChaiBapchya
Copy link
Contributor

My config
MacOS High Sierra 10.13.6
Docker 2.1.0.4
Python 3.7.5

./tool.sh build python cpu
Was able to reproduce this error. Working on fixing it

@ChaiBapchya
Copy link
Contributor

@mxnet-label-bot remove [Pending Requester Info]

@ChaiBapchya
Copy link
Contributor

It's not just for Mac (as i tried it for unix too) and error was reproduced.
@mxnet-label-bot add [MKLDNN, Build, Docker]

@ChaiBapchya
Copy link
Contributor

For reference, error

[100%] Built target mkldnn
make[2]: Leaving directory `/mxnet/3rdparty/mkldnn/build'
Install the project...
-- Install configuration: "Release"
-- Installing: /mxnet/3rdparty/mkldnn/build/install/share/doc/mkldnn/LICENSE
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/libmkldnn.so.1.0
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/libmkldnn.so.1
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/libmkldnn.so
-- Installing: /mxnet/3rdparty/mkldnn/build/install/include/mkldnn_config.h
-- Installing: /mxnet/3rdparty/mkldnn/build/install/include/mkldnn_version.h
-- Installing: /mxnet/3rdparty/mkldnn/build/install/include/mkldnn.h
-- Installing: /mxnet/3rdparty/mkldnn/build/install/include/mkldnn_debug.h
-- Installing: /mxnet/3rdparty/mkldnn/build/install/include/mkldnn_types.h
-- Installing: /mxnet/3rdparty/mkldnn/build/install/include/mkldnn.hpp
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/cmake/mkldnn/mkldnn-config.cmake
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/cmake/mkldnn/mkldnn-config-version.cmake
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/cmake/mkldnn/mkldnn-targets.cmake
-- Installing: /mxnet/3rdparty/mkldnn/build/install/lib/x86_64-linux-gnu/cmake/mkldnn/mkldnn-targets-release.cmake
make[1]: Leaving directory `/mxnet/3rdparty/mkldnn/build'
mkdir -p /mxnet/lib
if [ -f "/mxnet/3rdparty/mkldnn/build/install/lib64/libmkldnn.so.1" ]; then \
                cp /mxnet/3rdparty/mkldnn/build/install/lib64/libmkldnn* /mxnet/lib; \
                cp /mxnet/3rdparty/mkldnn/build/install/lib64/libmkldnn* /mxnet/3rdparty/mkldnn/build/install/lib/; \
        else \
                cp /mxnet/3rdparty/mkldnn/build/install/lib/libmkldnn* /mxnet/lib; \
        fi
cp: cannot stat '/mxnet/3rdparty/mkldnn/build/install/lib/libmkldnn*': No such file or directory
make: *** [/mxnet/3rdparty/mkldnn/build/install/lib/libmkldnn.so.1] Error 1
The command '/bin/sh -c git clone --recursive https://github.com/dmlc/mxnet && cd mxnet &&     make -j$(nproc) &&     rm -r build' returned a non-zero code: 2

@pengzhao-intel
Copy link
Contributor

@xinyu-intel could you help take a look for the MKLDNN library link?

@TaoLv
Copy link
Member

TaoLv commented Nov 1, 2019

Just to clarify, the issue is not caused by the MKL-DNN 1.0 upgrading. It was reported against the master branch before #16555 was merged. It relates to the cmake installation behavior on different OS distributions. Anyway we will fix it on the latest master branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants