<?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: error: 'fma' is not a member of 'std' in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076039#M6497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.prefix files for ewl are located (with default install path) in&amp;nbsp;&lt;/P&gt;&lt;P&gt;c:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v6.3\arm32_ewl2\EWL_C++\include\&amp;nbsp;&lt;/P&gt;&lt;P&gt;folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably modified some build variables. Normally you can choose C/C++ library from menu and that's it. S32DS sets all variables automatically for chosen C/C++ library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is similar thread -&amp;nbsp;&lt;A href="https://community.nxp.com/thread/455084"&gt;https://community.nxp.com/thread/455084&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2020 06:53:21 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2020-08-11T06:53:21Z</dc:date>
    <item>
      <title>error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076032#M6490</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 using S32 Design Studio toolchain for S32K based project.&lt;/P&gt;&lt;P&gt;I am seeing following error when I started using the toolchain with latest Design Studio v2.2 (GCC v6.3). But I haven't seen this issue with&amp;nbsp;GCC 4.9 version that came with Design Studio v2018.R1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;math/interpolation.h:26:12:&amp;nbsp;&lt;STRONG&gt;error: 'fma' is not a member of 'std'&lt;/STRONG&gt;&lt;BR /&gt; return ::std::fma ( t, b, ( 1.0F - t ) * a );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help in solving this issue with new toolchain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated the quick turnaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2020 01:04:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076032#M6490</guid>
      <dc:creator>__invited__hari</dc:creator>
      <dc:date>2020-08-08T01:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076033#M6491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks, that fma is not part of std for NewLib. With EWL library it is working okay:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109914i71C944F6525DEBD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 10:11:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076033#M6491</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-08-10T10:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076034#M6492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jiri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you also point me to the directory that you configured for $(S32DS_ARM32_EWL_DIR)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured this path to the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;--sysroot=$(TCHAIN_CFG_PATH)/S32DS/build_tools/gcc_v6.3/arm32_ewl2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it gives me this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;arm-none-eabi-gcc.exe: &lt;SPAN style="color: red;"&gt;error:&lt;/SPAN&gt; ewl_c9x_c++_noio.specs: No such file or directory&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 12:32:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076034#M6492</guid>
      <dc:creator>__invited__hari</dc:creator>
      <dc:date>2020-08-10T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076035#M6493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually - I just switched NewLib to EWL&amp;nbsp; as shown on screenshot above. I didn't modify any path/variable:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109954i4623DAD44AF0D9A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:06:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076035#M6493</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-08-10T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076036#M6494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It&amp;nbsp;looks like I need both libraries (newlib and ewl).&lt;/P&gt;&lt;P&gt;Any suggestions how to add both libs to the make command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:41:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076036#M6494</guid>
      <dc:creator>__invited__hari</dc:creator>
      <dc:date>2020-08-10T16:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076037#M6495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I'm not sure what's your goal. If you can modify your code with NewLib - you can just call fma(x,y,z). With ewl you can use std::fma. (actually - in my opinion - there is no difference).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you think that you need to mixed up two STD libs?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076037#M6495</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-08-10T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076038#M6496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use&amp;nbsp;2 std libs at the sametime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am seeing this error if I&amp;nbsp;am not&amp;nbsp;using newlib.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cc1plus.exe: fatal error: lib_c++.prefix: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Do we have any other -specs to&amp;nbsp;solve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 17:59:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076038#M6496</guid>
      <dc:creator>__invited__hari</dc:creator>
      <dc:date>2020-08-10T17:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076039#M6497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.prefix files for ewl are located (with default install path) in&amp;nbsp;&lt;/P&gt;&lt;P&gt;c:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v6.3\arm32_ewl2\EWL_C++\include\&amp;nbsp;&lt;/P&gt;&lt;P&gt;folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably modified some build variables. Normally you can choose C/C++ library from menu and that's it. S32DS sets all variables automatically for chosen C/C++ library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is similar thread -&amp;nbsp;&lt;A href="https://community.nxp.com/thread/455084"&gt;https://community.nxp.com/thread/455084&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 06:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076039#M6497</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2020-08-11T06:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: error: 'fma' is not a member of 'std'</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076040#M6498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have included math.h header in your file.&lt;/P&gt;&lt;P&gt;I've reproduced this error with newlib when there is no&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include &amp;lt;math.h&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116478iEBFDF94E18DC8E70/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include resolves the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 19:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/error-fma-is-not-a-member-of-std/m-p/1076040#M6498</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2020-08-19T19:14:52Z</dc:date>
    </item>
  </channel>
</rss>

