<?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>S32 Design StudioのトピックFloating Point errors using powerpc-eabivle-4_9 compilers on MPC5777 e200z7 core</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Floating-Point-errors-using-powerpc-eabivle-4-9-compilers-on/m-p/1484418#M8781</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;use the compiler -powerpc-eabivle-gcc-4.9.4 located in "\nxp\S32DS_Power_v2.1\S32DS\build_tools\powerpc-eabivle-4_9\bin". We are getting following errors while we are compiling our code:&lt;BR /&gt;&lt;STRONG&gt;1. undefined reference to `__extendsfdf2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2. undefined reference to `__extendsfdf2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3. undefined reference to `__floatunsidf'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;4. undefined reference to `__umoddi3'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;5. undefined reference to `__gtdf2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;6. undefined reference to `__udivdi3'&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using&amp;nbsp; MPC5777 e200z7 core. Am I missing any compiler flags to address this issue or are we missing anything in the compiler to add the above mentioned floating point functions?. Please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below are the compilation flags used:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Arch Flags:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TGT_FLAGS = -mno-eabi -mspe -mabi=spe -memb -meabi -mlra -mcpu=e200z7 -mbig -mno-vle -Wa,-mbooke32 -mregnames -Wa,-mregnames -mhard-float&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;COMMON_FLAGS = $(TGT_FLAGS) -fno-common&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;C Flags:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;CFLAGS = $(COMMON_FLAGS) -DUINT_SIZE=32 -c $(C_OPTIMIZATION) -fweb -ffunction-sections -frename-registers -funswitch-loops -fgcse-after-reload \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-g3 $(ASSERTFLAGS) $(CEXTFLAGS) -nostdinc -fno-builtin -std=gnu99 -Wimplicit -Wall -Wstrict-prototypes \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-Wparentheses -Wmissing-braces -Wsequence-point -Wfloat-equal -Wmissing-prototypes -Wmissing-declarations \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-Wold-style-definition -Wimplicit-function-declaration -Wno-long-long -Wunreachable-code -fsingle-precision-constant \&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CPP Flags:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;CPPFLAGS = $(COMMON_FLAGS) -DUINT_SIZE=32 -c $(CPP_OPTIMIZATION) -fweb -ffunction-sections -frename-registers -funswitch-loops -fgcse-after-reload \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-g3 $(ASSERTFLAGS) $(CPPEXTFLAGS) -fno-default-inline --param max-inline-insns-auto=0 -fno-inline-functions \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-fno-rtti -fno-exceptions -fno-enforce-eh-specs -fno-builtin -fno-threadsafe-statics -fno-gnu-keywords \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-fno-nonansi-builtins -fno-operator-names -nostdinc++ -Wabi -Wreorder -Woverloaded-virtual -Wsign-promo -Winit-self \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-Wswitch-enum -Wextra -Wfloat-equal -Wunreachable-code -fsingle-precision-constant&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sreekant Kollur&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 07:01:10 GMT</pubDate>
    <dc:creator>sreekant866</dc:creator>
    <dc:date>2022-07-05T07:01:10Z</dc:date>
    <item>
      <title>Floating Point errors using powerpc-eabivle-4_9 compilers on MPC5777 e200z7 core</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Floating-Point-errors-using-powerpc-eabivle-4-9-compilers-on/m-p/1484418#M8781</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;use the compiler -powerpc-eabivle-gcc-4.9.4 located in "\nxp\S32DS_Power_v2.1\S32DS\build_tools\powerpc-eabivle-4_9\bin". We are getting following errors while we are compiling our code:&lt;BR /&gt;&lt;STRONG&gt;1. undefined reference to `__extendsfdf2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2. undefined reference to `__extendsfdf2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3. undefined reference to `__floatunsidf'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;4. undefined reference to `__umoddi3'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;5. undefined reference to `__gtdf2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;6. undefined reference to `__udivdi3'&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using&amp;nbsp; MPC5777 e200z7 core. Am I missing any compiler flags to address this issue or are we missing anything in the compiler to add the above mentioned floating point functions?. Please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below are the compilation flags used:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Arch Flags:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TGT_FLAGS = -mno-eabi -mspe -mabi=spe -memb -meabi -mlra -mcpu=e200z7 -mbig -mno-vle -Wa,-mbooke32 -mregnames -Wa,-mregnames -mhard-float&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;COMMON_FLAGS = $(TGT_FLAGS) -fno-common&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;C Flags:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;CFLAGS = $(COMMON_FLAGS) -DUINT_SIZE=32 -c $(C_OPTIMIZATION) -fweb -ffunction-sections -frename-registers -funswitch-loops -fgcse-after-reload \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-g3 $(ASSERTFLAGS) $(CEXTFLAGS) -nostdinc -fno-builtin -std=gnu99 -Wimplicit -Wall -Wstrict-prototypes \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-Wparentheses -Wmissing-braces -Wsequence-point -Wfloat-equal -Wmissing-prototypes -Wmissing-declarations \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-Wold-style-definition -Wimplicit-function-declaration -Wno-long-long -Wunreachable-code -fsingle-precision-constant \&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CPP Flags:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;CPPFLAGS = $(COMMON_FLAGS) -DUINT_SIZE=32 -c $(CPP_OPTIMIZATION) -fweb -ffunction-sections -frename-registers -funswitch-loops -fgcse-after-reload \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-g3 $(ASSERTFLAGS) $(CPPEXTFLAGS) -fno-default-inline --param max-inline-insns-auto=0 -fno-inline-functions \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-fno-rtti -fno-exceptions -fno-enforce-eh-specs -fno-builtin -fno-threadsafe-statics -fno-gnu-keywords \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-fno-nonansi-builtins -fno-operator-names -nostdinc++ -Wabi -Wreorder -Woverloaded-virtual -Wsign-promo -Winit-self \&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-Wswitch-enum -Wextra -Wfloat-equal -Wunreachable-code -fsingle-precision-constant&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sreekant Kollur&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 07:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Floating-Point-errors-using-powerpc-eabivle-4-9-compilers-on/m-p/1484418#M8781</guid>
      <dc:creator>sreekant866</dc:creator>
      <dc:date>2022-07-05T07:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point errors using powerpc-eabivle-4_9 compilers on MPC5777 e200z7 core</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Floating-Point-errors-using-powerpc-eabivle-4-9-compilers-on/m-p/1488806#M8813</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you may find helpful this StackOverflow article:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/53402307/powerpc-gcc-floating-point-instructions" target="_blank"&gt;https://stackoverflow.com/questions/53402307/powerpc-gcc-floating-point-instructions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also make sure, that HW float point is enabled in your project properties:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1657719074294.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/186474i8BB656E28E8A77C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1657719074294.png" alt="jiri_kral_0-1657719074294.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jiri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Floating-Point-errors-using-powerpc-eabivle-4-9-compilers-on/m-p/1488806#M8813</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2022-07-13T13:31:33Z</dc:date>
    </item>
  </channel>
</rss>

