Hi Camila,

it seems the Arm toolchain you are using is older than the one expected by
the build system.
Updating it should solve the problem, you may get it on Arm's website:
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

Best regards,
Gustavo.

On Wed, Sep 27, 2023 at 10:53 AM camila.so...@sony.com <
camila.so...@sony.com> wrote:

> Hello, I'm looking for some help with a build error I'm encountering.
> I did the following steps to use Nuttx with my Spresense board:
>
> sudo apt install bison flex gettext texinfo libncurses5-dev
> libncursesw5-dev gperf automake libtool pkg-config build-essential gperf
> genromfs libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev
> libelf-dev libexpat-dev gcc-multilib g++-multilib picocom u-boot-tools
> util-linux kconfig-frontends
>
> sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
>
> <pre>mkdir nuttx
> cd nuttx
> git clone https://github.com/apache/incubator-nuttx.git nuttx
> git clone https://github.com/apache/incubator-nuttx-apps apps
>
> cd nuttx
> ./tools/configure.sh -l spresense:nsh
>
> make -j
>
>
> And I get the following error:
> Create version.h
> LN: platform/board to
> /home/SONY/s1000325098/repos/NuttxWorkshop/apps/platform/dummy
> Register: sh
> Register: nsh
> CXX:  libcxxmini/libxx_delete.cxx arm-none-eabi-g++: error: unrecognized
> command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?
> CXX:  libcxxmini/libxx_delete_sized.cxx arm-none-eabi-g++: error:
> unrecognized command line option '-std=gnu++20'; did you mean
> '-std=gnu++2a'?
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> make[1]: *** [Makefile:69: libxx_cxa_guard.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: *** [Makefile:69: libxx_cxapurevirtual.o] Error 1
> make[1]: *** [Makefile:69: libxx_delete.o] Error 1
> CXX:  libcxxmini/libxx_deletea.cxx arm-none-eabi-g++: error: unrecognized
> command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?
> make[1]: *** [Makefile:69: libxx_delete_sized.o] Error 1
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> make[1]: *** [Makefile:69: libxx_deletea.o] Error 1
> make: *** [tools/LibTargets.mk:216: libs/libxx/libxx.a] Error 2
> make: *** Waiting for unfinished jobs....
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_cxa_guard.o  -M
> '-nostdinc++' '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi'
> '-std=gnu++20' '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os'
> '-fno-strict-aliasing' '-fomit-frame-pointer' '-fno-common' '-Wall'
> '-Wshadow' '-Wundef' '-ffunction-sections' '-fdata-sections' '-g'
> '-mlittle-endian' '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16'
> '-mfloat-abi=hard' '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include'
> '-D__NuttX__' '-DNDEBUG' '-D__KERNEL__' '-pipe'
> ./libcxxmini/libxx_cxa_guard.cxx
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_cxa_guard.ddx] Error 1
> make[2]: *** Waiting for unfinished jobs....
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_delete.o  -M '-nostdinc++'
> '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi' '-std=gnu++20'
> '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os' '-fno-strict-aliasing'
> '-fomit-frame-pointer' '-fno-common' '-Wall' '-Wshadow' '-Wundef'
> '-ffunction-sections' '-fdata-sections' '-g' '-mlittle-endian'
> '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard'
> '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include' '-D__NuttX__'
> '-DNDEBUG' '-D__KERNEL__' '-pipe' ./libcxxmini/libxx_delete.cxx
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_cxapurevirtual.o  -M
> '-nostdinc++' '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi'
> '-std=gnu++20' '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os'
> '-fno-strict-aliasing' '-fomit-frame-pointer' '-fno-common' '-Wall'
> '-Wshadow' '-Wundef' '-ffunction-sections' '-fdata-sections' '-g'
> '-mlittle-endian' '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16'
> '-mfloat-abi=hard' '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include'
> '-D__NuttX__' '-DNDEBUG' '-D__KERNEL__' '-pipe'
> ./libcxxmini/libxx_cxapurevirtual.cxx
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_delete.ddx] Error 1
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_cxapurevirtual.ddx] Error 1
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_delete_sized.o  -M
> '-nostdinc++' '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi'
> '-std=gnu++20' '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os'
> '-fno-strict-aliasing' '-fomit-frame-pointer' '-fno-common' '-Wall'
> '-Wshadow' '-Wundef' '-ffunction-sections' '-fdata-sections' '-g'
> '-mlittle-endian' '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16'
> '-mfloat-abi=hard' '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include'
> '-D__NuttX__' '-DNDEBUG' '-D__KERNEL__' '-pipe'
> ./libcxxmini/libxx_delete_sized.cxx
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_delete_sized.ddx] Error 1
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_deletea_sized.o  -M
> '-nostdinc++' '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi'
> '-std=gnu++20' '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os'
> '-fno-strict-aliasing' '-fomit-frame-pointer' '-fno-common' '-Wall'
> '-Wshadow' '-Wundef' '-ffunction-sections' '-fdata-sections' '-g'
> '-mlittle-endian' '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16'
> '-mfloat-abi=hard' '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx'
> '-isystem' '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include'
> '-D__NuttX__' '-DNDEBUG' '-D__KERNEL__' '-pipe'
> ./libcxxmini/libxx_deletea_sized.cxx
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_deletea.o  -M '-nostdinc++'
> '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi' '-std=gnu++20'
> '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os' '-fno-strict-aliasing'
> '-fomit-frame-pointer' '-fno-common' '-Wall' '-Wshadow' '-Wundef'
> '-ffunction-sections' '-fdata-sections' '-g' '-mlittle-endian'
> '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard'
> '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include' '-D__NuttX__'
> '-DNDEBUG' '-D__KERNEL__' '-pipe' ./libcxxmini/libxx_deletea.cxx
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_deletea_sized.ddx] Error 1
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_deletea.ddx] Error 1
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_new.o  -M '-nostdinc++'
> '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi' '-std=gnu++20'
> '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os' '-fno-strict-aliasing'
> '-fomit-frame-pointer' '-fno-common' '-Wall' '-Wshadow' '-Wundef'
> '-ffunction-sections' '-fdata-sections' '-g' '-mlittle-endian'
> '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard'
> '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include' '-D__NuttX__'
> '-DNDEBUG' '-D__KERNEL__' '-pipe' ./libcxxmini/libxx_new.cxx
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_new.ddx] Error 1
> arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20';
> did you mean '-std=gnu++2a'?
> ERROR: arm-none-eabi-g++ failed: 1
>        command: arm-none-eabi-g++ -MT ./libxx_newa.o  -M '-nostdinc++'
> '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi' '-std=gnu++20'
> '-fno-exceptions' '-fcheck-new' '-fno-rtti' '-Os' '-fno-strict-aliasing'
> '-fomit-frame-pointer' '-fno-common' '-Wall' '-Wshadow' '-Wundef'
> '-ffunction-sections' '-fdata-sections' '-g' '-mlittle-endian'
> '-march=armv7e-m' '-mtune=cortex-m4' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard'
> '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include/cxx' '-isystem'
> '/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/include' '-D__NuttX__'
> '-DNDEBUG' '-D__KERNEL__' '-pipe' ./libcxxmini/libxx_newa.cxx
> make[2]: ***
> [/home/SONY/s1000325098/repos/NuttxWorkshop/nuttx/tools/Config.mk:234:
> libxx_newa.ddx] Error 1
> make[1]: *** [Makefile:84: .depend] Error 2
> make: *** [tools/Unix.mk:611: pass2dep] Error 2
>
> Best,
> Camila
>


-- 
Gustavo Henrique Nihei

Reply via email to