RTEMS | Build system fails when switching configuration between SMP and non-SMP (#5482)

SHIVAM DEOLANKAR (@D3athSkulll) gitlab at rtems.org
Fri Feb 27 20:21:04 UTC 2026




SHIVAM DEOLANKAR commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5482#note_143755


Switching SMP between builds does not invalidate previously  compiled objects leading to stale objects being built and linker errors.

The config state i.e RTEMS_SMP is not part of Waf signature. Thus object files are not rebuilt when configuration changes even though our generated headers in cpuopts.h differ.

What is the intended direction for the fix here?

1) Should config changes trigger full rebuild as in by introducing a config fingerprint or hash into compile flags ? 

2) Improve dependency tracking for generated config headers like cpuopts.h

3) Else just use seperate build directories per configuration.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5482#note_143755
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260227/1e33f962/attachment-0001.htm>


More information about the bugs mailing list