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

不支持FH4异常处理的环境导致链接失败 #24

Closed
ntp2000 opened this issue Dec 23, 2021 · 3 comments
Closed

不支持FH4异常处理的环境导致链接失败 #24

ntp2000 opened this issue Dec 23, 2021 · 3 comments

Comments

@ntp2000
Copy link

ntp2000 commented Dec 23, 2021

环境: VS2017 x64
编译: openssl 1.0.2u
命令:
perl Configure VC-WIN64A --prefix=C:\QtSDK\openssl-1.0.2u-x64
call ms\do_win64a
nmake -f ms\ntdll.mak
报错:
libucrt.lib(wcrtomb.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4
out32dll\constant_time_test.exe : fatal error LNK1120: 1 unresolved externals

备注:VS2017 x86 ,VS 2019 x64/x86 均能正常编译通过。

@ntp2000
Copy link
Author

ntp2000 commented Dec 23, 2021

报错的vcltl配置
VC-LTL Path : E:\QtSDK\vc-ltl\vc-ltl5
VC Tools Version : 14.16.27023
WindowsTargetPlatformMinVersion : 5.2.3790.0
Platform : x64
[vcvarsall.bat] Environment initialized for: 'x64'

但如果设置MinVersion=6.0.6000.0可通过编译:
VC-LTL Path : E:\QtSDK\vc-ltl\vc-ltl5
VC Tools Version : 14.16.27023
WindowsTargetPlatformMinVersion : 6.0.6000.0
Platform : x64
[vcvarsall.bat] Environment initialized for: 'x64'

x86下均可通过编译。

@mingkuang-Chuyu mingkuang-Chuyu added 处置:正在讨论(Review) 我们正在讨论如何解决,怎么实现更好。 类型:问题(Bug) Something isn't working 处置:正在开发(Developing) and removed 处置:正在讨论(Review) 我们正在讨论如何解决,怎么实现更好。 labels Dec 23, 2021
@mingkuang-Chuyu mingkuang-Chuyu changed the title x64环境下报unresolved external symbol __GSHandlerCheck_EH4错误 不支持FH4异常处理的环境导致链接失败 Dec 23, 2021
@mingkuang-Chuyu mingkuang-Chuyu added 处置:等待验证(Testing) 正在联系Bug提交者,确认问题是否解决。 and removed 处置:正在开发(Developing) labels Dec 23, 2021
@ntp2000
Copy link
Author

ntp2000 commented Dec 23, 2021

经测试已经可以通过编译了

@ntp2000 ntp2000 closed this as completed Dec 23, 2021
@mingkuang-Chuyu mingkuang-Chuyu added 处置:等待发布(Publishing) 问题已经解决,等待新版本发布。 and removed 处置:等待验证(Testing) 正在联系Bug提交者,确认问题是否解决。 labels Dec 23, 2021
@mingkuang-Chuyu
Copy link
Collaborator

@mingkuang-Chuyu mingkuang-Chuyu added 处置:完成(Done) and removed 处置:等待发布(Publishing) 问题已经解决,等待新版本发布。 labels Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants