# Error in build step #2 (Make): Make process exited with code 2:

**URL:** <https://forum.plexim.com/t/error-in-build-step-2-make-make-process-exited-with-code-2/2896>\
**Category:** General\
**Tags:** plecs, rt-box\
**Created:** [March 3, 2026, 4:16am UTC](https://forum.plexim.com/t/error-in-build-step-2-make-make-process-exited-with-code-2/2896 "2026-03-03T04:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukman\_SN](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@Lukman\_SN](https://forum.plexim.com/u/Lukman_SN)\
**Post date:** [March 3, 2026, 4:16am UTC](https://forum.plexim.com/t/error-in-build-step-2-make-make-process-exited-with-code-2/2896/1 "2026-03-03T04:16:55Z")

</div>

Hello, When I try to build models on RT Box 2 I separate the plant and controller with task scheduling with discretization time for plant is 5e-6 s and for controller is 5e-6 s. Could you explain to me why this error happen? and how is your suggestion to fix this error.

Error in build step #2 (Make): Make process exited with code 2:  
Compiling Plant\_main.o  
Compiling Plant.o  
Plant.mk:65: recipe for target ‘Plant.o’ failed

Plant.c: In function ‘Plant\_initialize’:  
Plant.c:539:26: error: incompatible types when assigning to type ‘float’ from type ‘\__attribute_\_((const)) double (\*)(const char \*)’  
Plant\_X\_Plant\_PM1\_x[8] = nan;  
^  
make: \*\*\* [Plant.o] Error 1

---

<div class="post-metadata">

**Author:** ![Munadir\_Ahmed](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/munadir_ahmed/32/1540_2.png) [@Munadir\_Ahmed](https://forum.plexim.com/u/Munadir_Ahmed)\
**Post date:** [March 3, 2026, 2:12pm UTC](https://forum.plexim.com/t/error-in-build-step-2-make-make-process-exited-with-code-2/2896/2 "2026-03-03T14:12:56Z")

</div>

Hi Lukman\_SN, It would be helpful if you could share a PLECS model that demonstrates the issue. That would make it easier to understand the challenge you are facing and provide more specific guidance.

---

<div class="post-metadata">

**Author:** ![Lukman\_SN](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@Lukman\_SN](https://forum.plexim.com/u/Lukman_SN)\
**Post date:** [April 1, 2026, 5:15am UTC](https://forum.plexim.com/t/error-in-build-step-2-make-make-process-exited-with-code-2/2896/3 "2026-04-01T05:15:14Z")

</div>

Thank you Munadir\_Ahmed, this issue was already solved by re-build and change the discretization method
