darknet-nnpack
darknet-nnpack copied to clipboard
Error "internal symbol `pthreadpool_deallocate' isn't defined"
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.
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:
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.
I am having the same error with RPI4 (4 Gb RAM),
Any tip? thanks!
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.
I have merged digitalbrain79/NNPACK-darknet with Maratyszcza/NNPACK, here. It can be built using cmake without any errors.