diegobernardes opened a new issue #16380: Fail to build from source on 
Raspberry Pi
URL: https://github.com/apache/incubator-mxnet/issues/16380
 
 
   ## Description
   I'm trying to use MXNet with the Raspberry and so far with no success. First 
I tried to use the pre built wheels file for Python, but got error, more 
details on this 
[issue](https://github.com/apache/incubator-mxnet/issues/16379). Then I tried 
to build from source, and I can't finish the build because of an error.
   
   ## Environment info
   ```
   ----------Python Info----------
   Version      : 3.7.3
   Compiler     : GCC 8.2.0
   Build        : ('default', 'Apr  3 2019 05:39:12')
   Arch         : ('32bit', 'ELF')
   ------------Pip Info-----------
   Version      : 18.1
   Directory    : /usr/lib/python3/dist-packages/pip
   ----------MXNet Info-----------
   Version      : 1.5.0
   Directory    : /home/pi/.local/lib/python3.7/site-packages/mxnet
   Commit hash file 
"/home/pi/.local/lib/python3.7/site-packages/mxnet/COMMIT_HASH" not found. Not 
installed from pre-built package or built from source.
   Library      : 
['/home/pi/.local/lib/python3.7/site-packages/mxnet/libmxnet.so']
   Build features:
   No runtime build feature info available
   ----------System Info----------
   Platform     : Linux-4.19.57-v7l+-armv7l-with-debian-10.0
   system       : Linux
   node         : raspberrypi
   release      : 4.19.57-v7l+
   version      : #1244 SMP Thu Jul 4 18:48:07 BST 2019
   ----------Hardware Info----------
   machine      : armv7l
   processor    :
   Architecture:        armv7l
   Byte Order:          Little Endian
   CPU(s):              4
   On-line CPU(s) list: 0-3
   Thread(s) per core:  1
   Core(s) per socket:  4
   Socket(s):           1
   Vendor ID:           ARM
   Model:               3
   Model name:          Cortex-A72
   Stepping:            r0p3
   CPU max MHz:         1500.0000
   CPU min MHz:         600.0000
   BogoMIPS:            270.00
   Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
idivt vfpd32 lpae evtstrm crc32
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0682 
sec, LOAD: 0.6290 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0763 sec, LOAD: 
5.3752 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 5.0760 sec, LOAD: 
0.7815 sec.
   Timing for FashionMNIST: 
https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz,
 DNS: 0.0574 sec, LOAD: 0.8125 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0836 sec, LOAD: 
0.7488 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0420 sec, 
LOAD: 0.1334 sec.
   ----------Environment----------
   ```
   
   ## Build info
   MXNet commit hash:
   I'm using the [release 
file](https://github.com/apache/incubator-mxnet/releases/download/1.5.1/apache-mxnet-src-1.5.1-incubating.tar.gz)
 from Github.
   
   Build config:
   ```
   cmake \
   -DUSE_SSE=OFF \
   -DUSE_CUDA=OFF \
   -DUSE_OPENCV=ON \
   -DUSE_OPENMP=ON \
   -DUSE_MKL_IF_AVAILABLE=OFF \
   -DUSE_SIGNAL_HANDLER=ON \
   -DCMAKE_BUILD_TYPE=Release \
   -GNinja ..
   ninja -j$(nproc)
   ```
   
   ## Error Message:
   ```
   [261/276] Linking CXX executable im2rec
   FAILED: im2rec
   : && /usr/bin/c++  -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 
-std=c++11 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc 
-fno-builtin-free -fopenmp -std=c++0x -O3 -DNDEBUG  -rdynamic 
CMakeFiles/im2rec.dir/tools/im2rec.cc.o  -o im2rec  -Wl,--whole-archive 
libmxnet.a -Wl,--no-whole-archive -lopenblas -lrt -ljemalloc -llapack 
-ljemalloc /usr/lib/arm-linux-gnueabihf/libopencv_highgui.so.3.2.0 
3rdparty/dmlc-core/libdmlc.a -llapack 
/usr/lib/arm-linux-gnueabihf/libopencv_imgcodecs.so.3.2.0 
/usr/lib/arm-linux-gnueabihf/libopencv_imgproc.so.3.2.0 
/usr/lib/arm-linux-gnueabihf/libopencv_core.so.3.2.0 -lrt && :
   /usr/bin/ld: libmxnet.a(c_api_profile.cc.o): undefined reference to symbol 
'__atomic_fetch_sub_8@@LIBATOMIC_1.0'
   /usr/bin/ld: //usr/lib/arm-linux-gnueabihf/libatomic.so.1: error adding 
symbols: DSO missing from command line
   collect2: error: ld returned 1 exit status
   ```
   
   ## Steps to reproduce
   1. Just follow the build from source instructions from 
[this](https://mxnet.apache.org/index.html) page.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to