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

Mxnet 1.3 build for Raspberry Pi with MacOS + Docker fails #14010

Open njw0709 opened 5 years ago

njw0709 commented 5 years ago

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.

For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io

Description

(Brief description of the problem in no more than 2 sentences.) I am following the instruction on the official mxnet documentation to build MxNet 1.3.1 whl file for my raspberry pi device. I am doing the docker build on my Mac, and it fails on command "ninja -v" getting "permission denied" messages.

Environment info (Required)

I don't think this info is relevant, but here it is: ----------Python Info---------- Version : 3.7.0 Compiler : Clang 4.0.1 (tags/RELEASE_401/final) Build : ('default', 'Jun 28 2018 07:39:16') Arch : ('64bit', '') ------------Pip Info----------- Version : 18.1 Directory : /anaconda3/lib/python3.7/site-packages/pip ----------MXNet Info----------- Hashtag not found. Not installed from pre-built package. ----------System Info---------- Platform : Darwin-18.2.0-x86_64-i386-64bit system : Darwin node : STWAdmins-MacBook-Pro-3.local release : 18.2.0 version : Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 ----------Hardware Info---------- machine : x86_64 processor : i386 b'machdep.cpu.brand_string: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz' b'machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C' b'machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 AVX2 BMI2 INVPCID FPU_CSDS' b'machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI' ----------Network Test---------- Setting timeout: 10 Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0617 sec, LOAD: 0.8040 sec. Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0878 sec, LOAD: 0.5235 sec. Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.1092 sec, LOAD: 0.4153 sec. Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0498 sec, LOAD: 0.6509 sec. Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0424 sec, LOAD: 0.2970 sec. Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0984 sec, LOAD: 0.0808 sec.

Package used (Python/R/Scala/Julia): Python

For Scala user, please provide:

  1. Java version: (java -version)
  2. Maven version: (mvn -version)
  3. Scala runtime if applicable: (scala -version)

For R user, please provide R sessionInfo():

Build info (Required if built from source)

Compiler (gcc/clang/mingw/visual studio):

MXNet commit hash: (Paste the output of git rev-parse HEAD here.) 49e8c579d5ae509445fae3f6733b11c23a741bb6

Build config: (Paste the content of config.mk, or the build command.)

Error Message:

(Paste the complete error message, including stack trace.)

I am running the following command on Mac: (From git base repo) sudo ci/build.py -p armv7

Minimum reproducible example

(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)

Steps to reproduce

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

  1. sudo ci/build.py -p armv7

What have you tried to solve it?

  1. I tried editing the runtime_functions.sh file, add a "sudo su" or "sudo chmod" before ninja -v command to get around the permission denied issue.
mxnet-label-bot commented 5 years ago

Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels: Build

njw0709 commented 5 years ago

Here is my docker version: Docker version 18.09.0, build 4d60db4

frankfliu commented 5 years ago

@mxnet-label-bot add [docker, build]