ARM-software / ComputeLibrary

The Compute Library is a set of computer vision and machine learning functions optimised for both Arm CPUs and GPUs using SIMD technologies.
MIT License
2.82k stars 774 forks source link

Build error using GCC 12 #983

Closed imzhuhl closed 2 years ago

imzhuhl commented 2 years ago

Output of 'strings libarm_compute.so | grep arm_compute_version': arm_compute_version=v22.05 Build options: {'Werror': '1', 'debug': '1', 'asserts': '1', 'neon': '1', 'opencl': '0', 'os': 'linux', 'build': 'native', 'arch': 'armv8.6-a'} Git hash=b'a175e887d64450decf80ea47d4049832c5805565' Platform:

Operating System: Linux

Problem description: Build error using GCC 12

image

Solution: I found that adding the corresponding header file can solve this problem.

  1. add #include<iterator> to include/libnpy/npy.hpp
  2. add #include <cstring> to utils/command_line/CommandLineParser.h

I want to share this and ask, is it okay to do so ?

morgolock commented 2 years ago

Hi @imzhuhl

This has been fixed in the main branch with the following patch: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7682

Hope this helps.