<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113359/nrf-connect-cli-build---cmake-error</link><description>I am attempting to build a project off of the XXX template repository. So far I have gotten the workspace set up and am now attempting to run &amp;quot;west build&amp;quot; but I get the below error. This looks like CMake just can&amp;#39;t find a custom zephyr module/plugin but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2024 08:45:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113359/nrf-connect-cli-build---cmake-error" /><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/497972?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 08:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:486c430a-0ede-432b-95d5-6fbb8a5163eb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Commenting out &lt;code&gt;zephyr_syscall_include_directories&lt;/code&gt; is fine, because it was added in time for NCS v2.7, but&amp;nbsp;you are&amp;nbsp;on v2.6.1. The example app is versioned together with NCS, so&amp;nbsp;your app should be derived from a matching revision of the example repo. For reference: &lt;a title="https://github.com/nrfconnect/ncs-example-application/blob/v2.6.1/cmakelists.txt" href="https://github.com/nrfconnect/ncs-example-application/blob/v2.6.1/CMakeLists.txt" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/ncs-example-application/blob/v2.6.1/CMakeLists.txt&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;-Priyanka&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/497832?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 13:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d05742a-fe2b-4c25-8594-109faae60b35</guid><dc:creator>dcmccall</dc:creator><description>&lt;p&gt;Hey Priyanka!&lt;/p&gt;
&lt;p&gt;That does seem to be the case for building the application. Most everything works when I run west build inside of the application folder. In the repository folder(workspace/repo.git/) though I have to comment out the two lines in the CMakeLists.txt file that use zephyr_syscall_include_directories in order to get the build to work from the app folder(workspace/repo.git/app/).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_08_2D00_12-090908.png" /&gt;&lt;/p&gt;
&lt;p&gt;If I don&amp;#39;t comment those two lines out, I get the following error&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1723468424944v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you need any more information! We&amp;#39;re getting closer! Thanks!&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/497449?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 08:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595e7222-8c58-487b-8551-c21901c2c54c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;It looks like you&amp;#39;re running &lt;code&gt;west build&lt;/code&gt; from the repo root, but if it&amp;#39;s derived from &lt;code&gt;ncs-example-application&lt;/code&gt; then it should be built from the &lt;code&gt;app&lt;/code&gt; subdirectory. &lt;a title="https://github.com/nrfconnect/ncs-example-application?tab=readme-ov-file#building-and-running" href="https://github.com/nrfconnect/ncs-example-application?tab=readme-ov-file#building-and-running" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/ncs-example-application?tab=readme-ov-file#building-and-running&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/497433?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 07:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:206f4b9a-e7cc-4d34-85dc-50087a89051e</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;br /&gt;I am yet to hear from the internal team. I have escalated the issue. Thank you for your patience.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/496988?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 13:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e4ebce0-fafc-4c9d-ab19-0ddd2b26b615</guid><dc:creator>dcmccall</dc:creator><description>&lt;p&gt;Hi Priyanka! Is there any update on this? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/495975?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 10:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aabc2a1-dfc9-490f-925f-656f7ca20d61</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Thank you for the detailed update. We are looking into this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/495839?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 14:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b58f50de-300b-4b45-854b-61073ee57534</guid><dc:creator>dcmccall</dc:creator><description>&lt;p&gt;I used west init. To start from the beginning I...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrfutil toolchain-manager launch --shell&lt;/li&gt;
&lt;li&gt;west init -m [github repo].git my-workspace&lt;/li&gt;
&lt;li&gt;cd my-workspace&lt;/li&gt;
&lt;li&gt;west update&lt;/li&gt;
&lt;li&gt;source zephyr/zephyr-env.sh (I have tried with and without this step)&lt;/li&gt;
&lt;li&gt;cd ULC.git&lt;/li&gt;
&lt;li&gt;west build&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;and I always end up with this output&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;(v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/my-workspace/ULC2.git$ west build --board=noke_glock
-- west build: generating a build system
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:12 (zephyr_syscall_include_directories):
  Unknown CMake command &amp;quot;zephyr_syscall_include_directories&amp;quot;.


-- Configuring incomplete, errors occurred!
See also &amp;quot;/home/daniel/Documents/my-workspace/ULC2.git/build/CMakeFiles/CMakeOutput.log&amp;quot;.
FATAL ERROR: command exited with status 1: /home/daniel/ncs/toolchains/2be090971e/usr/local/bin/cmake -DWEST_PYTHON=/home/daniel/ncs/toolchains/2be090971e/usr/local/bin/python3.9 -B/home/daniel/Documents/my-workspace/ULC2.git/build -GNinja -DBOARD=noke_glock -S/home/daniel/Documents/my-workspace/ULC2.git
(v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/my-workspace/ULC2.git$&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t seem to find any reference anywhere to &amp;quot;zephyr_syscall_include_directories&amp;quot; besides the CMakeLists files in the sample projects from nordic and zephyr. Is it possible it&amp;#39;s compiled into something? I assumed it was going to be defined in a *.cmake kinda file(that I&amp;#39;m failing to include), but that doesn&amp;#39;t seem to be the case.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/495742?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 07:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e1c14c-9eff-4e1d-81fe-1a3c0e9a1963</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Thank you for the details. I will have to discuss this internally and will get back to you.&lt;/p&gt;
&lt;p&gt;Also, it looks like you did a &lt;strong&gt;git clone&lt;/strong&gt; and not a &lt;strong&gt;west init&lt;/strong&gt;. Is this correct?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/495625?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 12:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:969d390f-62d4-491d-97a4-8441d8c7230b</guid><dc:creator>dcmccall</dc:creator><description>&lt;p&gt;Sure! I am using v2.6.1 of the toolchain and the SDK. This error occurs for any of the builds I attempt to run from the command line that uses the template/structure found in&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/ncs-example-application"&gt;https://github.com/nrfconnect/ncs-example-application&lt;/a&gt;. I have also already set up the environment using &amp;quot;nrfutil toolchain-manager launch --shell&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;(v2.6.1) daniel@JUS-L-B5C2TW3:~/Documents/ULC-Workspace/ULC2.git$ west build --board=noke_glock -p
-- west build: generating a build system
CMake Error at CMakeLists.txt:12 (zephyr_syscall_include_directories):
  Unknown CMake command &amp;quot;zephyr_syscall_include_directories&amp;quot;.


-- Configuring incomplete, errors occurred!
See also &amp;quot;/home/daniel/Documents/ULC-Workspace/ULC2.git/build/CMakeFiles/CMakeOutput.log&amp;quot;.
FATAL ERROR: command exited with status 1: /home/daniel/ncs/toolchains/2be090971e/usr/local/bin/cmake -DWEST_PYTHON=/home/daniel/ncs/toolchains/2be090971e/usr/local/bin/python3.9 -B/home/daniel/Documents/ULC-Workspace/ULC2.git/build -GNinja -DBOARD=noke_glock -S/home/daniel/Documents/ULC-Workspace/ULC2.git&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect CLI Build - CMake Error</title><link>https://devzone.nordicsemi.com/thread/495608?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 11:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b63e5cd5-511b-4a5d-b408-47ddf58a9d81</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;It would be great to get more details.&lt;/p&gt;
&lt;p&gt;Is it possible to attach the entire log along with the error that you get?&lt;/p&gt;
&lt;p&gt;Which sample are you trying to build? Which SDK&amp;nbsp;and Toolchain version?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>