darknet-nnpack icon indicating copy to clipboard operation
darknet-nnpack copied to clipboard

Error "internal symbol `pthreadpool_deallocate' isn't defined"

Open rahmanzf opened this issue 4 years ago • 5 comments

Hi when i want to make or install it on RPi2 i get this error I have installed all requirement successfully but cant make it. I am trying on Raspbian Buster thanks in advance. FAILED: /home/pi/ninja/NNPACK-darknet/bin/transform-benchmark g++ -pthread -o /home/pi/ninja/NNPACK-darknet/bin/transform-benchmark /home/pi/ninja/NNPACK-darknet/build/bench/transform.c.o /home/pi/ninja/NNPACK-darknet/build/bench/median.c.o /home/pi/ninja/NNPACK-darknet/build/bench/memread.c.o -lrt /home/pi/ninja/NNPACK-darknet/lib/libnnpack.a /home/pi/ninja/NNPACK-darknet/lib/libpthreadpool.a /usr/bin/ld: /home/pi/ninja/NNPACK-darknet/lib/libpthreadpool.a(pthreads.c.o): in function pthreadpool_create': /home/pi/ninja/NNPACK-darknet/deps/pthreadpool/src/pthreads.c:260: undefined reference to pthreadpool_allocate' /usr/bin/ld: /home/pi/ninja/NNPACK-darknet/lib/libpthreadpool.a(pthreads.c.o): in function pthreadpool_destroy': /home/pi/ninja/NNPACK-darknet/deps/pthreadpool/src/pthreads.c:461: undefined reference to pthreadpool_deallocate' /usr/bin/ld: /home/pi/ninja/NNPACK-darknet/deps/pthreadpool/src/pthreads.c:461: undefined reference to pthreadpool_deallocate' /usr/bin/ld: /home/pi/ninja/NNPACK-darknet/bin/transform-benchmark: internal symbol pthreadpool_deallocate' isn't defined /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status [67/147] CXX deps/googletest/googletest/src/gtest-all.cc ninja: build stopped: subcommand failed.

rahmanzf avatar Apr 22 '20 13:04 rahmanzf

I observe the same error on a raspberry pi 3A PLUS Rev 1.0 with Raspian stretch.

I get the error during the ninja build of NNPACK-darknet. Therefore I creaeted a ticket at that repo:

https://github.com/digitalbrain79/NNPACK-darknet/issues/2

KautzJ avatar Apr 22 '20 21:04 KautzJ

I am working with an RPI4. I have followed all the steps and installed the dependencies but when I execute the step $NINJA_PATH/ninja in "Install NNPACK-darknet" it gives me the same error as @rahmanzf.

Any solution? Thanks in advance.

PACarrascoGomez avatar Apr 29 '20 09:04 PACarrascoGomez

I am having the same error with RPI4 (4 Gb RAM),

Any tip? thanks!

DanielTizon avatar Apr 29 '20 10:04 DanielTizon

As said here https://summerbright.xyz/Maratyszcza/NNPACK/issues/187#issuecomment-618771831, the rules that use confu are deprecated. I would recommend you to try the cmake building instructions that you may find in the original NNPACK repo.

angmorpri avatar May 13 '20 10:05 angmorpri

I have merged digitalbrain79/NNPACK-darknet with Maratyszcza/NNPACK, here. It can be built using cmake without any errors.

mrhosseini avatar May 27 '21 15:05 mrhosseini