On Thu, Mar 9, 2023 at 12:57 AM Simon Filgis <si...@ingenieurbuero-filgis.de> wrote:
> Dear all, > > I switched to Manjaro a few weeks ago. Now I'm trying to build NuttX - of > course. > > This packages where necessary so far: > > sudo pacman -S ncurses base-devel gmp mpfr libisl elfutils expat > lib32-gcc-libs uboot-tools unzip > > > # Install genromfs as per PX4 > > wget > > https://sourceforge.net/projects/romfs/files/genromfs/0.5.2/genromfs-0.5.2.tar.gz > tar zxvf genromfs-0.5.2.tar.gz > cd genromfs-0.5.2 && make && make install && cd .. > rm genromfs-0.5.2.tar.gz genromfs-0.5.2 -r > > > -- > > I cannot resolve the following error: > fatal error: math.h: No such file or directory > > NuttX documentation says: > > The math library header file, `math.h`, is a then special case. If you do > nothing, the standard math.h header file that is provided with your > toolchain will be used. > > Can somebody please give me a hint for how to overcome this? > > Which toolchain do you use? You have two choices now: - CONFIG_LIBM=y which enable libm provided by nuttx - CONFIG_LIBM_TOOLCHAIN=y which select libm provided by toolchain New selection will come soon, e.g.: https://github.com/JuliaMath/openlibm https://gitlab.com/gtd-gmbh/libmcs For more info, please reference this PR: https://github.com/apache/nuttx/pull/8584 Best regards, > > Simon > > -- > Hard- and Softwaredevelopment Consultant > Ingenieurbüro-Filgis > USt-IdNr.: DE305343278 >