Skip to content
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

onnxruntime 报错 CL.exe 退出 #2147 #2148

Open
yjyccm opened this issue Oct 16, 2024 · 3 comments
Open

onnxruntime 报错 CL.exe 退出 #2147 #2148

yjyccm opened this issue Oct 16, 2024 · 3 comments
Labels
question Further information is requested

Comments

@yjyccm
Copy link

yjyccm commented Oct 16, 2024

严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息
错误 MSB6006 “CL.exe”已退出,代码为 -1073740791。 funasr C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 755

@yjyccm yjyccm added the question Further information is requested label Oct 16, 2024
@yjyccm
Copy link
Author

yjyccm commented Oct 16, 2024

Debug模式编译没问题,但是Release模式编译会报错

企业微信截图_20241016113509

@goddamnVincent
Copy link

cmake编译时候用的就是debug吧?

@OnlyDelusion
Copy link

我已经解决了这个问题,有相同问题的人参考我的改法吧,我也找了很久。debug可以编译,release报错,对比了设置差距后定位到了一个选项组合可以解决这个问题。
右键funasr属性,打开属性页面,选择C++->优化->提升速度为禁止,内联函数扩展修改为已禁止再编译即可。我的已经编译通过了,如果你的也debug正常release,修改后异常也无效就再去对比一下其他选项。主要应该是《C++->优化->最大化速度修改为禁用 不优化》

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants