<?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中的主题 Using the S32K toolchain with cmake - Fatal error: lib_c99.prefix : No such file or directory</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Using-the-S32K-toolchain-with-cmake-Fatal-error-lib-c99-prefix/m-p/1163957#M6863</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm looking for guidance about how to use the S32K toolchain.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H4&gt;Context&lt;/H4&gt;&lt;P&gt;I'm trying to use the S32K Linux (Ubuntu 16) arm-none-eabi build tools to compile my project.&lt;BR /&gt;I'm using CMake and Make to do so.&lt;/P&gt;&lt;P&gt;Currently, the build system fails at the &lt;EM&gt;"check for working C compiler"&lt;/EM&gt; step. The exact error message is:&lt;/P&gt;&lt;PRE&gt;cc1: fatal error: lib_c99.prefix: No such file or directory&lt;/PRE&gt;&lt;P&gt;Of course, this file exists in my &lt;EM&gt;build_tools&lt;/EM&gt; directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$  find /usr/local/build_tools/arm32_ewl2 | grep lib_c99
/usr/local/build_tools/arm32_ewl2/EWL_C/include/lib_c99.prefix&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the CMake toolchain file could be the cause of this problem, my compiler flags seem identical to the one used when compiling the project with the S32 DS IDE:&lt;/P&gt;&lt;PRE&gt;usr/local/build_tools/gcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc -c -fmessage-length=0 -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -specs=ewl_c9x_noio.specs --sysroot="/usr/local/build_tools/arm32_ewl2" -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fdata-sections -ffunction-sections -o CMakeFiles/cmTC_ee422.dir/testCCompiler.c.obj -c /root/nBMSMv2_Tools/myproject/build/CMakeFiles/CMakeTmp/testCCompiler.c&lt;/PRE&gt;&lt;P&gt;I think the problem might reside in my environment setup.&lt;BR /&gt;Here's my &lt;I&gt;build_tools&amp;nbsp;&lt;/I&gt;tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/local/build_tools/
|-- arm32_ewl2  # &amp;lt;-------- SYSROOT
|   |-- Build_Tag.txt
|   |-- Doxyfile
|   |-- EWL_C
|   |-- EWL_C++
|   |-- EWL_ReleaseNotes
|   |-- EWL_Runtime
|   |-- lib
|   `-- makefile
`-- gcc-6.3-arm32-eabi
    |-- arm-none-eabi
    |-- bin
    |-- include
    |-- lib
    |-- libexec
    |-- linux_support
    |-- patches_applied
    `-- share&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;&lt;BR /&gt;Question&lt;/H4&gt;&lt;P&gt;Why can't &lt;EM&gt;arm-none-eabi-gcc&lt;/EM&gt; find the&lt;EM&gt;&amp;nbsp;lib_c99.prefix&lt;/EM&gt; file?&amp;nbsp;&lt;BR /&gt;If all the compilation flags are identical to the one used by the IDE, what did I miss? Is this a question of environment variables?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;ATCH. The full CMake log&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2020 17:19:37 GMT</pubDate>
    <dc:creator>gberthiaume</dc:creator>
    <dc:date>2020-10-07T17:19:37Z</dc:date>
    <item>
      <title>Using the S32K toolchain with cmake - Fatal error: lib_c99.prefix : No such file or directory</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Using-the-S32K-toolchain-with-cmake-Fatal-error-lib-c99-prefix/m-p/1163957#M6863</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm looking for guidance about how to use the S32K toolchain.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H4&gt;Context&lt;/H4&gt;&lt;P&gt;I'm trying to use the S32K Linux (Ubuntu 16) arm-none-eabi build tools to compile my project.&lt;BR /&gt;I'm using CMake and Make to do so.&lt;/P&gt;&lt;P&gt;Currently, the build system fails at the &lt;EM&gt;"check for working C compiler"&lt;/EM&gt; step. The exact error message is:&lt;/P&gt;&lt;PRE&gt;cc1: fatal error: lib_c99.prefix: No such file or directory&lt;/PRE&gt;&lt;P&gt;Of course, this file exists in my &lt;EM&gt;build_tools&lt;/EM&gt; directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$  find /usr/local/build_tools/arm32_ewl2 | grep lib_c99
/usr/local/build_tools/arm32_ewl2/EWL_C/include/lib_c99.prefix&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the CMake toolchain file could be the cause of this problem, my compiler flags seem identical to the one used when compiling the project with the S32 DS IDE:&lt;/P&gt;&lt;PRE&gt;usr/local/build_tools/gcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc -c -fmessage-length=0 -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -specs=ewl_c9x_noio.specs --sysroot="/usr/local/build_tools/arm32_ewl2" -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fdata-sections -ffunction-sections -o CMakeFiles/cmTC_ee422.dir/testCCompiler.c.obj -c /root/nBMSMv2_Tools/myproject/build/CMakeFiles/CMakeTmp/testCCompiler.c&lt;/PRE&gt;&lt;P&gt;I think the problem might reside in my environment setup.&lt;BR /&gt;Here's my &lt;I&gt;build_tools&amp;nbsp;&lt;/I&gt;tree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/local/build_tools/
|-- arm32_ewl2  # &amp;lt;-------- SYSROOT
|   |-- Build_Tag.txt
|   |-- Doxyfile
|   |-- EWL_C
|   |-- EWL_C++
|   |-- EWL_ReleaseNotes
|   |-- EWL_Runtime
|   |-- lib
|   `-- makefile
`-- gcc-6.3-arm32-eabi
    |-- arm-none-eabi
    |-- bin
    |-- include
    |-- lib
    |-- libexec
    |-- linux_support
    |-- patches_applied
    `-- share&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;&lt;BR /&gt;Question&lt;/H4&gt;&lt;P&gt;Why can't &lt;EM&gt;arm-none-eabi-gcc&lt;/EM&gt; find the&lt;EM&gt;&amp;nbsp;lib_c99.prefix&lt;/EM&gt; file?&amp;nbsp;&lt;BR /&gt;If all the compilation flags are identical to the one used by the IDE, what did I miss? Is this a question of environment variables?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;ATCH. The full CMake log&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 17:19:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Using-the-S32K-toolchain-with-cmake-Fatal-error-lib-c99-prefix/m-p/1163957#M6863</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2020-10-07T17:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using the S32K toolchain with cmake - Fatal error: lib_c99.prefix : No such file or directory</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Using-the-S32K-toolchain-with-cmake-Fatal-error-lib-c99-prefix/m-p/1172014#M6915</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/Using-the-NXP-arm-none-eabi-gcc-on-linux/m-p/1164049" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio/Using-the-NXP-arm-none-eabi-gcc-on-linux/m-p/1164049&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 19:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Using-the-S32K-toolchain-with-cmake-Fatal-error-lib-c99-prefix/m-p/1172014#M6915</guid>
      <dc:creator>gberthiaume</dc:creator>
      <dc:date>2020-10-22T19:52:04Z</dc:date>
    </item>
  </channel>
</rss>

