linguini1 commented on PR #18374:
URL: https://github.com/apache/nuttx/pull/18374#issuecomment-3945341153

   > @linguini1 
   > 
   > I reproduced the same failure pattern from #18232 using the reported setup 
(`CONFIG_LIBM_TOOLCHAIN=y`, `CONFIG_LIBCXXTOOLCHAIN=y`,
   > 
   > I also captured a clear before/after with the exact same compile command:
   > 
   > ```bash
   > g++-15 -std=gnu++17 \
   >   -isystem <stub-config-path> \
   >   -isystem <cxx-header-path> \
   >   -c repro.cpp -o repro.o
   > ```
   > 
   > Before this patch (using the previous `include/cxx/cmath`), build fails 
with the same class of errors:
   > 
   > 
   > ```text
   > .../include/c++/15/math.h:39:12: error: 'acos' has not been declared in 
'std'
   > .../include/c++/15/math.h:40:12: error: 'asin' has not been declared in 
'std'
   > .../include/c++/15/math.h:41:12: error: 'atan' has not been declared in 
'std'
   > .../include/c++/15/math.h:42:12: error: 'atan2' has not been declared in 
'std'
   > .../include/c++/15/math.h:43:12: error: 'cos' has not been declared in 
'std'
   > ...
   > ```
   > 
   > After this patch (current `include/cxx/cmath`), the same command succeeds:
   > 
   > ```text
   > (No output - build successful)
   > ```
   > 
   
   Thanks, but could you show the build log generated from doing this through 
the NuttX build system as the user did? With the repro.c file as an app?


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