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/12/11 03:33:29 UTC

[GitHub] bryanlinnan opened a new issue #13610: arm compile error with ndk android-toolchain

bryanlinnan opened a new issue #13610: arm compile error with ndk android-toolchain
URL: https://github.com/apache/incubator-mxnet/issues/13610
 
 
   ## Description
   compile error occured when i tried to use android-toolchain to compile mxnet/amalgamation
   
   ## Environment info (Required)
   ubuntu16.04  mxnet1.4 android-ndk-r14b/13b/16b
   
   What to do:
   1. generate android-toolchain
   cd  ~/android-ndk-r14b/build/tools
   ./make-standalone-toolchain.sh --platform=android-21 --use-llvm --arch=arm --install-dir=~/Tool/android-toolchain
   
   2. compile OpenBLAS
   git clone https://github.com/xianyi/OpenBLAS.git
   export PATH=$PATH:~/Tool/android-toolchain/bin 
   cd OpenBLAS 
   make TARGET=ARMV7 HOSTCC=gcc CC=arm-linux-androideabi-gcc NOFORTRAN=1
   make PREFIX=~/Tool/openblas install
   
   3. build mxnet
   git clone --recursive https://github.com/dmlc/mxnet.git 
   cd mxnet/amalgamation
   export PATH=~/Tool/android-toolchain/bin:$PATH
   export CXX=arm-linux-androideabi-g++
   export CC=arm-linux-androideabi-gcc
   make ANDROID=1
   
   MXNet commit hash:
   (Paste the output of `git rev-parse HEAD` here.)
   f2ca66f2c537783aa60251080582793f42f395a7
   
   ## Error Message:
   1. fatal error: sys/fcntl.h: No such file or directory
   then i fix this error by modify the mxnet_predict-all.cc with fcntl instead of sys/fcntl
   then another error come:
   2. fatal error: x86intrin.h: No such file or directory
   then i fix this error by removing it from mxnet_predict-all.cc
   then another error come:
   3.  error: 'stod' is not a member of 'std'
        error: 'to_string' is not a member of 'std'
   now i don't know how to fix it
   
   
   

----------------------------------------------------------------
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