pfalcon / pycopy

Pycopy - a minimalist and memory-efficient Python dialect. Good for desktop, cloud, constrained systems, microcontrollers, and just everything.
http://pycopy.readthedocs.io
MIT License
805 stars 78 forks source link

ESP32 - Error when building firmware: implicit declaration of function 'mbedtls_ssl_endpoint' #49

Closed AndyFug closed 3 years ago

AndyFug commented 4 years ago

Hi,

I'm receiving this error while trying to build ESP32 firmware:

CC ../../extmod/modussl_mbedtls.c
../../extmod/modussl_mbedtls.c: In function 'socket_new':
../../extmod/modussl_mbedtls.c:253:5: error: implicit declaration of function 'mbedtls_ssl_endpoint' [-Werror=implicit-function-declaration]
     mbedtls_ssl_endpoint(&o->ssl, args->server_side.u_bool ? MBEDTLS_SSL_IS_SERVER : MBEDTLS_SSL_IS_CLIENT);
     ^
cc1: all warnings being treated as errors
../../py/mkrules.mk:63: recipe for target 'build-GENERIC/extmod/modussl_mbedtls.o' failed
make: *** [build-GENERIC/extmod/modussl_mbedtls.o] Error 1

I followed this advice from the README to try to build the firmware, using ESP-IDF v3.3 (checking IDF compatibility with the hash etc as directed) and the ESP32 toolchain for Linux from here. I think I've followed all the steps correctly.

Additional details:

Because I'm not very experienced at this, I'm not entirely sure what other information might be relevant to the issue. Let me know if there is anything else I can provide to help. I tried running make with --keep-going and --ignore, but it doesn't appear to be completing fully because application.bin is not being created (due to modussl_mbedtls.o missing).

Any help greatly appreciated. I know these ports aren't a priority, but if it's something I'm doing wrong or it's a simple fix/easy work-around, then finding that solution would be much appreciated. Apologies also if the issue has already been noted somewhere that I haven't seen.

Many thanks,

Andy

pfalcon commented 4 years ago

Duplicate of https://github.com/pfalcon/pycopy/issues/48.

AndyFug commented 4 years ago

Thanks. Sorry I didn't see that... I should check over closed issues in future.

pfalcon commented 4 years ago

I suspected that issue should be kept open... But let me reopen this instead, as it has more clear title.

pfalcon commented 3 years ago

Ok, there were no further reports of this, and CI have been green re: ESP32 port all this time, so let me close this.