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

selftest.c doesn't working anymore with < 2.28.2 : MBEDTLS_SELF_TEST and MBEDTLS_TIMING_ALT #6923

Closed
Kasimashi opened this issue Jan 13, 2023 · 7 comments
Labels
bug component-platform Portability layer and build scripts

Comments

@Kasimashi
Copy link

Summary

Having the MBEDTLS_SELF_TEST and MBEDTLS_TIMING_ALT flags activated I'm not able to link my project using mbedtls\programs\test\selftest.c

System information

Mbed TLS version (number or commit id): < 2.28.2
Operating system and version: All
Configuration (if not default, please attach mbedtls_config.h):
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:

Expected behavior

Could be able to link the mbedtls library with selftest.c provided in example

Actual behavior

Could not link the mbedtls library

Steps to reproduce

I've an Error at the linking stage Error[Li005]: no definition for "mbedtls_timing_self_test" [referenced from mbedtls\programs\test\selftest.o]

The reason is the changement on the commit :

Move the #endif of MBEDTLS_TIMING_ALT in timing.c

image

Could you please fix the bug or should we implement a selftest in timing_alt.c ?

Additional information

@Kasimashi Kasimashi changed the title Selftest doesn't working anymore with new version selftest.c doesn't working anymore with < 2.28.2 : MBEDTLS_SELF_TEST and MBEDTLS_TIMING_ALT Jan 13, 2023
@paul-elliott-arm paul-elliott-arm self-assigned this Jan 13, 2023
@AndrzejKurek
Copy link
Contributor

Hello @Kasimashi and thanks for all the details! I have raised a PR here: #6931.
Let me know if this fixes the issue for you.

@daverodgman daverodgman added the component-platform Portability layer and build scripts label Jan 16, 2023
@Kasimashi
Copy link
Author

Kasimashi commented Jan 20, 2023

Hello @AndrzejKurek .

Thanks you for the correction.

It fixed well the issue.

Could you please make sure selftest.c is integrated in your pipeline before delivery ?

Thanks you ! ;)
You can close this issue and merge if it's also ok for you :)

Have a good day.
Kasimashi

@Kasimashi
Copy link
Author

@paul-elliott-arm I don't know if I have to close the issue could you please merge it before and then close this one ? I reopen it.

@Kasimashi Kasimashi reopened this Jan 20, 2023
@AndrzejKurek
Copy link
Contributor

@paul-elliott-arm I don't know if I have to close the issue could you please merge it before and then close this one ? I reopen it.

We'll close the issue once the PR is merged into development. It will be delivered with the next 2.28 release. Thanks for making sure that the fix works!

@tom-cosgrove-arm
Copy link
Contributor

tom-cosgrove-arm commented Jan 20, 2023

We'll close the issue once the PR is merged into development

Minor niggle: that PR will be merged into 2.28-LTS, hence why it will be in the next 2.28.x release. It won't be in development, as the code is different there.

@AndrzejKurek
Copy link
Contributor

AndrzejKurek commented Jan 20, 2023

We'll close the issue once the PR is merged into development

Minor niggle: that PR will be merged into 2.28-LTS, hence why it will be in the next 2.28.x release. It won't be in development, as the code is different there.

That's right, thanks for clarifying that :)

@Kasimashi
Copy link
Author

@AndrzejKurek Pull request merged : I close the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-platform Portability layer and build scripts
Projects
None yet
Development

No branches or pull requests

5 participants