gustavonihei opened a new pull request, #7503:
URL: https://github.com/apache/incubator-nuttx/pull/7503

   ## Summary
   This PR intends to fix the preprocessing of multiple linker script files 
introduced in #7208.
   Only the last item from the ARCHSCRIPT list was being suffixed with ".tmp", 
resulting in build failures:
   
   ```bash
   LD: nuttx
   xtensa-esp32s3-elf-ld --entry=__start -nostdlib --gc-sections --cref 
-Map=/home/nihei/Projects/NuttX/nuttx/nuttx.map 
-T/home/nihei/Projects/NuttX/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common/scripts/esp32s3_peripherals.ld
 
-T/home/nihei/Projects/NuttX/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common/scripts/esp32s3_rom.ld
 
-T/home/nihei/Projects/NuttX/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common/scripts/esp32s3.template.ld
 
-T/home/nihei/Projects/NuttX/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common/scripts/esp32s3.ld.tmp
  -L /home/nihei/Projects/NuttX/nuttx/staging -L 
/home/nihei/Projects/NuttX/nuttx/arch/xtensa/src/board  \
           -o /home/nihei/Projects/NuttX/nuttx/nuttx xtensa_vectors.o 
xtensa_window_vector.o xtensa_windowspill.o xtensa_int_handlers.o 
xtensa_user_handler.o esp32s3_start.o  \
           --start-group -lsched -ldrivers -lboards -lc -lmm -larch -lxx -lapps 
-lfs -lbinfmt -lboard -lboard 
/home/nihei/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/libgcc.a
 
/home/nihei/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/lib/libm.a
 --end-group
   
xtensa-esp32s3-elf-ld:/home/nihei/Projects/NuttX/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common/scripts/esp32s3.template.ld:13:
 ignoring invalid character `#' in expression
   
xtensa-esp32s3-elf-ld:/home/nihei/Projects/NuttX/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common/scripts/esp32s3.template.ld:13:
 syntax error
   make[1]: *** [Makefile:151: nuttx] Error 1
   ```
   
   ## Impact
   Bugfix, no expected side effects.
   
   ## Testing
   Successful build of `esp32s3-devkit` during development of #7500.
   
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to