-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
mbedtls causing stubs from libnosys to get linked (IDFGH-13518) #14409
Comments
Could you please attach your sdkconfig and the full build output? I suppose that VFS component is either not included in the build and/or CONFIG_VFS_SUPPORT_DIR is disabled. If that is the case, the warning makes sense to me: we do provide the stub but it will always return with an error code. |
You supposed correctly. Isn't there an argument to be made for the use of mbedtls y-select this config? Thanks, btw, and feel free to close the issue. |
There is no "enable switch" for mbedtls use, so it's not trivial. Also, mbedtls component is currently always linked into the app due to some dependencies from IDF itself, so if it enables VFS support, it won't be possible to disable VFS at all. However, we can do it the other way around: make mbedtls MBEDTLS_FS_IO config option dependent on CONFIG_VFS_SUPPORT_IO && CONFIG_VFS_SUPPORT_DIR. This will disable compilation of the filesystem-related functions in mbedtls. |
By default MBEDTLS_FS_IO option in mbedtls uses the filesystem supported added by vfs component. If the vfs support is disabled by user then mbedtls raises a warning that the filesystem realted operation shall always fail This commit fixes the behaviour by enabling respective depedency check for the MBEDTLS_FS_IO option Closes #14409
By default MBEDTLS_FS_IO option in mbedtls uses the filesystem supported added by vfs component. If the vfs support is disabled by user then mbedtls raises a warning that the filesystem realted operation shall always fail This commit fixes the behaviour by enabling respective depedency check for the MBEDTLS_FS_IO option Closes #14409
Answers checklist.
General issue report
git describe
: v5.4-dev-2194-gd7ca8b94c8ld
output:/idf/tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/mbedtls/mbedtls/library/libmbedx509.a(x509_crt.c.obj):(.literal.mbedtls_x509_crt_parse_path+0x28): warning: readdir is not implemented and will always fail
/idf/tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/mbedtls/mbedtls/library/libmbedx509.a(x509_crt.c.obj):(.literal.mbedtls_x509_crt_parse_path+0x2c): warning: closedir is not implemented and will always fail
/idf/tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/mbedtls/mbedtls/library/libmbedx509.a(x509_crt.c.obj):(.literal.mbedtls_x509_crt_parse_path+0x10): warning: opendir is not implemented and will always fail
The text was updated successfully, but these errors were encountered: