casaroli opened a new pull request, #21819:
URL: https://github.com/apache/nuttx/pull/21819

   ## Summary
   
   Two configurations do not link on master, and the CI of every PR fails in 
two jobs:
   
   - `Linux (arm-ti)`, `lm3s6965-ek:qemu-protected` with 
`CONFIG_ARM_TOOLCHAIN_GNU_EABI`: `arm-none-eabi-ld: region 'kflash' overflowed 
by 624 bytes`.
   - `Linux (arm-stm32h7)`, `weact-stm32h750:sdcard` with 
`CONFIG_ARM_TOOLCHAIN_CLANG`: `ld.lld: error: section '.data' will not fit in 
region 'flash': overflowed by 544 bytes`.
   
   The numbers are for master 562db43781f. The CI runs of other PRs show a 
little less (240 to 464 bytes and 448 to 480 bytes).
   
   `weact-stm32h750:sdcard`: f231a24ae3a (#21722) links `memalign()` and 
`mm_memalign()` into the image. This used 448 of the last 512 free bytes. Then 
cacded6ab90 (#21724) made the image 96 bytes too large.
   
   `lm3s6965-ek:qemu-protected`: #21722 does not change the kernel image, 
because the kernel already links `kmm_memalign()` (`up_create_stack()` and the 
ELF loader use it). The kernel image grew in many small steps after #21722. 
cb60949d9af (#21682) was the first commit that did not fit.
   
   `/proc/memdump` and the NSH `memdump` command dump the heap for debugging. 
Neither configuration uses them. Set `CONFIG_FS_PROCFS_EXCLUDE_MEMDUMP=y` in 
both, one commit per board.
   
   ## Impact
   
   Only `lm3s6965-ek:qemu-protected` and `weact-stm32h750:sdcard`: no 
`/proc/memdump` and no NSH `memdump` command. No code change.
   
   ## Testing
   
   Make build as in `tools/testbuild.sh`, in the CI docker image 
(`apache-nuttx-ci-linux`): Arm GNU Toolchain 13.2.Rel1 (13.2.1) for lm3s6965-ek 
and clang 17.0.1 (LLVM Embedded Toolchain for Arm) for weact-stm32h750, 
nuttx-apps ab105e659. Bytes used of the 131072-byte region:
   
   | Tree | lm3s6965-ek:qemu-protected `kflash` | weact-stm32h750:sdcard 
`flash` |
   |---|---|---|
   | f231a24ae3a^ | 130776 | 130560 |
   | f231a24ae3a (#21722) | 130760 | 131008 |
   | cacded6ab90 (#21724) | 130920 | overflowed by 96 bytes |
   | cb60949d9af (#21682) | overflowed by 80 bytes | overflowed by 320 bytes |
   | master 562db43781f | overflowed by 624 bytes | overflowed by 544 bytes |
   | master + this PR | 129752 (1320 free) | 129568 (1504 free) |
   
   Other options measured on master, in bytes saved: lm3s6965-ek: 
`SCHED_DUMP_TASKS` and `SCHED_DUMP_STACK` off 848, `DEBUG_FEATURES` off 1200. 
weact-stm32h750: NSH `uptime` off 1024 (as #21808 did for stm32f334-disco), 
`NSH_ALIAS` off 1216. `mm_initialize_heap()` with `lib_malloc()` in place of 
`lib_memalign()` gives back 448 bytes on weact-stm32h750 and 0 bytes on 
lm3s6965-ek, so it does not fix either configuration alone.
   
   `tools/refresh.sh --silent` does not change either defconfig. The builds 
have no undefined reference. Not run on hardware or in QEMU.
   


-- 
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]

Reply via email to