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

snprintf and mbedtls_snprintf error in hello_world example with nodemcu board #168

Open
talkingbeast opened this issue Dec 6, 2017 · 5 comments

Comments

@talkingbeast
Copy link

talkingbeast commented Dec 6, 2017

hi,i am new to simba,and i follow the tutorial in https://simba-os.readthedocs.io/en/latest/getting-started.html and try helloworld example. i compiled the code in nano32 board and linux ,it works fine.but when i try to compile this example with board nodemcu,the Terminal show this kind of error message :
/home/talkingbeast/simba2/simba/simba/3pp/mbedtls/include/mbedtls/platform.h:210:28: error: incompatible implicit declaration of built-in function 'snprintf' [-Werror] #define mbedtls_snprintf snprintf ^ /home/talkingbeast/simba2/simba/simba/3pp/compat/mbedtls/library/mbedtls_error.c:179:13: note: in expansion of macro 'mbedtls_snprintf' mbedtls_snprintf( buf, buflen, "CIPHER - Failed to allocate memory" ); ^ /home/talkingbeast/simba2/simba/simba/3pp/mbedtls/include/mbedtls/platform.h:210:28: error: incompatible implicit declaration of built-in function 'snprintf' [-Werror] #define mbedtls_snprintf snprintf ^ /home/talkingbeast/simba2/simba/simba/3pp/compat/mbedtls/library/mbedtls_error.c:181:13: note: in expansion of macro 'mbedtls_snprintf' mbedtls_snprintf( buf, buflen, "CIPHER - Input data contains invalid padding and is rejected" );
.......
/home/talkingbeast/simba2/simba/simba/3pp/mbedtls/include/mbedtls/platform.h:210:28: error: incompatible implicit declaration of built-in function 'snprintf' [-Werror] #define mbedtls_snprintf snprintf ^ /home/talkingbeast/simba2/simba/simba/3pp/compat/mbedtls/library/mbedtls_error.c:687:5: note: in expansion of macro 'mbedtls_snprintf' mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret ); ^ cc1: all warnings being treated as errors /home/talkingbeast/simba2/simba/simba/make/app.mk:227: recipe for target 'build/nodemcu/obj/home/talkingbeast/simba2/simba/simba/3pp/compat/mbedtls/library/mbedtls_error.o' failed make[1]: *** [build/nodemcu/obj/home/talkingbeast/simba2/simba/simba/3pp/compat/mbedtls/library/mbedtls_error.o] Error 1 /home/talkingbeast/simba2/simba/simba/make/app.mk:111: recipe for target 'all' failed make: *** [all] Error 2

anyone know how to solve this? thanks

@simonlbn
Copy link
Contributor

simonlbn commented Dec 7, 2017

Can you include the exact command you run? That makes it simpler to reproduce.

@talkingbeast
Copy link
Author

talkingbeast commented Dec 7, 2017

sorry.the command i run is

make -s BOARD=nodemcu

i try the same example code with command

make -s BOARD=linux

and

make -s BOARD=nano32

it works fine .

@talkingbeast
Copy link
Author

the whole compile message is very long,i attach it as i txt file for your consideration.
helloworld example with nodemcu compile error log.txt

@talkingbeast
Copy link
Author

i compile the same example in board linux and nano32 ,it just works fine ,i also attach the log message:
helloworld example with nano32 and linux board compile message log.txt

@talkingbeast
Copy link
Author

help,please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants