-
Notifications
You must be signed in to change notification settings - Fork 328
Closed
Labels
Build issueThis problem was about building ArmNN or one of its dependencies.This problem was about building ArmNN or one of its dependencies.TIME WAITWaiting for an approppriate period for a response before closing the issue.Waiting for an approppriate period for a response before closing the issue.
Description
Armnn 22.02 fails to build with GCC12 on openSUSE Tumbleweed:
[ 75s] [ 5%] Building CXX object src/backends/reference/CMakeFiles/armnnRefBackend.dir/RefWorkloadFactory.cpp.o
[ 75s] cd /home/abuild/rpmbuild/BUILD/armnn-22.02/build/src/backends/reference && /usr/bin/c++ -DARMCOMPUTENEON_ENABLED -DARMNNREF_ENABLED -DARMNN_SERIALIZER -DARMNN_SERIALIZER_SCHEMA_PATH=\"/home/abuild/rpmbuild/BUILD/armnn-22.02/src/armnnSerializer/ArmnnSchema.fbs\" -DARMNN_TF_LITE_PARSER -DDYNAMIC_BACKEND_BUILD_DIR=\"/home/abuild/rpmbuild/BUILD/armnn-22.02/build\" -I/home/abuild/rpmbuild/BUILD/armnn-22.02/include -I/home/abuild/rpmbuild/BUILD/armnn-22.02/profiling -I/home/abuild/rpmbuild/BUILD/armnn-22.02/src/armnn -I/home/abuild/rpmbuild/BUILD/armnn-22.02/src/armnnUtils -I/home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends -I/home/abuild/rpmbuild/BUILD/armnn-22.02/src/profiling -I/home/abuild/rpmbuild/BUILD/armnn-22.02/profiling/common/include -isystem /home/abuild/rpmbuild/BUILD/armnn-22.02/third-party -isystem /usr/include/half -mbranch-protection=standard -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -pthread -std=c++14 -Wall -Wextra -Werror -Wold-style-cast -Wno-missing-braces -Wconversion -Wsign-conversion -Wno-psabi -O2 -g -fPIC -MD -MT src/backends/reference/CMakeFiles/armnnRefBackend.dir/RefWorkloadFactory.cpp.o -MF CMakeFiles/armnnRefBackend.dir/RefWorkloadFactory.cpp.o.d -o CMakeFiles/armnnRefBackend.dir/RefWorkloadFactory.cpp.o -c /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/RefWorkloadFactory.cpp
[ 75s] In file included from /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/workloads/RefElementwiseWorkload.hpp:13,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/workloads/RefWorkloads.hpp:39,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/RefWorkloadFactory.cpp:12:
[ 75s] /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/workloads/Maximum.hpp:13:30: error: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Werror=deprecated-declarations]
[ 75s] 13 | struct maximum : public std::binary_function<T, T, T>
[ 75s] | ^~~~~~~~~~~~~~~
[ 75s] In file included from /usr/include/c++/12/functional:49,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/include/armnn/Types.hpp:8,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/include/armnn/MemorySources.hpp:8,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/include/armnn/backends/ITensorHandle.hpp:7,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/include/armnn/backends/ITensorHandleFactory.hpp:8,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/src/armnn/Layer.hpp:9,
[ 75s] from /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/RefWorkloadFactory.cpp:5:
[ 75s] /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
[ 75s] 131 | struct binary_function
[ 75s] | ^~~~~~~~~~~~~~~
[ 75s] In file included from /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/workloads/RefElementwiseWorkload.hpp:14:
[ 75s] /home/abuild/rpmbuild/BUILD/armnn-22.02/src/backends/reference/workloads/Minimum.hpp:12:30: error: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Werror=deprecated-declarations]
[ 75s] 12 | struct minimum : public std::binary_function<T, T, T>
[ 75s] | ^~~~~~~~~~~~~~~
[ 75s] /usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
[ 75s] 131 | struct binary_function
[ 75s] | ^~~~~~~~~~~~~~~
[ 75s] cc1plus: all warnings being treated as errors
[ 75s] make[2]: *** [src/backends/reference/CMakeFiles/armnnRefBackend.dir/build.make:149: src/backends/reference/CMakeFiles/armnnRefBackend.dir/RefWorkloadFactory.cpp.o] Error 1
[ 75s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/armnn-22.02/build'
[ 75s] make[1]: *** [CMakeFiles/Makefile2:2204: src/backends/reference/CMakeFiles/armnnRefBackend.dir/all] Error 2
[ 75s] make[1]: *** Waiting for unfinished jobs....
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Build issueThis problem was about building ArmNN or one of its dependencies.This problem was about building ArmNN or one of its dependencies.TIME WAITWaiting for an approppriate period for a response before closing the issue.Waiting for an approppriate period for a response before closing the issue.