On Tue, Mar 16, 2021 at 10:20 AM Flavio Castro Alves Filho <
flavio.al...@gmail.com> wrote:

> Hello Xiang,
>
> Em ter., 16 de mar. de 2021 às 14:01, Xiang Xiao
> <xiaoxiang781...@gmail.com> escreveu:
> >
> > On Tu
> > >
> > This project use the modern C++ feature, so you must enable llvm
> > ibc++(CONFIG_LIBCXX=y)
>
> I tried a new build, executing:
>
> $ make distclean
> $ ./tools/configure.sh -l stm32f4discovery:testlibcxx
> $ make
>
> I can see the library being downloaded from git, but it is not compiling.
>
> In file included from
> /home/ubuntu/nuttx_ws/nuttx/include/libcxx/random:1637,
>                  from libcxx/src/random.cpp:16:
> /home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath: At global scope:
> /home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:321:9: error:
> '::signbit' has not been declared
>   321 | using ::signbit;
>       |         ^~~~~~~
> /home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:322:9: error:
> '::fpclassify' has not been declared
>   322 | using ::fpclassify;
>       |         ^~~~~~~~~~
> /home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:326:9: error:
> '::isnormal' has not been declared
>   326 | using ::isnormal;
>       |         ^~~~~~~~
> /home/ubuntu/nuttx_ws/nuttx/include/libcxx/cmath:327:9: error:
> '::isgreater' has not been declared
>   327 | using ::isgreater;
>
> How should I solve this issue?
>

CONFIG_LIBM has to be disabled, since NuttX match library implementation
lacks many standard defined functions which is required by the new libc++
library.


>
> > >
> > You need tell compiler stop to search the toolchain provided c++ library
> > by -nostdinc++
> >
>
> I believe it will solve my cmake issue.
>
> Best regards,
>
> Flavio
>

Reply via email to