-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Comments
Can you include the exact command you run? That makes it simpler to reproduce. |
sorry.the command i run is
i try the same example code with command
and
it works fine . |
the whole compile message is very long,i attach it as i txt file for your consideration. |
i compile the same example in board linux and nano32 ,it just works fine ,i also attach the log message: |
help,please? |
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
The text was updated successfully, but these errors were encountered: