apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

make -f R-package/Makefile rpkg for MXNet 1.8 failing on Mac OS Big Sur 11.4 #20460

Open anandtr71 opened 3 years ago

anandtr71 commented 3 years ago

Description

After building MXNet 1.8 from source on Mac OS Big Sur 11.4, 'make -f R-package/Makefile rpkg' fails

Error Message

(Paste the complete error message. Please also include stack trace by setting environment variable DMLC_LOG_STACK_TRACE_DEPTH=100 before running your script.) (base) Mac-3 incubator-mxnet % make -f R-package/Makefile rpkg mkdir -p R-package/inst/libs cp src/io/image_recordio.h R-package/src if [ -d "lib" ]; then \ cp -rf lib/libmxnet.so R-package/inst/libs; \ if [ -e "lib/libtvm_runtime.so" ]; then \ cp -rf lib/libtvm_runtime.so R-package/inst/libs; \ fi; \ else \ cp -rf build/libmxnet.so R-package/inst/libs; \ if [ -e "build/libtvm_runtime.so" ]; then \ cp -rf build/libtvm_runtime.so R-package/inst/libs; \ fi; \ fi cp: build/libmxnet.so: No such file or directory mkdir -p R-package/inst/include cp -rl include/* R-package/inst/include cp: illegal option -- l usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory make: *** [rpkg] Error 64

To Reproduce

(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.) run make -f R-package/Makefile rpkg after compiling MXNet 1.8 from source on Mac OS Big Sur 11.4

Steps to reproduce

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

1.make -f R-package/Makefile rpkg 2.

What have you tried to solve it?

  1. Reinstalled opencv (opencv 4.5.3_1 is already installed and up-to-date.)
  2. Reinstalled openblas (openblas 0.3.17 is already installed and up-to-date)

Environment

Mac OS Big Sur 11.4

We recommend using our script for collecting the diagnostic information with the following command curl --retry 10 -s https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py | python3

Environment Information ``` # Paste the diagnose.py command output here ```
github-actions[bot] commented 3 years ago

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.

leezu commented 3 years ago

Can you also try the current release candidate https://github.com/apache/incubator-mxnet/releases/tag/1.9.0.rc6? Did you follow the https://mxnet.apache.org/versions/1.8.0/get_started/build_from_source.html?

anandtr71 commented 3 years ago

Thanks @leezu ...I ran cmake on the 1.9.0.rc6 release candidate and it is failing at 'modulated_deformable_convolution.cc.o'. Given below is the step with the fatal error.
`[ 55%] Building CXX object CMakeFiles/mxnet_static.dir/src/operator/contrib/intgemm/take_weight_op.cc.o [ 55%] Building CXX object CMakeFiles/mxnet_static.dir/src/operator/contrib/krprod.cc.o [ 55%] Building CXX object CMakeFiles/mxnet_static.dir/src/operator/contrib/modulated_deformable_convolution.cc.o

In file included from /Users/hnan/mxnetsrc1.9.0.rc6/src/operator/contrib/modulated_deformable_convolution.cc:28: /Users/hnan/mxnetsrc1.9.0.rc6/src/operator/contrib/./modulated_deformable_convolution-inl.h:46:10: fatal error: './nn/modulated_deformable_im2col.h' file not found

include "./nn/modulated_deformable_im2col.h"

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

make[2]: [CMakeFiles/mxnet_static.dir/src/operator/contrib/modulated_deformable_convolution.cc.o] Error 1 make[1]: [CMakeFiles/mxnet_static.dir/all] Error 2 make: *** [all] Error 2`

Going back to v1.8, is it possible to investigate the rpkg error and check for a resolution? I did follow all the steps given in the build process (as per https://mxnet.apache.org/versions/1.8.0/get_started/build_from_source.html)