Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Raspberry pi 4 compile failure #18628

Open
MyraBaba opened this issue Jun 27, 2020 · 3 comments
Open

Raspberry pi 4 compile failure #18628

MyraBaba opened this issue Jun 27, 2020 · 3 comments
Labels

Comments

@MyraBaba
Copy link

Latest Rasbian with 4gig memory Raspi 4.

I cloned mxnet repo as described compile doc .

It gives below error:

/usr/bin/ld: CMakeFiles/mxnet_unit_tests.dir/cpp/operator/activation_perf.cc.o: undefined reference to symbol '__atomic_fetch_sub_8@@LIBATOMIC_1.0' /usr/bin/ld: /opt/gcc-9.1.0/lib/libatomic.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [tests/CMakeFiles/mxnet_unit_tests.dir/build.make:383: tests/mxnet_unit_tests] Error 1 make[1]: *** [CMakeFiles/Makefile2:1513: tests/CMakeFiles/mxnet_unit_tests.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

it is generating libmxnet.so as below

-rwxr-xr-x 1 pi pi 93324 Jun 26 05:12 im2rec
drwxr-xr-x 2 pi pi 4096 Jun 26 01:36 lib
-rwxr-xr-x 1 pi pi 108772 Jun 26 01:35 libcustomop_lib.so
-rwxr-xr-x 1 pi pi 115799324 Jun 26 05:12 libmxnet.so
-rwxr-xr-x 1 pi pi 107728 Jun 26 01:35 libpass_lib.so
-rwxr-xr-x 1 pi pi 143436 Jun 26 01:36 libsubgraph_lib.so
-rwxr-xr-x 1 pi pi 108712 Jun 26 01:36 libtransposecsr_lib.so
-rwxr-xr-x 1 pi pi 110252 Jun 26 01:35 libtransposerowsp_lib.so

when I try :

python3 setup.py bdist_wheel

its working without errors but last hours hours no result ?

Is there anybody who can succesfully compile mxnet on the RaspberryPi 4?

Best

@MyraBaba MyraBaba added the Bug label Jun 27, 2020
@MyraBaba
Copy link
Author

I successfully build mx1.5.1

but not latest one.

@leezu
Copy link
Contributor

leezu commented Jun 29, 2020

@MyraBaba could you try calling cmake with the cmake -Dmxnet_LINKER_LIBS=-latomic [...] argument? We should auto-detect this, but it's not yet done correctly.

@Qengineering
Copy link

Qengineering commented Jul 16, 2020

I've built the latest version of MXNet (2.0.0) on a Raspberry Pi with 32 bit and 64 bit OS successfully. The instructions can be found here install-mxnet-on-raspberry-pi-4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants