Add winsock2 header into build_info.h#262
Add winsock2 header into build_info.h#262irwir wants to merge 3 commits intoMbed-TLS:developmentfrom
Conversation
|
TF-PSA-Crypto needs to build outside of Mbed TLS. So it doesn't seem right to me that the Windows build (with an unchanged mbedtls) is failing here. |
|
This is odd if an additional standard header breaks things so badly.
How to parse this? |
Numerous warnings in the log. Maybe VS 2013 did not have this option? |
|
The offending line (more visible in the message from MinGW) is It looks like the parser gets confused because it doesn't recognize We use the As for |
The question was why
It is difficult to guess without installed VS 2013 and the generated projects and sources. |
Available since VS 2015. |
|
As far as I remember, a bug in VS 2015 increased the minimum required version for Quote from the current
Yet there is nothing but VS 2013 in Should this have been changed in development branches? |
|
Two questions.
Text search in TF-PSA-Crypto sources had found 51 files containing the |
Sure. Since the last CI run, we've switched our CI from VS2013 to VS2017. I've kicked a new run.
Setting this up would require some Groovy code. But I don't really see the point: these files don't depend on the platform, on the library configuration or (in principle) on tool versions, you can generate them locally on any platform. |
It could be generated provided everything is installed, configured and it is perfectly well known what commands to run. Build process now is working, but tests are failing. |
|
Every test in |
|
You need to run the tests suites from the There's code in |
|
TF-PSA-Crypto/tests/suites/host_test.function Lines 446 to 449 in 864dee0 This code correctly changed directory for me; verified with _getcwd().Certainly backslash for argv[0] because the path was created by CRT.chdir is the same as _chdir; deprecation warnings have low level (ignored now, and could be disabled).strdup (or _strdup) and truncation with null character could give shorter code.
But there is a catch.
means "executable must be copied to |
f033407 to
9cf367f
Compare
|
To verify that only tests were failing, one final check was attempted with the line
It is hard to provide useful patches without decent understanding of the testing structure and the future plans. |
|
Currently this PR seems to be blocked by a flaw in test code. |
|
This pull request is blocked because it fails the CI. It's not a flaw in test code: the patch makes the existing code fail to compile. Since it only happens on Windows, which most of us are unfamiliar with, this is unlikely to progress unless a Windows expert can fix the problem. |
Compilation had been fixed months ago (the second commit). Since then the |
|
Ok, I've kicked a new CI run. |
|
New kind of errors in build (exception in compiler?). |
92e2092 to
96675e9
Compare
Signed-off-by: irwir <irwir@users.noreply.github.com>
Signed-off-by: irwir <irwir@users.noreply.github.com>
|
Rebased the PR and somehow all tests had passed. |
|
It would be nice to add under the Windows condition this definition:
But the macro must be added into name checker's exclusion list. |
That needs a patch to https://github.com/Mbed-TLS/mbedtls-framework/blob/main/scripts/check_names.py |
|
At line 343 like this?
|
|
Yes, that looks right, |
|
If this was merged, |
Signed-off-by: irwir <irwir@users.noreply.github.com>
Description
Ensures proper socket definitions on Windows (as a part of resolving mbedtls issue #10097).
PR checklist