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 2020/01/02 22:53:35 UTC

[GitHub] [incubator-mxnet] ishaybas opened a new issue #17205: MXNetCAPI.so: undefined symbol: MXListAllOpNames

ishaybas opened a new issue #17205: MXNetCAPI.so: undefined symbol: MXListAllOpNames
URL: https://github.com/apache/incubator-mxnet/issues/17205
 
 
   ## Description
   Trying to build MXNet for the first time (for me), and then building the PERL binding.
   All went fine with no errors, but when I try to load MXNet from PERL an error is received.
   Maybe I am just missing something small in my configuration..
   
   ### Error Message
   perl: symbol lookup error: /home/ishay/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/AI/MXNetCAPI/MXNetCAPI.so: undefined symbol: MXListAllOpNames
   
   
   ## To Reproduce
   (If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
   
   ### Steps to reproduce
   (Paste the commands you ran that produced the error.)
   Following the installation instructions from 
   https://mxnet.apache.org/get_started/ubuntu_setup.html
   
   1. For Ubuntu 18.04 and CUDA builds you need to update CMake
   #!/usr/bin/env bash
   set -exuo pipefail
   sudo apt remove --purge --auto-remove cmake
   
   # Update CMAKE for correct cuda autotedetection: https://github.com/clab/dynet/issues/1457
   version=3.14
   build=0
   mkdir -p ~/tmp
   cd ~/tmp
   wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
   tar -xzvf cmake-$version.$build.tar.gz
   cd cmake-$version.$build/
   ./bootstrap
   make -j$(nproc)
   sudo make install
   
   2. Build with CMake and ninja, without GPU and without MKL.
       rm -rf build
       mkdir -p build && cd build
       cmake -GNinja \
           -DUSE_CUDA=OFF \
           -DUSE_MKL_IF_AVAILABLE=OFF \
           -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
           -DCMAKE_C_COMPILER_LAUNCHER=ccache \
           -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
           -DCMAKE_BUILD_TYPE=Release \
       ..
       ninja
   
   3. Build MXNet package for Perl:
       sudo apt-get install libmouse-perl pdl cpanminus swig libgraphviz-perl
       cpanm -q -L "${HOME}/perl5" Function::Parameters Hash::Ordered PDL::CCS
   
       MXNET_HOME=${PWD}
       export LD_LIBRARY_PATH=${MXNET_HOME}/lib
       export PERL5LIB=${HOME}/perl5/lib/perl5
   
       cd ${MXNET_HOME}/perl-package/AI-MXNetCAPI/
       perl Makefile.PL INSTALL_BASE=${HOME}/perl5
       make install
   
       cd ${MXNET_HOME}/perl-package/AI-NNVMCAPI/
       perl Makefile.PL INSTALL_BASE=${HOME}/perl5
       make install
   
       cd ${MXNET_HOME}/perl-package/AI-MXNet/
       perl Makefile.PL INSTALL_BASE=${HOME}/perl5
       make install
   
   4. Try to load the library in Perl:  
   perl -e 'use AI::MXNet;'
   
   ## What have you tried to solve it?
   Google :)
   
   ## Environment
   
   We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
   ```
   curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python
   
   # paste outputs here
   ```
   ----------Python Info----------
   ('Version      :', '2.7.16')
   ('Compiler     :', 'GCC 8.3.0')
   ('Build        :', ('default', 'Oct  7 2019 17:36:04'))
   ('Arch         :', ('64bit', ''))
   ------------Pip Info-----------
   ('Version      :', '19.3.1')
   ('Directory    :', '/usr/local/lib/python2.7/dist-packages/pip')
   ----------MXNet Info-----------
   No MXNet installed.
   ----------System Info----------
   ('Platform     :', 'Linux-5.0.0-37-generic-x86_64-with-Ubuntu-19.04-disco')
   ('system       :', 'Linux')
   ('node         :', 'WickedAlien')
   ('release      :', '5.0.0-37-generic')
   ('version      :', '#40-Ubuntu SMP Thu Nov 14 00:14:01 UTC 2019')
   ----------Hardware Info----------
   ('machine      :', 'x86_64')
   ('processor    :', 'x86_64')
   Architecture:        x86_64
   CPU op-mode(s):      32-bit, 64-bit
   Byte Order:          Little Endian
   Address sizes:       39 bits physical, 48 bits virtual
   CPU(s):              8
   On-line CPU(s) list: 0-7
   Thread(s) per core:  2
   Core(s) per socket:  4
   Socket(s):           1
   NUMA node(s):        1
   Vendor ID:           GenuineIntel
   CPU family:          6
   Model:               158
   Model name:          Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
   Stepping:            9
   CPU MHz:             2151.545
   CPU max MHz:         3800,0000
   CPU min MHz:         800,0000
   BogoMIPS:            5616.00
   Virtualization:      VT-x
   L1d cache:           32K
   L1i cache:           32K
   L2 cache:            256K
   L3 cache:            6144K
   NUMA node0 CPU(s):   0-7
   Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
   ----------Network Test----------
   Setting timeout: 10
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0252 sec, LOAD: 0.6547 sec.
   Timing for D2L: http://d2l.ai, DNS: 0.0399 sec, LOAD: 1.2067 sec.
   Timing for FashionMNIST: https://repo.mxnet.io/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.5681 sec, LOAD: 1.0314 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.5051 sec, LOAD: 1.0256 sec.
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0170 sec, LOAD: 0.8957 sec.
   Timing for GluonNLP: http://gluon-nlp.mxnet.io, DNS: 0.0427 sec, LOAD: 0.6606 sec.
   Timing for D2L (zh-cn): http://zh.d2l.ai, DNS: 0.0424 sec, LOAD: 0.2638 sec.
   Timing for GluonNLP GitHub: https://github.com/dmlc/gluon-nlp, DNS: 0.0015 sec, LOAD: 1.3067 sec.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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