renesas / fsp

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

rm_psa_crypto: build failure with LLVM #336

Closed SeanMeng0509 closed 4 months ago

SeanMeng0509 commented 6 months ago

Issue

When building the "mbedTLS (Crypto Only)" module with LLVM, there may be errors due to undeclared function 'vendor_bitlength_to_raw_bitlength'. This is because vendor.h was not included, and LLVM takes implicit function declarations as an error.

Workaround

There are two workarounds:

  1. inlcude vendor.h where build fails.
  2. add build option "-Wno-error=implicit-function-declaration" for directory "ra/arm"

image