<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Build error at executing gmake in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732526#M1637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a simulink model using the MCToolbox and program it onto a MPC564xL MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the building process there is a problem with execution of the 'gmake' command. The generated makefile (in this case DigitalIO_block_demo.mk) is using windows batch script as shell whereas the gmake executable seem to use the /bin/sh shell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-- build output ----------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;### Processing Template Makefile: F:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw.tmf&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;### Creating DigitalIO_block_demo.mk from F:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw.tmf&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;### Building DigitalIO_block_demo: .\DigitalIO_block_demo.bat&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;F:\MCToolbox\rappid564xl\Examples\DigitalIO_block_demo_rappid_rtw&amp;gt;set MATLAB=C:\Program Files\MATLAB\R2017a&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;F:\MCToolbox\rappid564xl\Examples\DigitalIO_block_demo_rappid_rtw&amp;gt;"C:\Program Files\MATLAB\R2017a\bin\win64\gmake" -f DigitalIO_block_demo.mk&amp;nbsp; ISPROTECTINGMODEL=NOTPROTECTING GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=0 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;clean&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RELATIVE_PATH_TO_ANCHOR is ..&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;==== Removing object files from build directory ====&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/usr/bin/sh: -c: line 1: syntax error: unexpected end of file&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;gmake: *** [clean] Error 258&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line in the makefile that troubles is: '@if exist *.o del *.o'. &lt;BR /&gt;When I replace it with 'rm -f *.o' and run DigitalIO_block_demo.bat then it builds perfectly. (I attached the original and the altered version of the makefile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason that 'gmake' does not interpret the commands as windows batch script commands? My colleage does not have this problem. I have installed MINGW/MSYS on my computer for other projects. Could it be that this interferes with this build process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Andre Heinemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 15:16:07 GMT</pubDate>
    <dc:creator>andreheinemans</dc:creator>
    <dc:date>2017-10-30T15:16:07Z</dc:date>
    <item>
      <title>Build error at executing gmake</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732526#M1637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a simulink model using the MCToolbox and program it onto a MPC564xL MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the building process there is a problem with execution of the 'gmake' command. The generated makefile (in this case DigitalIO_block_demo.mk) is using windows batch script as shell whereas the gmake executable seem to use the /bin/sh shell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-- build output ----------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;### Processing Template Makefile: F:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw.tmf&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;### Creating DigitalIO_block_demo.mk from F:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw.tmf&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;### Building DigitalIO_block_demo: .\DigitalIO_block_demo.bat&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;F:\MCToolbox\rappid564xl\Examples\DigitalIO_block_demo_rappid_rtw&amp;gt;set MATLAB=C:\Program Files\MATLAB\R2017a&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;F:\MCToolbox\rappid564xl\Examples\DigitalIO_block_demo_rappid_rtw&amp;gt;"C:\Program Files\MATLAB\R2017a\bin\win64\gmake" -f DigitalIO_block_demo.mk&amp;nbsp; ISPROTECTINGMODEL=NOTPROTECTING GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=0 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;clean&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RELATIVE_PATH_TO_ANCHOR is ..&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;==== Removing object files from build directory ====&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/usr/bin/sh: -c: line 1: syntax error: unexpected end of file&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;gmake: *** [clean] Error 258&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line in the makefile that troubles is: '@if exist *.o del *.o'. &lt;BR /&gt;When I replace it with 'rm -f *.o' and run DigitalIO_block_demo.bat then it builds perfectly. (I attached the original and the altered version of the makefile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason that 'gmake' does not interpret the commands as windows batch script commands? My colleage does not have this problem. I have installed MINGW/MSYS on my computer for other projects. Could it be that this interferes with this build process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Andre Heinemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:16:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732526#M1637</guid>
      <dc:creator>andreheinemans</dc:creator>
      <dc:date>2017-10-30T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Build error at executing gmake</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732527#M1638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andreheinemans"&gt;andreheinemans&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Just recently we had another user complaining of something similar:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/955642?commentID=955642#comment-955642" title="https://community.nxp.com/message/955642?commentID=955642#comment-955642"&gt;https://community.nxp.com/message/955642?commentID=955642#comment-955642&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleas check here the solution for his problem:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/955642?commentID=955642#comment-955642" title="https://community.nxp.com/message/955642?commentID=955642#comment-955642"&gt;https://community.nxp.com/message/955642?commentID=955642#comment-955642&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might not be suitable for you - but at least we can conclude if MINGW is the culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732527#M1638</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-10-30T15:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Build error at executing gmake</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732528#M1639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you response. The problem seems to be similar. I solved it by removing the MINGW directories from the PATH variable before I start MATLAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:16:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Build-error-at-executing-gmake/m-p/732528#M1639</guid>
      <dc:creator>andreheinemans</dc:creator>
      <dc:date>2017-10-31T09:16:12Z</dc:date>
    </item>
  </channel>
</rss>

