trns1997 opened a new pull request, #16976: URL: https://github.com/apache/nuttx/pull/16976
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary `make export` currently fails with the warning: ``` cp: cannot stat '.../libs/libc/elf/gnu-elf.ld': No such file or directory ``` This happens because the file `gnu-elf.ld` was removed and replaced with `gnu-elf.ld.in`. The real `gnu-elf.ld` is now only generated when `CONFIG_LIBC_MODLIB=y` (via modlib). However, `tools/mkexport.sh` still assumes that `gnu-elf.ld` always exists and tries to copy it unconditionally, leading to the error. ## Impact - Removes the confusing “cannot stat gnu-elf.ld” error during make export. - No functional change for users who have `CONFIG_LIBC_MODLIB=y` (the generated gnu-elf.ld is still copied). - For users without CONFIG_LIBC_MODLIB, the .in template is exported in place of the missing file, ensuring the export step succeeds without error. No impact on runtime behavior, build outputs, or compatibility. ## Testing - Host: Ubuntu 22.04, gcc 11.4.0. - Target: stm32f4discovery:nsh. - [ ] Export no error with `CONFIG_LIBC_MODLIB=n` - [ ] Export no error with `CONFIG_LIBC_MODLIB=y` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
