Skip to content

[BUG] Non-blocking make export error: missing gnu-elf.ld #16973

@trns1997

Description

@trns1997

Description / Steps to reproduce the issue

When I configure for stm32f4discovery:nsh and then run make export, I get a warning about a missing linker script:

cp: cannot stat '/home/thomas/nuttxspace/nuttx/libs/libc/elf/gnu-elf.ld': No such file or directory

Despite this, the export archive is created successfully and the build is not blocked. It seems the export step is trying to copy a file that doesn’t exist anymore.

Steps to Reproduce:

  1. Configure NuttX:
./tools/configure.sh -l stm32f4discovery:nsh
  1. Run export:
make export

Output:

Create version.h
LN: platform/board to /home/thomas/nuttxspace/apps/platform/dummy
Register: hello
Register: dd
Register: nsh
Register: sh
CC:  chip/stm32_gpio.c chip/stm32_gpio.c:44:11: note: '#pragma message: CONFIG_STM32_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py'
   44 | #  pragma message "CONFIG_STM32_USE_LEGACY_PINMAP will be deprecated migrate board.h see tools/stm32_pinmap_tool.py"
      |           ^~~~~~~
CC:  chip/stm32_flash.c In file included from chip/stm32_flash.c:40:
chip/stm32f20xxf40xx_flash.c:53:4: warning: #warning "Default Flash Configuration Used - See Override Flash Size Designator" [-Wcpp]
   53 | #  warning "Default Flash Configuration Used - See Override Flash Size Designator"
      |    ^~~~~~~
cp: cannot stat '/home/thomas/nuttxspace/nuttx/libs/libc/elf/gnu-elf.ld': No such file or directory

Notes:
The error is non-blocking and does not prevent the export archive from being created. I just wanted to check if this is an intentional leftover or something that should be cleaned up. I’d be happy to look into it further if needed.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu 24.04

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Configuring]

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: ConfiguringConfiguring issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions