<?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中的主题 Why does the linker try including a noneexistend crt0 object?</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1876353#M12346</link>
    <description>&lt;P&gt;Here the part of the log file which shows that the linker tries incoroprating a nonexistent crt0.o object:&lt;/P&gt;&lt;P&gt;Building target: DiagnosticsTest_CM7.elf&lt;BR /&gt;Invoking: Standard S32DS C Linker&lt;BR /&gt;arm-none-eabi-gcc -o "DiagnosticsTest_CM7.elf" "@DiagnosticsTest_CM7.args"&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/real-ld.exe: cannot find crt0.o: No such file or directory&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/real-ld.exe: cannot find -lc&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:76: DiagnosticsTest_CM7.elf] Error 1&lt;BR /&gt;"make -j12 TOOLCHAIN=linaro" terminated with exit code 2. Build might be incomplete.&lt;/P&gt;&lt;P&gt;Please guide me to the S32DS tool option which obviously needs to be adjusted.&lt;/P&gt;&lt;P&gt;BTW I also do not see where the option -lc gets set in the tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 13:42:31 GMT</pubDate>
    <dc:creator>markusregner</dc:creator>
    <dc:date>2024-05-28T13:42:31Z</dc:date>
    <item>
      <title>Why does the linker try including a noneexistend crt0 object?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1876353#M12346</link>
      <description>&lt;P&gt;Here the part of the log file which shows that the linker tries incoroprating a nonexistent crt0.o object:&lt;/P&gt;&lt;P&gt;Building target: DiagnosticsTest_CM7.elf&lt;BR /&gt;Invoking: Standard S32DS C Linker&lt;BR /&gt;arm-none-eabi-gcc -o "DiagnosticsTest_CM7.elf" "@DiagnosticsTest_CM7.args"&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/real-ld.exe: cannot find crt0.o: No such file or directory&lt;BR /&gt;c:/nxp/s32ds.3.5/s32ds/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/9.2.0/../../../../arm-none-eabi/bin/real-ld.exe: cannot find -lc&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:76: DiagnosticsTest_CM7.elf] Error 1&lt;BR /&gt;"make -j12 TOOLCHAIN=linaro" terminated with exit code 2. Build might be incomplete.&lt;/P&gt;&lt;P&gt;Please guide me to the S32DS tool option which obviously needs to be adjusted.&lt;/P&gt;&lt;P&gt;BTW I also do not see where the option -lc gets set in the tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 13:42:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1876353#M12346</guid>
      <dc:creator>markusregner</dc:creator>
      <dc:date>2024-05-28T13:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the linker try including a noneexistend crt0 object?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1877525#M12353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43391"&gt;@markusregner&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you share some information from your project?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you building the diagnostic tests for&amp;nbsp;&lt;STRONG&gt;S32G-VNP-EVBx Diagnostics&lt;/STRONG&gt;? Also, I see on the path that gcc 9.2 is being used, but when importing the EVBx Diagnostics project on my side, I can build them correctly using the default gcc (6.3):&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;Finished building: ../src/s32g_test_all.c
 
Building target: DiagnosticsTest_CM7.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "DiagnosticsTest_CM7.elf" "@DiagnosticsTest_CM7.args"  
Finished building target: DiagnosticsTest_CM7.elf
 
Invoking: Standard S32DS Create Flash Image
arm-none-eabi-objcopy -O binary DiagnosticsTest_CM7.elf  "DiagnosticsTest_CM7.bin"
Invoking: Standard S32DS Print Size
arm-none-eabi-size --format=berkeley DiagnosticsTest_CM7.elf
   text	   data	    bss	    dec	    hex	filename
 158264	 481664	 247728	 887656	  d8b68	DiagnosticsTest_CM7.elf
Finished building: DiagnosticsTest_CM7.siz
Finished building: DiagnosticsTest_CM7.bin
 
 

13:12:32 Build Finished. 0 errors, 151 warnings. (took 22s.434ms)&lt;/LI-CODE&gt;
&lt;P&gt;Did you port the example? Are you using another package? This issue may be caused by different GCC versions.&lt;/P&gt;
&lt;P&gt;Also, take a look at this community post with a similar issue, it was resolved by copying some configuration from the GCC path:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/Facing-Issue-with-Make-file-S32K144-crt0-o-No-such-Directory/m-p/1642585" target="_blank"&gt;Facing Issue with Make file S32K144 [crt0.o : No such Directory] - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 18:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1877525#M12353</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-05-29T18:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the linker try including a noneexistend crt0 object?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1879803#M12365</link>
      <description>&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;Yes, this is a migration of an older project which I used for demonstrating certain functionalities to colleagues and customers. Hence, yes likely it was built with a different GCC at that time.&lt;/P&gt;&lt;P&gt;I tried the workaround described in the link which you sent. It made things even worse. It lead to 135 errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well to my best knowledge I imported the project just as normal.&lt;/P&gt;&lt;P&gt;So how can I fix it?&lt;/P&gt;&lt;P&gt;BTW, I also wonder why a different GCC compiler lead to a failure message about crt0.o?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existence and Absence of such file should matter of the project and not matter of the compiler version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;-Markus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 11:19:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1879803#M12365</guid>
      <dc:creator>markusregner</dc:creator>
      <dc:date>2024-06-03T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the linker try including a noneexistend crt0 object?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1879806#M12366</link>
      <description>&lt;P&gt;BTW, Around November 2023 I discussed with members of the NXP SW team the future of this Diagnostic code. At that time it was already not compiling any longer. And the NXP team knew. So I wonder how you got it compiling now. Anyway... I think the question is how can I chose now the right compiler in my S32DS to make it compile again?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 11:24:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1879806#M12366</guid>
      <dc:creator>markusregner</dc:creator>
      <dc:date>2024-06-03T11:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the linker try including a noneexistend crt0 object?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1879973#M12367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/43391"&gt;@markusregner&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I haven't really tested the project, but I've just imported and built it. Is this the "&lt;STRONG&gt;S32Gx based S32G-VNP-EVBx diagnostics package version 0.8.7&lt;/STRONG&gt;" package?&lt;/P&gt;
&lt;P&gt;By "It was already not compiling any longer", do you mean in the newer versions of S32DS? Is this a new error or has this been known by the SW team since Nov?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The release notes for this package say it is supported by S32DS3.4:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;--Complete suite builds out of box with S32Design Studio v3.4&lt;/PRE&gt;
&lt;P&gt;After importing this project, and right clicking for "Properties", go into "C/C++ Build &amp;gt; Tool Chain Editor". The current toolchain for the project should show up.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1717432307120.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/282220i5CB93550EBF4C4AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1717432307120.png" alt="Julin_AragnM_0-1717432307120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just to confirm, after downloading and importing the project, when going into properties, is the NXP GCC 9.2 toolchain selected?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 16:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-does-the-linker-try-including-a-noneexistend-crt0-object/m-p/1879973#M12367</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-06-03T16:38:49Z</dc:date>
    </item>
  </channel>
</rss>

