armnn
armnn copied to clipboard
Error Building PyARMNN on 22.05.01
I used pre-built binaries from 22.05.01
release and as usual followed this manual
At the python setup.py build_ext --inplace
step, building 'pyarmnn._generated._pyarmnn' extension
fails. Here is the full log:
python setup.py build_ext --inplace
running build_ext
building 'pyarmnn._generated._pyarmnn_version' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/src/pyarmnn
creating build/temp.linux-x86_64-3.10/src/pyarmnn/_generated
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I/home/user/project/armnn/include -I/home/user/project/armnn/profiling/common/include -I/home/user/project/venv/include -I/usr/include/python3.10 -c src/pyarmnn/_generated/armnn_version_wrap.cpp -o build/temp.linux-x86_64-3.10/src/pyarmnn/_generated/armnn_version_wrap.o -std=c++14
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/pyarmnn
creating build/lib.linux-x86_64-3.10/pyarmnn/_generated
g++ -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto build/temp.linux-x86_64-3.10/src/pyarmnn/_generated/armnn_version_wrap.o -L/home/user/project/armnnlib -L/usr/lib -Wl,--enable-new-dtags,-R/home/user/project/armnnlib -l:libarmnn.so -o build/lib.linux-x86_64-3.10/pyarmnn/_generated/_pyarmnn_version.cpython-310-x86_64-linux-gnu.so
building 'pyarmnn._generated._pyarmnn' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I/home/user/project/armnn/include -I/home/user/project/armnn/profiling/common/include -I/home/user/project/venv/include -I/usr/include/python3.10 -c src/pyarmnn/_generated/armnn_wrap.cpp -o build/temp.linux-x86_64-3.10/src/pyarmnn/_generated/armnn_wrap.o -std=c++14
In file included from src/pyarmnn/_generated/armnn_wrap.cpp:5941:
/home/user/project/armnn/include/armnn/IRuntime.hpp:19:10: fatal error: client/include/ILocalPacketHandler.hpp: No such file or directory
19 | #include <client/include/ILocalPacketHandler.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
Python Version: 3.10.5
GCC Version: 12.1.0