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 2017/11/15 16:37:47 UTC

[GitHub] mwunderlich opened a new issue #8667: Compiler/linker error while trying to build from source on Mac OSX Sierra 10.12.6.

mwunderlich opened a new issue #8667: Compiler/linker error while trying to build from source on Mac OSX Sierra 10.12.6.
URL: https://github.com/apache/incubator-mxnet/issues/8667
 
 
   ## Description
   Compiler/linker error while trying to build from source on Mac OSX Sierra 10.12.6.
   
   ## Environment info (Required)
   ```
   ----------Python Info----------
   ('Version      :', '2.7.10')
   ('Compiler     :', 'GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)')
   ('Build        :', ('default', 'Feb  7 2017 00:08:15'))
   ('Arch         :', ('64bit', ''))
   ------------Pip Info-----------
   ('Version      :', '9.0.1')
   ('Directory    :', '/Library/Python/2.7/site-packages/pip')
   ----------MXNet Info-----------
   ('Version      :', '0.11.0')
   ('Directory    :', '/Library/Python/2.7/site-packages/mxnet')
   ('Commit Hash   :', '53274b4a2b0d73f3fbdb10cfb5f9ed0c8263fda7')
   ----------System Info----------
   ('Platform     :', 'Darwin-16.7.0-x86_64-i386-64bit')
   ('system       :', 'Darwin')
   ('node         :', 'A-C2QKM020DV35')
   ('release      :', '16.7.0')
   ('version      :', 'Darwin Kernel Version 16.7.0: Wed Oct  4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64')
   ----------Hardware Info----------
   ('machine      :', 'x86_64')
   ('processor    :', 'i386')
   machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT PREFETCHW RDTSCP TSCI
   machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 HLE AVX2 BMI2 INVPCID RTM SMAP RDSEED ADX IPT SGX FPU_CSDS MPX CLFSOPT
   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 EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
   machdep.cpu.brand_string: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0129 sec, LOAD: 0.9419 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0219 sec, LOAD: 0.1966 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0508 sec, LOAD: 0.7980 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0286 sec, LOAD: 0.0990 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0313 sec, LOAD: 0.4015 sec.
   Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)>, DNS finished in 0.15796995163 sec.
   ```
   
   Package used (Python/R/Scala/Julia):
   Trying to use Scala.
   
   For Scala user:
   1. Java version: (`java -version`)
   1.8.0_102-b14
   2. Maven version: (`mvn -version`)
   3.3.9
   3. Scala runtime if applicable: (`scala -version`)
   2.11.4
   
   ## Build info (Required if built from source)
   Compiler
   gcc
   
   MXNet commit hash:
   4f2af2d2e5216ab3a1faadcc117709b6836029dc
   
   Build config:
   ```
   
   #---------------------
   # choice of compiler
   #--------------------
   
   export CC = gcc
   export CXX = g++
   export NVCC = nvcc
   
   # whether compile with options for MXNet developer
   DEV = 0
   
   # whether compile with debug
   DEBUG = 0
   
   # the additional link flags you want to add
   ADD_LDFLAGS =
   
   # the additional compile flags you want to add
   ADD_CFLAGS =
   
   #---------------------------------------------
   # matrix computation libraries for CPU/GPU
   #---------------------------------------------
   
   # whether use CUDA during compile
   USE_CUDA = 0
   
   # add the path to CUDA library to link and compile flag
   # if you have already add them to environment variable, leave it as NONE
   # USE_CUDA_PATH = /usr/local/cuda
   USE_CUDA_PATH = NONE
   
   # whether use CUDNN R3 library
   USE_CUDNN = 0
   
   # whether use opencv during compilation
   # you can disable it, however, you will not able to use
   # imbin iterator
   USE_OPENCV = 0
   
   # use openmp for parallelization
   USE_OPENMP = 0
   
   # choose the version of blas you want to use
   # can be: mkl, blas, atlas, openblas
   USE_BLAS = openblas
   
   # whether use lapack during compilation
   # only effective when compiled with blas versions openblas/apple/atlas/mkl
   USE_LAPACK = 1
   
   # add path to intel library, you may need it for MKL, if you did not add the path
   # to environment variable
   USE_INTEL_PATH = NONE
   
   #----------------------------
   # distributed computing
   #----------------------------
   
   # whether or not to enable multi-machine supporting
   USE_DIST_KVSTORE = 0
   
   # whether or not allow to read and write HDFS directly. If yes, then hadoop is
   # required
   USE_HDFS = 0
   
   # path to libjvm.so. required if USE_HDFS=1
   LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server
   
   # whether or not allow to read and write AWS S3 directly. If yes, then
   # libcurl4-openssl-dev is required, it can be installed on Ubuntu by
   # sudo apt-get install -y libcurl4-openssl-dev
   USE_S3 = 0
   
   #----------------------------
   # additional operators
   #----------------------------
   
   # path to folders containing projects specific operators that you don't want to put in src/operators
   EXTRA_OPERATORS =
   
   #----------------------------
   # other features
   #----------------------------
   
   # Create C++ interface package
   USE_CPP_PACKAGE = 0
   
   #----------------------------
   # plugins
   #----------------------------
   
   # whether to use torch integration. This requires installing torch.
   # TORCH_PATH = $(HOME)/torch
   # MXNET_PLUGINS += plugin/torch/torch.mk
   USE_BLAS = openblas
   ADD_CFLAGS += -I/usr/local/opt/openblas/include
   ADD_LDFLAGS += -L/usr/local/opt/openblas/lib
   ADD_LDFLAGS += -L/usr/local/lib/graphviz/
   ```
   
   ## Error Message:
   ```
   "cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const", referenced from: mxnet::io::DefaultImageDetAugmenter::Process(cv::Mat const&, std::__1::vector<float, std::__1::allocator<float> >*, std::__1::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u>*) in image_det_aug_default.o
   
   ld: symbol(s) not found for architecture x86_64
   
   clang: error: linker command failed with exit code 1 (use -v to see invocation
   
   make: *** [lib/libmxnet.so] Error 1
   
   ```
   ## Minimum reproducible example
   N/A
   
   ## Steps to reproduce
   1. Download and try to build with make -j$(sysctl -n hw.ncpu)  on Mac OSX. 
   (as per instructions here: https://mxnet.incubator.apache.org/install/osx_setup.html)
   
   ## What have you tried to solve it?
   1. Disable OpenCV in config.mk
   

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