You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/04/06 18:04:56 UTC

[GitHub] [incubator-nuttx] antmerlino opened a new issue #3456: Can no longer build libc stdio without math.h

antmerlino opened a new issue #3456:
URL: https://github.com/apache/incubator-nuttx/issues/3456


   I had a very simple configuration for a board that worked at some point and I ran into build errors because it was looking for math.h and I didn't have CONFIG_LIBM on.
   
   Looks like the below change moved types and subsequent includes.
   
   https://github.com/apache/incubator-nuttx/commit/d17b963bcab98e2d2f641623547837a8d3fe94cd
   
   Do we want to fix this, or do we want to require that users provide a math.h, either via CONFIG_LIBM, toolchain, or otherwise? 
   
   If we did want to fix, I think we need to:
   
   1. guard every place in libc that uses float/double with CONFIG_LIBC_FLOATINGPOINT
   2. guard the include with either CONFIG_LIBC_FLOATINGPOINT or CONFIG_LIBM
   
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] antmerlino closed issue #3456: Can no longer build libc stdio without math.h

Posted by GitBox <gi...@apache.org>.
antmerlino closed issue #3456:
URL: https://github.com/apache/incubator-nuttx/issues/3456


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org