Skip to content

Build error - raspberrypi-pico-w:nsh #15966

Open
@phasianus

Description

@phasianus

Description / Steps to reproduce the issue

Following steps: https://nuttx.apache.org/docs/latest/platforms/arm/rp2040/boards/raspberrypi-pico-w/index.html
Ends with error:

/home/pb/nuttxspace/nuttx/tools/mkdeps --obj-path bin --obj-suffix .o --dep-path assert --dep-path builtin --dep-path ctype --dep-path dirent --dep-path dlfcn --dep-path errno --dep-path fixedmath --dep-path grp --dep-path inttypes --dep-path libgen --dep-path machine/arm/armv6-m --dep-path machine/arm/gnu --dep-path machine/arm --dep-path machine --dep-path misc --dep-path net --dep-path obstack --dep-path pthread --dep-path pwd --dep-path queue --dep-path sched --dep-path search --dep-path semaphore --dep-path signal --dep-path spawn --dep-path stdio --dep-path stdlib --dep-path stream --dep-path string --dep-path symtab --dep-path syslog --dep-path termios --dep-path time --dep-path tls --dep-path uio --dep-path unistd --dep-path uuid --dep-path wchar --dep-path wctype "arm-none-eabi-gcc" -- -Wstrict-prototypes -Wno-attributes -Wno-unknown-pragmas -Wno-psabi -Os -fno-strict-aliasing -fomit-frame-pointer --param=min-pagesize=0 -fno-common -Wall -Wshadow -Wundef -ffunction-sections -fdata-sections "-g" -mlittle-endian  -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -mthumb -Wa,-mthumb -Wa,-mimplicit-it=always -isystem /home/pb/nuttxspace/nuttx/include -D__NuttX__ -DNDEBUG -D__KERNEL__  -I /home/pb/nuttxspace/nuttx/libs/libc -- stdlib/lib_strtold.c > lib_strtold.ddc
./stdlib/lib_strtold.c:42:10: fatal error: math.h: No such file or directory
   42 | #include <math.h>
      |          ^~~~~~~~
compilation terminated.
ERROR: arm-none-eabi-gcc failed: 1
       command: arm-none-eabi-gcc -MT bin/lib_strtold.o  -M '-Wstrict-prototypes' '-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi' '-Os' '-fno-strict-aliasing' '-fomit-frame-pointer' '--param=min-pagesize=0' '-fno-common' '-Wall' '-Wshadow' '-Wundef' '-ffunction-sections' '-fdata-sections' '-g' '-mlittle-endian' '-mcpu=cortex-m0' '-mthumb' '-mfloat-abi=soft' '-mthumb' '-Wa,-mthumb' '-Wa,-mimplicit-it=always' '-isystem' '/home/pb/nuttxspace/nuttx/include' '-D__NuttX__' '-DNDEBUG' '-D__KERNEL__' '-I' '/home/pb/nuttxspace/nuttx/libs/libc' ./stdlib/lib_strtold.c
make[2]: *** [/home/pb/nuttxspace/nuttx/tools/Config.mk:232: lib_strtold.ddc] Error 1
make[2]: Leaving directory '/home/pb/nuttxspace/nuttx/libs/libc'
make[1]: *** [Makefile:202: .depend] Error 2
make[1]: Leaving directory '/home/pb/nuttxspace/nuttx/libs/libc'
make: *** [tools/Unix.mk:660: pass2dep] Error 2 

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Fedora 41

NuttX Version

commit fa5590d

Issue Architecture

[Arch: arm]

Issue Area

[Area: Build System]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: armIssues related to ARM (32-bit) architectureArea: Build systemOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions