-
Notifications
You must be signed in to change notification settings - Fork 45
Add winsock2 header into build_info.h #262
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
base: development
Are you sure you want to change the base?
Conversation
Signed-off-by: irwir <[email protected]>
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 arv[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 |
Signed-off-by: irwir <[email protected]>
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. |
Description
Ensures proper socket definitions on Windows (as a part of resolving mbedtls issue #10097).
PR checklist