SHIVAM DEOLANKAR commented on a discussion: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144761


I investigated the dependency tracking as suggested. It appears that switching 
RTEMS_SMP regenerates cpukit/include/rtems/score/cpuopts.h, but this header was 
not tracked as a dependency for compilation tasks. As a result, object files 
built with the previous configuration were reused, which caused the linker 
errors.

I updated the build rules to include cpuopts.h as an explicit dependency for 
the compilation tasks. This ensures that when cpuopts.h changes (e.g., due to 
RTEMS_SMP toggling), the affected objects are rebuilt.

I tested the change by switching between RTEMS_SMP=False and RTEMS_SMP=True 
multiple times without running ./waf clean. The build now correctly recompiles 
the affected objects and completes successfully.

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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to