renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
182 stars 81 forks source link

MbedTLS build errors with AC6 on Keil MDK #299

Closed michaelthomasj closed 1 month ago

michaelthomasj commented 8 months ago

Issue

When building the "mbedTLS (Crypto Only)" module or any other modules that use it in RA FSP v5.0.0 with the AC6 compiler v6.19, there may be one or more build errors due to implicit function declaration. This is because in AC6 v6.19 this warning has been promoted to an error by default. The issue will not occur in projects created with e2 studio since the suppression flag for that condition is added by default, but it will show up when using Keil MDK v5.38.

Workaround

Add the compiler flag -Wno-error=implicit-function-declaration in Keil MDK project Target Options as shown below:

image

michaelthomasj commented 1 month ago

This is being internally tracked using FSPRA-1756