c++ - 运行 cmake 时,`No CMAKE_ASM_COMPILER found` 错误
问题描述
我正在尝试按照这些说明从这里构建 OpenBLAS。运行后
cmake .. -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 -DDYNAMIC_ARCH=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
产生的错误是:
-- The C compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:6 (project):
The CMAKE_C_COMPILER:
clang-cl
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:6 (project):
No CMAKE_ASM_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "D:/OpenBLAS_0.3.10/xianyi-OpenBLAS-63b03ef/build/CMakeFiles/CMakeOutput.log".
See also "D:/OpenBLAS_0.3.10/xianyi-OpenBLAS-63b03ef/build/CMakeFiles/CMakeError.log".
经过一番谷歌搜索,我找到了这个网页:Assembler
它没有指定如何解决此问题。如何解决?
解决方案
推荐阅读
- angular - 函数总是在响应来自嵌套函数之前执行
- sql - if 语句 SQL 日期间隔
- google-cloud-platform - 如何为 GCP 服务帐户 storage.buckets.list 授予只读访问权限?
- java - 在活动中使用 volley 进行两次 API 调用...良好做法?
- batch-file - 在批处理文件中选择性查找?
- scala - 使用 SHA2 散列 Spark Scala 中特定列的函数
- python - 如何从多线程中取回值?
- javascript - JS:Object.defineProperty() 和代理
- java - CompletableFuture 异步执行多个数据库查询
- c# - 为 1:1 私人对话调用 GetConversationMembersAsync 时,操作返回无效状态代码“禁止”