AI CPU算子工程编译报错
现象描述
参考算子工程编译对AI CPU算子样例工程进行编译时,出现以下报错:
In file included from /home/HwHiAiUser/Ascend/CANN-1.84/toolkit/toolchain/hcc/aarch64-target-linux-gnu/include/c++/7.3.0/aarch64-target-linux-gnu/bits/c++config.h:533:0, from /home/HwHiAiUser/Ascend/CANN-1.84/toolkit/toolchain/hcc/aarch64-target-linux-gnu/include/c++/7.3.0/functional:48, from /home/HwHiAiUser/Ascend/latest/opp/built-in/op_impl/aicpu/aicpu_kernel/inc/cpu_kernel.h:9, from /home/samples-master/cplusplus/level1_single_api/4_op_dev/1_custom_op/cpukernel/impl/unique_cust_kernels.h:19, from /home/samples-master/cplusplus/level1_single_api/4_op_dev/1_custom_op/cpukernel/impl/unique_cust_kernels.cc:16: /home/HwHiAiUser/Ascend/CANN-1.84/toolkit/toolchain/hcc/aarch64-target-linux-gnu/include/c++/7.3.0/aarch64-target-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory #include <features.h> ^~~~~~~~~~~~ compilation terminated.
可能原因
由于CANN版本内置的HCC编译器中不包含glibc组件的相关功能,因此使用HCC编译器时,会提示缺少glibc组件相关的文件。
父主题: FAQ