打开微信,使用扫一扫进入页面后,点击右上角菜单,
点击“发送给朋友”或“分享到朋友圈”完成分享
【寒武纪硬件产品型号】必填*:
CPU:arm架构
GPU:MLU320
【使用操作系统】必填*:
例如:麒麟V10
【使用驱动版本】必填*:4.9.2,驱动来源https://cair.cambricon.com/#/home/resource?id=af55fff214674a5aa553320313e13eaf&type=%E6%80%BB%E8%A7%88
【出错信息】必填*:根据README.md提供的步骤,执行make -j编译时报错
/opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:386:41: 错误:‘access_ok’未声明(在此函数内第一次使用) #define cn_access_ok(type, addr, size) access_ok(type, addr, size) ^ /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:396:6: 附注:in expansion of macro ‘cn_access_ok’ if (cn_access_ok(VERIFY_WRITE, (void *)host_addr, count)) ^~~~~~~~~~~~ /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:386:41: 附注:每个未声明的标识符在其出现的函数内只报告一次 #define cn_access_ok(type, addr, size) access_ok(type, addr, size) ^ /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:396:6: 附注:in expansion of macro ‘cn_access_ok’ if (cn_access_ok(VERIFY_WRITE, (void *)host_addr, count)) ^~~~~~~~~~~~ /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c: 在函数‘xxxx_pcie_bar_write’中: /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:410:64: 错误:宏“access_ok”传递了 3 个参数,但只需要 2 个 if (likely(cn_access_ok(VERIFY_READ, (void *)host_addr, count))) ^ In file included from ./include/linux/init.h:5:0, from /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/cndrv_pci.c:16: /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:386:41: 错误:‘access_ok’未声明(在此函数内第一次使用) #define cn_access_ok(type, addr, size) access_ok(type, addr, size) ^ ./include/linux/compiler.h:76:40: 附注:in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/pcie_bar.c:410:13: 附注:in expansion of macro ‘cn_access_ok’ if (likely(cn_access_ok(VERIFY_READ, (void *)host_addr, count))) ^~~~~~~~~~~~ make[2]: *** [ s/Makefile.build:303:/opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/mlu220_mlu270_release/cndrv_pci.o] 错误 1 make[2]: *** 正在等待未完成的任务.... make[2]: *** [ s/Makefile.build:303:/opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2/plat/pcie/develop/cndrv_pci.o] 错误 1 make[1]: *** [Makefile:1541:_module_/opt/soft/cambricon/neuware-mlu270-driver-aarch64-4.9.2] 错误 2 make[1]: 离开目录“/usr/src/kernels/4.19.90-23.6.v2101.ky10.aarch64” make: *** [Makefile:21:all] 错误 2
热门帖子
精华帖子