PAconv环境配置:build.ninja缺少lib的解决+error LNK2019: 无法解析的外部符号

本文解决了一个在PAconv项目编译过程中遇到的问题,详细介绍了如何定位并解决缺少.lib文件及外部符号未解析等错误,包括修改build.ninja文件和调整cpp_extension.py中的链接库配置。

1.背景

最近跑PAconv项目,电脑上有版本匹配的cl.exe,但是仍然报错

Error checking compiler version for cl: [WinError 2] 系统找 不到指定的文件。

然后后面有一串cpp_extension.py里面代码的报错
没办法,只能一步步定位存在的其他错误。

2.错误定位过程

1) 首先去对应需要编译的 .cu 文件夹下,找到是否成功编译了 build.ninja 文件,我的情况是 build.ninja 文件还是成功编译了的,如果 build.ninja 文件都没有成功编译的,这里的方法应该不大适用,可以尝试在 cpp.extension.py 里面打断点,debug看哪里出了问题。

关于ninja: Ninja是用于编译的工具,相对于Makefile更注重于编译速度,Ninja默认的编译文件则是 build.ninja

(关于ninja -v)

2)build.ninja文件已经有,在terminal下用ninja -v命令,启动build.ninja文件中写入的编译命令,可以编译过程中更细的报错。我的报错有缺少多个 .lib文件(多次运行,多次报错,每次报一个),可以在build.ninja中写入这些文件,然后把这些lib在 VS2017\VC\Tools\MSVC\14.16.27023\lib\x64 和windows S

cmake_minimum_required(VERSION 3.31) project(amqp_c_sdk LANGUAGES C) set(CMAKE_C_STANDARD 11) # 设定构建运行路径,避免污染根目录 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/.archive) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/.library) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/.runtime) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/.runtime) set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/.library) # 查找并导入库 find_package(CURL CONFIG REQUIRED) find_package(rabbitmq-c CONFIG REQUIRED) find_package(json-c CONFIG REQUIRED) include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${CURL_INCLUDE_DIRS}) include_directories(${RABBITMQ-C_INCLUDE_DIRS}) include_directories(${JSONC_INCLUDE_DIRS}) # 收集所有源文件 file(GLOB_RECURSE SOURCES "src/*.c") # 添加一个可执行文件,包含所有源文件 add_executable(amqp_c_sdk ${SOURCES}) ## 遍历项目src目录下所有的 .c 文件,自动添加 #file(GLOB_RECURSE files src/**.c src/**.cpp) #foreach (file ${files}) # 遍历所有发现的文件 # get_filename_component(name ${file} NAME) # 获取文件名 ## add_library(${name} SHARED ${file}) # 添加可执行文件 # add_executable(${name} ${file}) # 添加可执行文件 #endforeach () # 遍历结束 # 链接库 #target_link_libraries(${name}) # 链接库 target_link_libraries(amqp_c_sdk PRIVATE ${CURL_LIBRARIES} ${JSON_C_LIBRARIES} ${RABBITMQ_C_LIBRARIES} rpcrt4 # 链接 Windows 的 rpcrt4 库,用于 UUID 函数 ) 配置如上,日志如下 "D:\Program Files\JetBrains\CLion 2025.1.3\bin\cmake\win\x64\bin\cmake.exe" --build D:\work\code\CLionProjects\amqp-c-sdk\cmake-build-debug-visual-studio --target amqp_c_sdk -j 14 [1/2] Building C object CMakeFiles\amqp_c_sdk.dir\src\signature_utils.c.obj [2/2] Linking C executable D:\work\code\CLionProjects\amqp-c-sdk\.runtime\amqp_c_sdk.exe FAILED: D:/work/code/CLionProjects/amqp-c-sdk/.runtime/amqp_c_sdk.exe C:\WINDOWS\system32\cmd.exe /C "cd . && "D:\Program Files\JetBrains\CLion 2025.1.3\bin\cmake\win\x64\bin\cmake.exe" -E vs_link_exe --msvc-ver=1944 --intdir=CMakeFiles\amqp_c_sdk.dir --rc=D:\WINDOW~1\10\bin\100261~1.0\x64\rc.exe --mt=D:\WINDOW~1\10\bin\100261~1.0\x64\mt.exe --manifests -- D:\PROGRA~2\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo CMakeFiles\amqp_c_sdk.dir\src\http.c.obj CMakeFiles\amqp_c_sdk.dir\src\main.c.obj CMakeFiles\amqp_c_sdk.dir\src\rabbitmq.c.obj CMakeFiles\amqp_c_sdk.dir\src\sdk_init_info_dto.c.obj CMakeFiles\amqp_c_sdk.dir\src\sdk_init_info_vo.c.obj CMakeFiles\amqp_c_sdk.dir\src\signature_utils.c.obj CMakeFiles\amqp_c_sdk.dir\src\url_utils.c.obj /out:D:\work\code\CLionProjects\amqp-c-sdk\.runtime\amqp_c_sdk.exe /implib:D:\work\code\CLionProjects\amqp-c-sdk\.archive\amqp_c_sdk.lib /pdb:D:\work\code\CLionProjects\amqp-c-sdk\.runtime\amqp_c_sdk.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console D:\work\soft\clion\.vcpkg-clion\vcpkg\installed\x64-windows\debug\lib\libcurl-d.lib rpcrt4.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && C:\WINDOWS\system32\cmd.exe /C "cd /D D:\work\code\CLionProjects\amqp-c-sdk\cmake-build-debug-visual-studio && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file D:/work/soft/clion/.vcpkg-clion/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary D:/work/code/CLionProjects/amqp-c-sdk/.runtime/amqp_c_sdk.exe -installedDir D:/work/soft/clion/.vcpkg-clion/vcpkg/installed/x64-windows/debug/bin -OutVariable out"" LINK Pass 1: command "D:\PROGRA~2\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo CMakeFiles\amqp_c_sdk.dir\src\http.c.obj CMakeFiles\amqp_c_sdk.dir\src\main.c.obj CMakeFiles\amqp_c_sdk.dir\src\rabbitmq.c.obj CMakeFiles\amqp_c_sdk.dir\src\sdk_init_info_dto.c.obj CMakeFiles\amqp_c_sdk.dir\src\sdk_init_info_vo.c.obj CMakeFiles\amqp_c_sdk.dir\src\signature_utils.c.obj CMakeFiles\amqp_c_sdk.dir\src\url_utils.c.obj /out:D:\work\code\CLionProjects\amqp-c-sdk\.runtime\amqp_c_sdk.exe /implib:D:\work\code\CLionProjects\amqp-c-sdk\.archive\amqp_c_sdk.lib /pdb:D:\work\code\CLionProjects\amqp-c-sdk\.runtime\amqp_c_sdk.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console D:\work\soft\clion\.vcpkg-clion\vcpkg\installed\x64-windows\debug\lib\libcurl-d.lib rpcrt4.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\amqp_c_sdk.dir/intermediate.manifest CMakeFiles\amqp_c_sdk.dir/manifest.res" failed (exit code 1120) with the following output: signature_utils.c.obj : error LNK2005: main 已经在 http.c.obj 中定义 http.c.obj : error LNK2019: 无法解析外部符号 json_object_put,函数 parse_json_response 中引用了该符号 http.c.obj : error LNK2019: 无法解析外部符号 json_object_object_get,函数 parse_json_response 中引用了该符号 http.c.obj : error LNK2019: 无法解析外部符号 json_object_get_int,函数 parse_json_response 中引用了该符号 http.c.obj : error LNK2019: 无法解析外部符号 json_object_get_string,函数 parse_json_response 中引用了该符号 http.c.obj : error LNK2019: 无法解析外部符号 json_tokener_parse,函数 parse_json_response 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_channel_open,函数 rabbitmq_connect 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_basic_consume,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_cstring_bytes,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_new_connection,函数 rabbitmq_connect 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_destroy_connection,函数 rabbitmq_close 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_maybe_release_buffers,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_get_rpc_reply,函数 rabbitmq_connect 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_login,函数 rabbitmq_connect 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_connection_close,函数 rabbitmq_close 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_basic_ack,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_consume_message,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_destroy_envelope,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_socket_open,函数 rabbitmq_connect 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_tcp_socket_new,函数 rabbitmq_connect 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_empty_bytes,函数 rabbitmq_basic_consume 中引用了该符号 rabbitmq.c.obj : error LNK2019: 无法解析外部符号 __imp_amqp_empty_table,函数 rabbitmq_basic_consume 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_new,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_write,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_ctrl,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_push,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_free_all,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_s_mem,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 BIO_f_base64,函数 base64_encode 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 EVP_sha1,函数 hmac_sha1_signature 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 HMAC_CTX_new,函数 hmac_sha1_signature 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 HMAC_CTX_free,函数 hmac_sha1_signature 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 HMAC_Init_ex,函数 hmac_sha1_signature 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 HMAC_Update,函数 hmac_sha1_signature 中引用了该符号 signature_utils.c.obj : error LNK2019: 无法解析外部符号 HMAC_Final,函数 hmac_sha1_signature 中引用了该符号 D:\work\code\CLionProjects\amqp-c-sdk\.runtime\amqp_c_sdk.exe : fatal error LNK1120: 34 个无法解析外部命令 ninja: build stopped: subcommand failed. 为什么会这样,说明原因并给出解决办法
07-24
>------ 生成 已启动: 项目: CMakeLists,配置: Debug ------ [1/1] Linking CXX executable MiniDraw.exe FAILED: MiniDraw.exe C:\WINDOWS\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\MiniDraw.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\link.exe /nologo CMakeFiles\MiniDraw.dir\MiniDraw_autogen\mocs_compilation.cpp.obj /out:MiniDraw.exe /implib:MiniDraw.lib /pdb:MiniDraw.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:windows D:\qt\6.9.3\msvc2022_64\lib\Qt6Widgetsd.lib D:\qt\6.9.3\msvc2022_64\lib\Qt6Guid.lib D:\qt\6.9.3\msvc2022_64\lib\Qt6Cored.lib mpr.lib userenv.lib D:\qt\6.9.3\msvc2022_64\lib\Qt6EntryPointd.lib shell32.lib d3d11.lib dxgi.lib dxguid.lib d3d12.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK Pass 1: command "C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx64\x64\link.exe /nologo CMakeFiles\MiniDraw.dir\MiniDraw_autogen\mocs_compilation.cpp.obj /out:MiniDraw.exe /implib:MiniDraw.lib /pdb:MiniDraw.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:windows D:\qt\6.9.3\msvc2022_64\lib\Qt6Widgetsd.lib D:\qt\6.9.3\msvc2022_64\lib\Qt6Guid.lib D:\qt\6.9.3\msvc2022_64\lib\Qt6Cored.lib mpr.lib userenv.lib D:\qt\6.9.3\msvc2022_64\lib\Qt6EntryPointd.lib shell32.lib d3d11.lib dxgi.lib dxguid.lib d3d12.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\MiniDraw.dir/intermediate.manifest CMakeFiles\MiniDraw.dir/manifest.res" failed (exit code 1120) with the following output: D:\ProgramTrain\MiniDraw\out\build\debug\Qt6EntryPointd.lib(qtentrypoint_win.cpp.obj) : error LNK2019: 无法解析外部符号 main,函数 "int __cdecl qtEntryPoint(void)" (?qtEntryPoint@@YAHXZ) 中引用了该符号 D:\ProgramTrain\MiniDraw\out\build\debug\MiniDraw.exe : fatal error LNK1120: 1 个无法解析外部命令 ninja: build stopped: subcommand failed.
10-26
(pytorch_env) PS E:\PyTorch_Build\pytorch> # 1. 将 Windows SDK 的库路径添加到当前的 LIB 环境变量中 (pytorch_env) PS E:\PyTorch_Build\pytorch> # 这个路径是标准路径,通常不会变 (pytorch_env) PS E:\PyTorch_Build\pytorch> $env:LIB = "$env:LIB;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64" (pytorch_env) PS E:\PyTorch_Build\pytorch> (pytorch_env) PS E:\PyTorch_Build\pytorch> # 2. 验证路径是否添加成功 (pytorch_env) PS E:\PyTorch_Build\pytorch> echo $env:LIB ;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64 (pytorch_env) PS E:\PyTorch_Build\pytorch> (pytorch_env) PS E:\PyTorch_Build\pytorch> # 3. 重新尝试编译(继续从上次的地方开始) (pytorch_env) PS E:\PyTorch_Build\pytorch> cmake --build build --target install --config Release -j 4 [1/352] Building CXX object caffe2\CMakeFiles\cuda_reportM...r\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_reportMemoryUsage_test.dir/__/aten/src/ATen/test/cuda_reportMemoryUsage_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp E:\PyTorch_Build\pytorch\torch/headeronly/macros/Macros.h(3): fatal error C1083: 无法打开包括文件: “cassert”: No such file or directory [2/352] Building CXX object caffe2\CMakeFiles\cuda_allocat...\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_allocatorTraceTracker_test.dir/__/aten/src/ATen/test/cuda_allocatorTraceTracker_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\__\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp E:\PyTorch_Build\pytorch\c10/core/Allocator.h(3): fatal error C1083: 无法打开包括文件: “array”: No such file or directory [4/352] Linking CXX shared library bin\shm.dll FAILED: [code=4294967295] bin/shm.dll lib/shm.lib C:\WINDOWS\system32\cmd.exe /C "cd . && E:\PyTorch_Build\pytorch\pytorch_env\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_dll --msvc-ver=1944 --intdir=caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64" lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib" lib\kineto.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib" lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib" cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK: command "C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64 lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib lib\kineto.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 1104) with the following output: onnx.lib(helper.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(convert.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(implementation.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(inliner.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(shape_inference.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(schema.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(printer.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(parser.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(function.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(data_type_utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(attr_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(status.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(path.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(model_helpers.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(ir_pb_converter.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(interned_strings.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(assertions.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(checker.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx_onnx_torch-ml.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx-data_onnx_torch.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) LINK : fatal error LNK1104: 无法打开文件“msvcprt.libninja: build stopped: subcommand failed. (pytorch_env) PS E:\PyTorch_Build\pytorch> # 搜索 psapi.lib 文件 (pytorch_env) PS E:\PyTorch_Build\pytorch> dir "C:\Program Files (x86)\Windows Kits\10\Lib\" -Recurse -Filter psapi.lib | Format-List FullName FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\arm\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\arm64\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x86\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\arm64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x86\psapi.lib (pytorch_env) PS E:\PyTorch_Build\pytorch> (pytorch_env) PS E:\PyTorch_Build\pytorch> $env:LIB = "$env:LIB;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\arm\Psapi.Lib" (pytorch_env) PS E:\PyTorch_Build\pytorch> cmake --build build --target install --config Release -j 4 [1/352] Building CXX object caffe2\CMakeFiles\cuda_allocat...\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_allocatorTraceTracker_test.dir/__/aten/src/ATen/test/cuda_allocatorTraceTracker_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\__\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp E:\PyTorch_Build\pytorch\c10/core/Allocator.h(3): fatal error C1083: 无法打开包括文件: “array”: No such file or directory [2/352] Building CXX object caffe2\CMakeFiles\cuda_reportM...r\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_reportMemoryUsage_test.dir/__/aten/src/ATen/test/cuda_reportMemoryUsage_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp E:\PyTorch_Build\pytorch\torch/headeronly/macros/Macros.h(3): fatal error C1083: 无法打开包括文件: “cassert”: No such file or directory [4/352] Linking CXX shared library bin\shm.dll FAILED: [code=4294967295] bin/shm.dll lib/shm.lib C:\WINDOWS\system32\cmd.exe /C "cd . && E:\PyTorch_Build\pytorch\pytorch_env\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_dll --msvc-ver=1944 --intdir=caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64" lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib" lib\kineto.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib" lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib" cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK: command "C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64 lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib lib\kineto.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 1104) with the following output: onnx.lib(helper.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(convert.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(implementation.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(inliner.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(shape_inference.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(schema.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(printer.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(parser.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(function.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(data_type_utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(attr_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(status.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(path.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(model_helpers.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(ir_pb_converter.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(interned_strings.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(assertions.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(checker.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx_onnx_torch-ml.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx-data_onnx_torch.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) LINK : fatal error LNK1104: 无法打开文件“msvcprt.libninja: build stopped: subcommand failed. (pytorch_env) PS E:\PyTorch_Build\pytorch>
09-01
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值