-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win10 编译Paddle报错 #54850
Comments
是指将文件
请问Paddle版本是?最新develop下推荐cmake版本为3.18.0 |
此外,Paddle develop最新分支CPP代码编译已采用C++17标准,VS2017版本编译develop最新代码可能会有标准支持不完全问题 |
对,直接删除了对应的文件夹。Paddle是最新的develop版本。我更新一下环境再试一下。谢谢 |
环境 |
是不是 https://baijiahao.baidu.com/s?id=1746635674717445829&wfr=spider&for=pc 要重装下NetFramework |
Exit code 0xc0000135好像是因为找不到dll文件 将对应的dll放到对应exe文件夹下 错误就没了 |
@xingmingyyj Hi~请问这个问题已经解决了么?如果解决了的话我就close这个issue了 |
VS2019编译还有错误 |
同样的问题,不加-DWITH_TESTING=ON时,CMake 3.17.0编译通过,加了之后就报错了,和上述一样的错误 |
CMake换成3.18.0还是相同的错误 |
bug描述 Describe the Bug
环境
OS:Win10
Visual Studio:2017
cmake version 3.17.0
cmake 选项 :cmake .. -GNinja -DWITH_PYTHON=ON -DWITH_TESTING=ON
错误信息
[3082/3348] Linking CXX executable test\cpp\imperative\test_prepare_op.exe
FAILED: test/cpp/imperative/test_prepare_op.exe
cmd.exe /C "cd . && E:\AIC\AIC_env\cmake\bin\cmake.exe -E vs_link_exe --intdir=test\cpp\imperative\CMakeFiles\test_prepare_op.dir --rc=E:\WINDOW
1\10\bin\1001771.0\x64\rc.exe --mt=E:\WINDOW1\10\bin\1001771.0\x64\mt.exe --manifests -- E:\AIC\AIC_env\VisualStudio2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\test_prepare_op.rsp /out:test\cpp\imperative\test_prepare_op.exe /implib:test\cpp\imperative\test_prepare_op.lib /pdb:test\cpp\imperative\test_prepare_op.pdb /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4006 /ignore:4221 /NODEFAULTLIB:MSVCRT.LIB /INCREMENTAL:NO /subsystem:console && cd ."LINK: command "E:\AIC\AIC_env\VisualStudio2017\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\test_prepare_op.rsp /out:test\cpp\imperative\test_prepare_op.exe /implib:test\cpp\imperative\test_prepare_op.lib /pdb:test\cpp\imperative\test_prepare_op.pdb /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4006 /ignore:4221 /NODEFAULTLIB:MSVCRT.LIB /INCREMENTAL:NO /subsystem:console /MANIFEST /MANIFESTFILE:test\cpp\imperative\test_prepare_op.exe.manifest" failed (exit code 1120) with the following output:
正在创建库 test\cpp\imperative\test_prepare_op.lib 和对象 test\cpp\imperative\test_prepare_op.exp
test_prepare_op.cc.obj : error LNK2019: 无法解析的外部符号 "int __cdecl TouchOpRegistrar_relu(void)" (?TouchOpRegistrar_relu@@yahxz),该符号在函数 "void _cdecl `dynamic initializer for 'use_op_itself_relu''(void)" (??_Euse_op_itself_relu@@yaxxz) 中被引用
test\cpp\imperative\test_prepare_op.exe : fatal error LNK1120: 1 个无法解析的外部命令
[3085/3348] Linking CXX static library paddle\fluid\inference\libpaddle_inference_dummy_9.lib
Microsoft (R) Library Manager Version 14.16.27050.0
Copyright (C) Microsoft Corporation. All rights reserved.
删除发生错误的代码继续编译,最后编译成功。
执行命令:ctest -VV -R program_translator_test
E:\AIC\Paddle\build\test\cpp\ir\core>ctest -VV -R program_translator_test
UpdateCTestConfiguration from :E:/AIC/Paddle/build/test/cpp/ir/core/DartConfiguration.tcl
UpdateCTestConfiguration from :E:/AIC/Paddle/build/test/cpp/ir/core/DartConfiguration.tcl
Test project E:/AIC/Paddle/build/test/cpp/ir/core
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 10
Start 10: program_translator_test
10: Test command: E:\AIC\Paddle\build\test\cpp\ir\core\program_translator_test.exe
10: Environment variables:
10: FLAGS_cudnn_deterministic=true
10: Test timeout computed to be: 150
1/1 Test #10: program_translator_test ..........Exit code 0xc0000135
***Exception: 0.33 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.35 sec
The following tests FAILED:
10 - program_translator_test (Exit code 0xc0000135
)
Errors while running CTest
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: