<?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 Re: Can't Build with Link-time Optimizer Enabled in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702555#M1737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 07:15:51 GMT</pubDate>
    <dc:creator>riccardolalli</dc:creator>
    <dc:date>2017-09-13T07:15:51Z</dc:date>
    <item>
      <title>Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702550#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enabling the link-time optimizer (-flto) option in the build settings causes my builds to fail in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Invoking: Standard S32DS C++ Linker
powerpc-eabivle-g++ -o "link_opt_Z7_0.elf" "@link_opt_Z7_0.args"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
powerpc-eabivle-g++.exe: error: nosys.specs: No such file or directory
lto-wrapper: c:\NXP\S32DS_Power_v1.2\Cross_Tools\powerpc-eabivle-4_9\bin\powerpc-eabivle-g++.exe returned 1 exit status
c:/nxp/s32ds_power_v1.2/cross_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
make: *** [link_opt_Z7_0.elf] Error 1‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It appears that the linker cannot find the nosys.specs file when this option is enabled. &amp;nbsp;It doesn't have a problem when it is disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am missing any other set-up I should also be doing in conjunction with enabling this option, does anyone have any tips or pointers for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be reproduced with a new S32DS project (I am using S32DS for PowerPC V1.2)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Start a new project&lt;/LI&gt;&lt;LI&gt;I selected the MPC5777C core (it probably doesn't matter)&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;C++ for the language&lt;/LI&gt;&lt;LI&gt;NewLib for the library&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;In the build settings of S32DS , enable the&amp;nbsp;&lt;STRONG&gt;link-time optimizer (-flto)&lt;/STRONG&gt; option. &amp;nbsp;I did this for both C and C++ settings&lt;/LI&gt;&lt;LI&gt;Compile&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 01:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702550#M1732</guid>
      <dc:creator>peterb2</dc:creator>
      <dc:date>2017-08-22T01:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702551#M1733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this report. I'm able to reproduce it easily.&lt;/P&gt;&lt;P&gt;I've logged this issue into our defect tracking system.&lt;/P&gt;&lt;P&gt;Our compiler experts are going to analyze this particular issue.&lt;/P&gt;&lt;P&gt;At the moment the only workaround is not to use -flno switch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702551#M1733</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-08-23T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702552#M1734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue is common for ARM and Power GCC toolchain.&lt;/P&gt;&lt;P&gt;Regarding to Newlib libraries workaround is to move libraries from powerpc-eabivle\newlib\lib to &amp;nbsp;&lt;SPAN&gt;powerpc-eabivle\lib&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;mv&amp;nbsp;powerpc-eabivle\newlib\lib &lt;SPAN&gt;powerpc-eabivle\lib&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 20:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702552#M1734</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2017-08-24T20:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702553#M1735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have the same issue with S32DS for ARM 1.3, with ewl_c library and -flto option.&lt;/P&gt;&lt;P&gt;This is my build log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building target: dummy_project.elf&lt;BR /&gt;Executing target #5 dummy_project.elf&lt;BR /&gt;Invoking: Standard S32DS C Linker&lt;BR /&gt;arm-none-eabi-gcc -o "dummy_project.elf" "@dummy_project.args"&amp;nbsp; &amp;nbsp;&lt;BR /&gt;arm-none-eabi-gcc.exe: error: ewl_c9x_noio.specs: No such file or directory&lt;BR /&gt;lto-wrapper: c:\NXP\S32DS_ARM_v1.3\Cross_Tools\gcc-arm-none-eabi-4_9\bin\arm-none-eabi-gcc.exe returned 1 exit status&lt;BR /&gt;c:/nxp/s32ds_arm_v1.3/cross_tools/gcc-arm-none-eabi-4_9/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: lto-wrapper failed&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [dummy_project.elf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a solution like the one for newlib?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Riccardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702553#M1735</guid>
      <dc:creator>riccardolalli</dc:creator>
      <dc:date>2017-09-12T15:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702554#M1736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Workaround should be&amp;nbsp;the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;mv S32DS\arm_ewl2\lib Cross_Tools\gcc&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;arm&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;none&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;eabi&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;4_9\arm&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;none&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;eabi\lib‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 19:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702554#M1736</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2017-09-12T19:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702555#M1737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 07:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702555#M1737</guid>
      <dc:creator>riccardolalli</dc:creator>
      <dc:date>2017-09-13T07:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702556#M1738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;Sliva:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I use the method from "&lt;A _jive_internal="true" data-content-finding="Community" data-userid="283968" data-username="alexanderfedotov" href="https://community.nxp.com/people/alexanderfedotov" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Alexander Fedotov&lt;/A&gt;&lt;SPAN style="color: #5e89c1; background-color: #ffffff; font-weight: 500;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;" (&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;mv&amp;nbsp;powerpc-eabivle\newlib\lib&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6; border: 0px;"&gt;powerpc-eabivle\lib&lt;/SPAN&gt;)and still didn't work. &amp;nbsp;I search the folder "Cross_Tools" and find no file named "&lt;STRONG&gt;&lt;EM style="color: #ff0000;"&gt;ewl_c9x_noio.specs&lt;/EM&gt;&lt;/STRONG&gt;". Is there any way that i can enable &lt;STRONG&gt;&lt;EM&gt;the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;link-time optimizer (-flto) option&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="background-color: #ffffff; color: #51626f;"&gt;Thank you very much!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="AAA.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31437i6FF612A9EAD38BF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="AAA.PNG" alt="AAA.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The build infomation list below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Building target: SMS_PRJ_Z7_0.elf&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Executing target #112 SMS_PRJ_Z7_0.elf&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Invoking: Standard S32DS C Linker&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;powerpc-eabivle-gcc -o "SMS_PRJ_Z7_0.elf" "@SMS_PRJ_Z7_0.args" &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;powerpc-eabivle-gcc.exe: error: &lt;SPAN style="color: #ff0000;"&gt;ewl_c9x_noio.specs: No such file or directory&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;lto-wrapper: c:\Freescale\S32_Power_v1.2\Cross_Tools\powerpc-eabivle-4_9\bin\powerpc-eabivle-gcc.exe returned 1 exit status&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;c:/freescale/s32_power_v1.2/cross_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: error: lto-wrapper failed&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;collect2.exe: error: ld returned 1 exit status&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;make: *** [SMS_PRJ_Z7_0.elf] Error 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 01:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702556#M1738</guid>
      <dc:creator>fyw</dc:creator>
      <dc:date>2017-09-25T01:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Build with Link-time Optimizer Enabled</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702557#M1739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using EWL2 specs and EWL2 libs respectively. so in this case you need to move/copy lib folder from EWL2.&lt;/P&gt;&lt;P&gt;See my answer below for ARM.&lt;/P&gt;&lt;P&gt;For Power the trick almost the same:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;mv S32DS\e200_ewl2\lib Cross_Tools\powerpv&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;eabivle&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;4_9\powerpc&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;eabivle\lib
‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Can-t-Build-with-Link-time-Optimizer-Enabled/m-p/702557#M1739</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2017-09-25T09:03:39Z</dc:date>
    </item>
  </channel>
</rss>

