Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

D:\\VS2015\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120 #593

Closed
lvpinrui opened this issue Mar 22, 2019 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@lvpinrui
Copy link

❓ Questions and Help

C:/Anaconda3/envs/test/lib/site-packages/torch/include\THC/generic/THCTensorMathReduce.h(33): warning C4190: “THCudaHalfTensor_maxall”有指定的 C 链接,但返回 了与 C 不兼容的 UDT“c10::Half”
C:/Anaconda3/envs/test/lib/site-packages/torch/include\c10/util/Half.h(324): note: 参见“c10::Half”的声明
C:/Anaconda3/envs/test/lib/site-packages/torch/include\THC/generic/THCTensorMathReduce.h(34): warning C4190: “THCudaHalfTensor_medianall”有指定的 C 链接,但返回了与 C 不兼容的 UDT“c10::Half”
C:/Anaconda3/envs/test/lib/site-packages/torch/include\c10/util/Half.h(324): note: 参见“c10::Half”的声明
D:\VS2015\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Anaconda3\envs\test\lib\site-packages\torch\lib "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib/x64" /LIBPATH:C:\Anaconda3\envs\test\libs /LIBPATH:C:\Anaconda3\envs\test\PCbuild\amd64 /LIBPATH:D:\VS2015\VC\LIB\amd64 /LIBPATH:D:\VS2015\VC\ATLMFC\LIB\amd64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" cudart.lib c10.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib /EXPORT:PyInit__C build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\vision.obj build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\cpu\nms_cpu.obj build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\cpu\ROIAlign_cpu.obj build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\cuda\nms.obj build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\cuda\ROIAlign_cuda.obj build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\cuda\ROIPool_cuda.obj build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc\cuda\SigmoidFocalLoss_cuda.obj /OUT:build\lib.win-amd64-3.7\maskrcnn_benchmark_C.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc_C.cp37-win_amd64.lib
vision.obj : warning LNK4197: 多次指定导出“PyInit__C”;使用第一个规范
正在创建库 build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc_C.cp37-win_amd64.lib 和对象 build\temp.win-amd64-3.7\Release\Anaconda3\envs\test\Lib\site-packages\maskrcnn-benchmark\maskrcnn_benchmark\csrc_C.cp37-win_amd64.exp
ROIAlign_cuda.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl c10::cuda::CUDAStream::operator struct CUstream_st *(void)const " (_imp??BCUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz)
ROIPool_cuda.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl c10::cuda::CUDAStream::operator struct CUstream_st *(void)const " (_imp??BCUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz)
SigmoidFocalLoss_cuda.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl c10::cuda::CUDAStream::operator struct CUstream_st *(void)const " (_imp??BCUDAStream@cuda@c10@@QEBAPEAUCUstream_st@@xz)
ROIAlign_cuda.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class c10::cuda::CUDAStream __cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z)
ROIPool_cuda.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class c10::cuda::CUDAStream __cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z)
SigmoidFocalLoss_cuda.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class c10::cuda::CUDAStream __cdecl c10::cuda::getCurrentCUDAStream(short)" (_imp?getCurrentCUDAStream@cuda@c10@@ya?AVCUDAStream@12@F@Z)
build\lib.win-amd64-3.7\maskrcnn_benchmark_C.cp37-win_amd64.pyd : fatal error LNK1120: 2 个无法解析的外部命令
error: command 'D:\VS2015\VC\BIN\x86_amd64\link.exe' failed with exit status 1120

@bpfliegel
Copy link

Duplicate, please refer to #547.
It can be closed.

@fmassa
Copy link
Contributor

fmassa commented Mar 24, 2019

Closing following @bpfliegel comment. Thanks @bpfliegel !

@fmassa fmassa closed this as completed Mar 24, 2019
@fmassa fmassa added the duplicate This issue or pull request already exists label Mar 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants