Skip to content

error: use of undeclared identifier 'CTL_HW' #1274

@Martinfx

Description

@Martinfx

FreeBSD 15.0 amd64 , git hash 09bda62

===>  Building for computelibrary-52.8.0
scons: Reading SConscript files ...
Using compilers:
CC  cc
CXX  c++
scons: done reading SConscript files.
scons: Building targets ...
scons: `arm_compute' is up to date.
scons: `support' is up to date.
scons: `utils' is up to date.
scons: `include/libnpy' is up to date.
scons: Nothing to be done for `include/REUSE.toml'.
scons: `include/CL' is up to date.
scons: `include/stb' is up to date.
scons: Nothing to be done for `include/BUILD.bazel'.
scons: `include/half' is up to date.
create_version_file(["build/src/core/arm_compute_version.embed"], [])
fatal: not a git repository (or any of the parent directories): .git
c++ -o build/src/common/cpuinfo/CpuInfo.o -c -DARCH_ARM -Wextra -Wdisabled-optimization -Wformat=2 -Winit-self -Wstrict-overflow=2 -Wswitch-default -Woverloaded-virtual -Wformat-security -Wctor-dtor-privacy -Wsign-promo -Weffc++ -Wno-overlength-strings -Wall -std=c++14 -pedantic -Wlogical-op -Wnoexcept -Wstrict-null-sentinel -Wno-misleading-indentation -Wno-ignored-attributes -DENABLE_FP32_KERNELS -DENABLE_QASYMM8_KERNELS -DENABLE_QASYMM8_SIGNED_KERNELS -DENABLE_QSYMM16_KERNELS -DENABLE_INTEGER_KERNELS -DENABLE_NHWC_KERNELS -DENABLE_NCHW_KERNELS -fPIC -m64 -fPIC -O3 -DARM_COMPUTE_CPP_SCHEDULER=1 -DENABLE_NEON -DARM_COMPUTE_ENABLE_NEON -DARM_COMPUTE_OPENCL_ENABLED -DARM_COMPUTE_VERSION_MAJOR=38 -DARM_COMPUTE_VERSION_MINOR=0 -DARM_COMPUTE_VERSION_PATCH=0 -Iinclude -I. -Ibuild/build/src/core -Ibuild/src/core -Ibuild/src/cpu/kernels/assembly -Isrc/cpu/kernels/assembly src/common/cpuinfo/CpuInfo.cpp
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wnoexcept' [-Wunknown-warning-option]
warning: unknown warning option '-Wstrict-null-sentinel' [-Wunknown-warning-option]
src/common/cpuinfo/CpuInfo.cpp:402:21: error: use of undeclared identifier 'CTL_HW'
  402 |     mib[0]        = CTL_HW;
      |                     ^
src/common/cpuinfo/CpuInfo.cpp:403:21: error: use of undeclared identifier 'HW_NCPU'
  403 |     mib[1]        = HW_NCPU;
      |                     ^
src/common/cpuinfo/CpuInfo.cpp:404:9: error: use of undeclared identifier 'sysctl'
  404 |     if (sysctl(mib, 2, &ncpu, &len, NULL, 0) == -1)
      |         ^
3 warnings and 3 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions