conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
967 stars 1.78k forks source link

[package] cpuinfo/cci.20220228: Fails cross-compilation for aarch64 targets #18632

Open jens-ghc opened 1 year ago

jens-ghc commented 1 year ago

Description

When compiling cpuinfo for arm 64 platforms, conan requires the target arch to be set to armv8. Unfortunately, when this is passed to cpuinfo it treats armv8 as an arm 32bit platform - it expects the target platform to be set to aarch64 for 64 bit support. But this is not possible in conan, since this is not a valid setting for arch. As a result, the recipe tries to compile for the wrong architecture and failing with error messages.

Package and Environment Details

Conan profile

Configuration (profile_host): [settings] arch=armv8 build_type=Debug compiler=gcc compiler.libcxx=libstdc++11 compiler.version=8 os=Linux ne-10:build_type=Release sensor-processor:build_type=Release tensorflow-lite:build_type=Release

Configuration (profile_build): [settings] arch=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=8 os=Linux [options] [build_requires] [env] AR=x86_64-linux-gnu-ar AS=x86_64-linux-gnu-as CC=x86_64-linux-gnu-gcc CHOST=x86_64-linux-gnu CXX=x86_64-linux-gnu-g++-8 LD=x86_64-linux-gnu-ld NM=x86_64-linux-gnu-nm RANLIB=x86_64-linux-gnu-ranlib STRIP=x86_64-linux-gnu-strip

Steps to reproduce

The problem is caused by these lines in CMakeLists of the recipe. When using the conan arm profile for 64 bit systems, CMAKE_SYSTEM_PROCESSOR is set to armv8 but it needs to be aarch64 for this check to work properly.

      IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^armv[5-8]")
        LIST(APPEND CPUINFO_SRCS src/arm/linux/aarch32-isa.c)
        IF(CMAKE_SYSTEM_NAME STREQUAL "Android" AND ANDROID_ABI STREQUAL "armeabi")
          SET_SOURCE_FILES_PROPERTIES(src/arm/linux/aarch32-isa.c PROPERTIES COMPILE_FLAGS -marm)
        ENDIF()
      ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)$")
        LIST(APPEND CPUINFO_SRCS src/arm/linux/aarch64-isa.c)
      ENDIF()

In order to fix this, would it be possible to modify the cpuinfo recipe to define CMAKE_SYSTEM_PROCESSOR as aarch64 whenever the conan architecture is set to armv8?

Logs

Click to expand log ``` cpuinfo/cci.20220228: WARN: Build folder is dirty, removing it: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80 cpuinfo/cci.20220228: Copying sources to build folder cpuinfo/cci.20220228: Building your package in /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80 cpuinfo/cci.20220228: Generator txt created conanbuildinfo.txt cpuinfo/cci.20220228: Calling generate() cpuinfo/cci.20220228: Preset 'debug' added to CMakePresets.json. Invoke it manually using 'cmake --preset debug' cpuinfo/cci.20220228: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug/generators/conan_toolchain.cmake -DCPUINFO_LIBRARY_TYPE=default -DCPUINFO_RUNTIME_TYPE=default -DCPUINFO_LOG_LEVEL=default -DCLOG_RUNTIME_TYPE=default -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug' cpuinfo/cci.20220228: Aggregating env generators cpuinfo/cci.20220228: Calling build() cpuinfo/cci.20220228: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/.conan/data/cpuinfo/cci.20220228/_/_/package/d5408b8da1880c6460245fdb958d338f5c896d80" -DCPUINFO_LIBRARY_TYPE="default" -DCPUINFO_RUNTIME_TYPE="default" -DCPUINFO_LOG_LEVEL="default" -DCLOG_RUNTIME_TYPE="default" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src" CMAKE_SYSTEM_PROCESSOR: -- Using Conan toolchain: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug/generators/conan_toolchain.cmake -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC) -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-8 - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-8 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMAKE_SYSTEM_PROCESSOR: armv8 -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug cpuinfo/cci.20220228: CMake command: cmake --build "/home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug" '--' '-j12' Scanning dependencies of target clog [ 2%] Building C object deps/clog/CMakeFiles/clog.dir/src/clog.c.o [ 5%] Linking C static library libclog.a [ 5%] Built target clog Scanning dependencies of target cpuinfo Scanning dependencies of target cpuinfo_internals [ 22%] Building C object CMakeFiles/cpuinfo_internals.dir/src/init.c.o [ 22%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/chipset.c.o [ 22%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/cache.c.o [ 25%] Building C object CMakeFiles/cpuinfo.dir/src/init.c.o [ 25%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/init.c.o [ 25%] Building C object CMakeFiles/cpuinfo.dir/src/api.c.o [ 27%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/cpuinfo.c.o [ 30%] Building C object CMakeFiles/cpuinfo_internals.dir/src/cache.c.o [ 30%] Building C object CMakeFiles/cpuinfo_internals.dir/src/api.c.o [ 36%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/clusters.c.o [ 36%] Building C object CMakeFiles/cpuinfo.dir/src/cache.c.o [ 38%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/uarch.c.o /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/chipset.c: In function ‘strcicmp’: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/chipset.c:330:11: warning: implicit declaration of function ‘tolower’ [-Wimplicit-function-declaration] int d = tolower((unsigned char)*a) - tolower((unsigned char)*b); ^~~~~~~ [ 44%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/midr.c.o [ 44%] Building C object CMakeFiles/cpuinfo.dir/src/arm/uarch.c.o [ 47%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/hwcap.c.o [ 50%] Building C object CMakeFiles/cpuinfo.dir/src/arm/cache.c.o [ 52%] Building C object CMakeFiles/cpuinfo_internals.dir/src/arm/linux/aarch32-isa.c.o [ 58%] Building C object CMakeFiles/cpuinfo_internals.dir/src/linux/smallfile.c.o [ 58%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/init.c.o [ 61%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/cpuinfo.c.o [ 66%] Building C object CMakeFiles/cpuinfo_internals.dir/src/linux/cpulist.c.o [ 66%] Building C object CMakeFiles/cpuinfo_internals.dir/src/linux/multiline.c.o [ 69%] Building C object CMakeFiles/cpuinfo_internals.dir/src/linux/processors.c.o [ 72%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/clusters.c.o /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c: In function ‘cpuinfo_arm_linux_decode_isa_from_proc_cpuinfo’: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:41:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv5e’ isa->armv5e = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:42:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6’ isa->armv6 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:43:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6k’ isa->armv6k = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:44:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7’ isa->armv7 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:45:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7mp’ isa->armv7mp = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:46:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv8’ isa->armv8 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:47:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb’ isa->thumb = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:48:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb2’ isa->thumb2 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:49:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘idiv’ isa->idiv = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:50:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘vfpv3’ isa->vfpv3 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:51:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘d32’ isa->d32 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:52:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fp16’; did you mean ‘bf16’? isa->fp16 = true; ^~~~ bf16 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:53:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fma’; did you mean ‘fcma’? isa->fma = true; ^~~ fcma /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:54:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘neon’ isa->neon = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:41: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPV3’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? const uint32_t armv7_features_mask = CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | CPUINFO_ARM_LINUX_FEATURE_VFPD32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:41: note: each undeclared identifier is reported only once for each function it appears in /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:75: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPV3D16’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? const uint32_t armv7_features_mask = CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | CPUINFO_ARM_LINUX_FEATURE_VFPD32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:112: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPD32’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? const uint32_t armv7_features_mask = CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | CPUINFO_ARM_LINUX_FEATURE_VFPD32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:5: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPV4’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:39: error: ‘CPUINFO_ARM_LINUX_FEATURE_NEON’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_AES’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_AES /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:72: error: ‘CPUINFO_ARM_LINUX_FEATURE_IDIVT’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_DIT’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_DIT /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:106: error: ‘CPUINFO_ARM_LINUX_FEATURE_IDIVA’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_DIT’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_DIT /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:137:50: error: ‘CPUINFO_ARM_LINUX_FEATURE_EDSP’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? if ((architecture_version >= 6) || (features & CPUINFO_ARM_LINUX_FEATURE_EDSP) || (architecture_flags & CPUINFO_ARM_LINUX_ARCH_E)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:138:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv5e’ isa->armv5e = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:141:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6’ isa->armv6 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:144:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6k’ isa->armv6k = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:145:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7’ isa->armv7 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:164:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7mp’ isa->armv7mp = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:168:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7mp’ isa->armv7mp = (features & CPUINFO_ARM_LINUX_FEATURE_IDIV) == CPUINFO_ARM_LINUX_FEATURE_IDIV; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:168:33: error: ‘CPUINFO_ARM_LINUX_FEATURE_IDIV’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_DIT’? isa->armv7mp = (features & CPUINFO_ARM_LINUX_FEATURE_IDIV) == CPUINFO_ARM_LINUX_FEATURE_IDIV; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_DIT /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:173:18: error: ‘CPUINFO_ARM_LINUX_FEATURE_IWMMXT’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE2_I8MM’? if (features & CPUINFO_ARM_LINUX_FEATURE_IWMMXT) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE2_I8MM /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:178:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘wmmx’ isa->wmmx = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:180:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘wmmx2’ isa->wmmx2 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:189:19: error: ‘CPUINFO_ARM_LINUX_FEATURE_THUMB’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SB’? if ((features & CPUINFO_ARM_LINUX_FEATURE_THUMB) || (architecture_flags & CPUINFO_ARM_LINUX_ARCH_T)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SB /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:190:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb’ isa->thumb = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:197:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb2’ isa->thumb2 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:200:18: error: ‘CPUINFO_ARM_LINUX_FEATURE_THUMBEE’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SB’? if (features & CPUINFO_ARM_LINUX_FEATURE_THUMBEE) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SB /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:201:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumbee’ isa->thumbee = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:203:19: error: ‘CPUINFO_ARM_LINUX_FEATURE_JAVA’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_PACA’? if ((features & CPUINFO_ARM_LINUX_FEATURE_JAVA) || (architecture_flags & CPUINFO_ARM_LINUX_ARCH_J)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_PACA /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:204:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘jazelle’ isa->jazelle = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:209:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘idiv’ isa->idiv = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:213:4: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFP’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FP’? CPUINFO_ARM_LINUX_FEATURE_VFP | CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:219:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘vfpv3’ isa->vfpv3 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:223:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘d32’ isa->d32 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:227:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘vfpv3’ isa->vfpv3 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:239:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘neon’ isa->neon = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:248:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fp16’; did you mean ‘bf16’? isa->fp16 = true; ^~~~ bf16 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:252:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fma’; did you mean ‘fcma’? isa->fma = true; ^~~ fcma /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:256:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_AES’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_AES’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_AES) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_AES /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:259:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_PMULL’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_PMULL’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_PMULL) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_PMULL /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:262:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_SHA1’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SHA1’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_SHA1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SHA1 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:265:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_SHA2’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SHA2’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_SHA2) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SHA2 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:268:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_CRC32’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_CRC32’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_CRC32) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_CRC32 CMakeFiles/cpuinfo_internals.dir/build.make:224: recipe for target 'CMakeFiles/cpuinfo_internals.dir/src/arm/linux/aarch32-isa.c.o' failed make[2]: *** [CMakeFiles/cpuinfo_internals.dir/src/arm/linux/aarch32-isa.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 77%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/hwcap.c.o [ 77%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/midr.c.o [ 80%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/chipset.c.o [ 83%] Building C object CMakeFiles/cpuinfo.dir/src/arm/linux/aarch32-isa.c.o [ 86%] Building C object CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o [ 88%] Building C object CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o [ 91%] Building C object CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o CMakeFiles/Makefile2:143: recipe for target 'CMakeFiles/cpuinfo_internals.dir/all' failed make[1]: *** [CMakeFiles/cpuinfo_internals.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 94%] Building C object CMakeFiles/cpuinfo.dir/src/linux/processors.c.o /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/chipset.c: In function ‘strcicmp’: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/chipset.c:330:11: warning: implicit declaration of function ‘tolower’ [-Wimplicit-function-declaration] int d = tolower((unsigned char)*a) - tolower((unsigned char)*b); ^~~~~~~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c: In function ‘cpuinfo_arm_linux_decode_isa_from_proc_cpuinfo’: /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:41:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv5e’ isa->armv5e = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:42:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6’ isa->armv6 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:43:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6k’ isa->armv6k = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:44:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7’ isa->armv7 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:45:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7mp’ isa->armv7mp = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:46:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv8’ isa->armv8 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:47:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb’ isa->thumb = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:48:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb2’ isa->thumb2 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:49:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘idiv’ isa->idiv = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:50:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘vfpv3’ isa->vfpv3 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:51:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘d32’ isa->d32 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:52:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fp16’; did you mean ‘bf16’? isa->fp16 = true; ^~~~ bf16 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:53:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fma’; did you mean ‘fcma’? isa->fma = true; ^~~ fcma /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:54:6: error: ‘struct cpuinfo_arm_isa’ has no member named ‘neon’ isa->neon = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:41: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPV3’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? const uint32_t armv7_features_mask = CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | CPUINFO_ARM_LINUX_FEATURE_VFPD32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:41: note: each undeclared identifier is reported only once for each function it appears in /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:75: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPV3D16’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? const uint32_t armv7_features_mask = CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | CPUINFO_ARM_LINUX_FEATURE_VFPD32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:131:112: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPD32’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? const uint32_t armv7_features_mask = CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | CPUINFO_ARM_LINUX_FEATURE_VFPD32 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:5: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFPV4’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:39: error: ‘CPUINFO_ARM_LINUX_FEATURE_NEON’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_AES’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_AES /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:72: error: ‘CPUINFO_ARM_LINUX_FEATURE_IDIVT’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_DIT’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_DIT /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:132:106: error: ‘CPUINFO_ARM_LINUX_FEATURE_IDIVA’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_DIT’? CPUINFO_ARM_LINUX_FEATURE_VFPV4 | CPUINFO_ARM_LINUX_FEATURE_NEON | CPUINFO_ARM_LINUX_FEATURE_IDIVT | CPUINFO_ARM_LINUX_FEATURE_IDIVA; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_DIT /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:137:50: error: ‘CPUINFO_ARM_LINUX_FEATURE_EDSP’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FPHP’? if ((architecture_version >= 6) || (features & CPUINFO_ARM_LINUX_FEATURE_EDSP) || (architecture_flags & CPUINFO_ARM_LINUX_ARCH_E)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FPHP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:138:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv5e’ isa->armv5e = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:141:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6’ isa->armv6 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:144:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv6k’ isa->armv6k = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:145:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7’ isa->armv7 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:164:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7mp’ isa->armv7mp = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:168:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘armv7mp’ isa->armv7mp = (features & CPUINFO_ARM_LINUX_FEATURE_IDIV) == CPUINFO_ARM_LINUX_FEATURE_IDIV; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:168:33: error: ‘CPUINFO_ARM_LINUX_FEATURE_IDIV’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_DIT’? isa->armv7mp = (features & CPUINFO_ARM_LINUX_FEATURE_IDIV) == CPUINFO_ARM_LINUX_FEATURE_IDIV; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_DIT /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:173:18: error: ‘CPUINFO_ARM_LINUX_FEATURE_IWMMXT’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE2_I8MM’? if (features & CPUINFO_ARM_LINUX_FEATURE_IWMMXT) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE2_I8MM /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:178:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘wmmx’ isa->wmmx = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:180:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘wmmx2’ isa->wmmx2 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:189:19: error: ‘CPUINFO_ARM_LINUX_FEATURE_THUMB’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SB’? if ((features & CPUINFO_ARM_LINUX_FEATURE_THUMB) || (architecture_flags & CPUINFO_ARM_LINUX_ARCH_T)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SB /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:190:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb’ isa->thumb = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:197:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumb2’ isa->thumb2 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:200:18: error: ‘CPUINFO_ARM_LINUX_FEATURE_THUMBEE’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SB’? if (features & CPUINFO_ARM_LINUX_FEATURE_THUMBEE) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SB /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:201:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘thumbee’ isa->thumbee = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:203:19: error: ‘CPUINFO_ARM_LINUX_FEATURE_JAVA’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_PACA’? if ((features & CPUINFO_ARM_LINUX_FEATURE_JAVA) || (architecture_flags & CPUINFO_ARM_LINUX_ARCH_J)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_PACA /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:204:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘jazelle’ isa->jazelle = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:209:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘idiv’ isa->idiv = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:213:4: error: ‘CPUINFO_ARM_LINUX_FEATURE_VFP’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_FP’? CPUINFO_ARM_LINUX_FEATURE_VFP | CPUINFO_ARM_LINUX_FEATURE_VFPV3 | CPUINFO_ARM_LINUX_FEATURE_VFPV3D16 | \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_FP /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:219:8: error: ‘struct cpuinfo_arm_isa’ has no member named ‘vfpv3’ isa->vfpv3 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:223:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘d32’ isa->d32 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:227:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘vfpv3’ isa->vfpv3 = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:239:7: error: ‘struct cpuinfo_arm_isa’ has no member named ‘neon’ isa->neon = true; ^~ /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:248:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fp16’; did you mean ‘bf16’? isa->fp16 = true; ^~~~ bf16 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:252:9: error: ‘struct cpuinfo_arm_isa’ has no member named ‘fma’; did you mean ‘fcma’? isa->fma = true; ^~~ fcma /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:256:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_AES’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_AES’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_AES) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_AES /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:259:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_PMULL’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_PMULL’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_PMULL) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_PMULL /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:262:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_SHA1’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SHA1’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_SHA1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SHA1 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:265:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_SHA2’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_SHA2’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_SHA2) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_SHA2 /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/src/src/arm/linux/aarch32-isa.c:268:18: error: ‘CPUINFO_ARM_LINUX_FEATURE2_CRC32’ undeclared (first use in this function); did you mean ‘CPUINFO_ARM_LINUX_FEATURE_CRC32’? if (features2 & CPUINFO_ARM_LINUX_FEATURE2_CRC32) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CPUINFO_ARM_LINUX_FEATURE_CRC32 CMakeFiles/cpuinfo.dir/build.make:224: recipe for target 'CMakeFiles/cpuinfo.dir/src/arm/linux/aarch32-isa.c.o' failed make[2]: *** [CMakeFiles/cpuinfo.dir/src/arm/linux/aarch32-isa.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:116: recipe for target 'CMakeFiles/cpuinfo.dir/all' failed make[1]: *** [CMakeFiles/cpuinfo.dir/all] Error 2 Makefile:148: recipe for target 'all' failed make: *** [all] Error 2 cpuinfo/cci.20220228: cpuinfo/cci.20220228: ERROR: Package 'd5408b8da1880c6460245fdb958d338f5c896d80' build failed cpuinfo/cci.20220228: WARN: Build folder /home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug ERROR: cpuinfo/cci.20220228: Error in build() method, line 76 cmake.build() ConanException: Error 2 while executing cmake --build "/home/conan/.conan/data/cpuinfo/cci.20220228/_/_/build/d5408b8da1880c6460245fdb958d338f5c896d80/build/Debug" '--' '-j12' ```
EstebanDugueperoux2 commented 1 year ago

Hi @jens-totemic ,

this seems an old raised issue, see https://github.com/conan-io/conan/issues/8025. @memsharded do you know why in generated settings.yml (from https://github.com/conan-io/conan/blob/c3ac30a4118e022303662731d540b8f9a3d2799a/conans/client/conf/__init__.py#L58) we have armv8 instead of aarch64 as in https://wiki.debian.org/Multiarch/Tuples?

We see also in profile detection, https://github.com/conan-io/conan/blob/c3ac30a4118e022303662731d540b8f9a3d2799a/conans/client/conf/detect.py#L310, that aarch64 is mapped to armv8.

With meson build helper, we see a map (https://github.com/conan-io/conan/blob/c3ac30a4118e022303662731d540b8f9a3d2799a/conan/tools/meson/helpers.py#L32) between conan arch values and meson cpu_family (https://mesonbuild.com/Reference-tables.html#cpu-families).

for cpu_features recipe we see a test to update CMAKE_SYSTEM_PROCESSOR (https://github.com/conan-io/conan-center-index/blob/master/recipes/cpu_features/all/conanfile.py#L54) done by @SpaceIm .

@memsharded what do you think about to make similar mapping to cmake helpers similar to what is done for meson helper, instead of having each recipe have a test to update the CMAKE_SYSTEM_PROCESSOR?

Regards.