chirping78 opened a new pull request, #17457:
URL: https://github.com/apache/nuttx/pull/17457

   
   ## Summary
   
   build configuration `mps3-an547:clang` with arm 
[clang](https://github.com/arm/arm-toolchain/releases/tag/release-21.1.1-ATfE), 
and enable config `CONFIG_FORTIFY_SOURCE=3`, 
   will meet two errors:
   
   1st error message: `error: compiler version less than 12 does not support 
dynamic object size`
   Reason: the clang compiler has also defined `__GNUC__`, which can't be used 
to decide the compiler version.
   And the version used to decide whether the builtin function 
`__builtin_dynamic_object_size` exist is not correct.
   
   2nd error: `use of undeclared identifier '__builtin_va_arg_pack'`
   Reason: clang does not have builtin function `__builtin_va_arg_pack`
   
   ## Impact
   clang fortify
   
   ## Testing
   
   build configuration `mps3-an547:clang` with config `CONFIG_FORTIFY_SOURCE=3` 
enabled.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to