Closed trofi closed 3 years ago
Hi @trofi , I am also facing the same error with GCC-12. Did you find any work around for this error? Please suggest. Thanks in Advance.
logs for ref
C:\Users\mayuri\Documents\wizfi360-evbpico\WizFi360-EVB-Pico-C\libraries\mbedtls\library\ssl_tls.c:1755:48: error: argument 2 of type 'unsigned char[32]' with mismatched bound [-Werror=array-parameter=] [build] 1755 | unsigned char hash[32], [build] | ~~~~~~~~~~~~~~^~~~~~~~ [build] C:\Users\mayuri\Documents\wizfi360-evbpico\WizFi360-EVB-Pico-C\libraries\mbedtls\library\ssl_tls.c:690:69: note: previously declared as 'unsigned char *' [build] 690 | static void ssl_calc_verify_tls_sha256( const mbedtls_ssl_context *,unsigned char *, size_t * ); [build] | ^~~~~~~~~~~~~~~ [build] cc1.exe: all warnings being treated as errors [build] NMAKE : fatal error U1077: 'C:\PROGRA~2\ARMGNU~1\1213FB~1.2MP\bin\AR19DD~1.EXE' : return code '0x1' [build] Stop.
I personally disabled -Werror
by patching CMakeFiles.txt
locally for 2.x
versions of mbedtls
. If you have a chance to use 3.x
versions then https://github.com/Mbed-TLS/mbedtls/commit/21c8fe5c6ec28e8aad5d5c1be1cc39e519c9f241 upstream fix should just work for you. If it still does not then it's probably a separate issue and I suggect you to file a separate bug,
On (yet unreleased) gcc-11 mbedtls fails build due to new diagnstics: