Skip to content

Mbedtls MBEDTLS_PLATFORM_STD_SNPRINTF issue #12190

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

Closed
karthikprabhu17 opened this issue Dec 19, 2018 · 6 comments
Closed

Mbedtls MBEDTLS_PLATFORM_STD_SNPRINTF issue #12190

karthikprabhu17 opened this issue Dec 19, 2018 · 6 comments
Assignees
Labels
area: Debugging area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@karthikprabhu17
Copy link

Describe the bug
I just pull latest from master and this happened:
Trying to build MQTT app which uses mbedtls and I keep getting missing Mbedtls functions

/Users/kprabhuv/new_zephyr/ext/lib/crypto/mbedtls/library/platform.c:123:64: error: expected expression before ';' token
... ) = MBEDTLS_PLATFORM_STD_SNPRINTF;
^
make[2]: *** [zephyr/ext/lib/crypto/mbedtls/CMakeFiles/ext__lib__crypto__mbedtls.dir/library/platform.c.obj] Error 1
make[1]: *** [zephyr/ext/lib/crypto/mbedtls/CMakeFiles/ext__lib__crypto__mbedtls.dir/all] Error 2
make: *** [all] Error 2

To Reproduce
Steps to reproduce the behavior:
Unable to reproduce this using sample apps i know.

Expected behavior
Clear build

Impact
showstopper. Unable to build.

Screenshots or console output
If applicable, add a screenshot (drag-and-drop an image), or console logs
(cut-and-paste text and put a code fence (```) before and after, to help
explain the issue.

Environment (please complete the following information):

  • OS: MacOS
  • Toolchain : gnuarmemb
  • Commit: 3f422e2

Additional context
Add any other context about the problem here.

@karthikprabhu17 karthikprabhu17 added the bug The issue is a bug, or the PR is fixing a bug label Dec 19, 2018
@karthikprabhu17
Copy link
Author

Just verified this happens only on the MAC and not on an Ubuntu machine!

@SebastianBoe
Copy link
Collaborator

Hi,

what does this mean?

"Unable to reproduce this using sample apps i know."

Please try to reproduce the issue using a minimal patch to an existing zephyr sample or test.

You could also try to find out what MBEDTLS_PLATFORM_STD_SNPRINTF is being defined to be, that might give a clue to what is going wrong. This could be done by building verbosely and then copy-editting the command that files with the flag "-E" (this will run the preprocessor only, allowing one to inspect the MBEDTLS_PLATFORM_STD_SNPRINTF symbol).

@SebastianBoe SebastianBoe added area: Debugging and removed bug The issue is a bug, or the PR is fixing a bug labels Dec 28, 2018
@galak galak added the bug The issue is a bug, or the PR is fixing a bug label Jan 8, 2019
@nashif nashif added the priority: medium Medium impact/importance bug label Jan 10, 2019
@galak galak added the area: Toolchains Toolchains label Jan 15, 2019
@galak galak self-assigned this Jan 29, 2019
@galak
Copy link
Collaborator

galak commented Feb 1, 2019

which gnuarmemb version are you using?

@karthikprabhu17
Copy link
Author

@galak sorry for the delay in response. I am using gcc-arm-none-eabi-7-2018-q2-update. I was able to get rid of the error by removing MBEDTLS_PLATFORM_STD_SNPRINTF from config file. Although that is not solution i know!

@galak
Copy link
Collaborator

galak commented Feb 22, 2019

Sorry for taking a while to respond, can you let me know how to reproduce?

@karthikprabhu17
Copy link
Author

I just tried it...the master dos not have this problem . Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Debugging area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants