<?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>Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108529/infinite-build-loop-with-some-examples-dirty-build-ninja</link><description>With multiple of the provided samples with the SDK, I&amp;#39;m getting a repeated build loop that ultimately fails due to a remaining &amp;quot;dirty build.ninja&amp;quot;. This is primarily with some Edge Impulse samples, so I&amp;#39;ve posted there as well, but these samples are provided</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 15:25:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108529/infinite-build-loop-with-some-examples-dirty-build-ninja" /><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/492779?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 15:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1c7704-6942-4b10-96c5-abdda27d48ca</guid><dc:creator>alnyland</dc:creator><description>&lt;p&gt;Glad to hear, I honestly forgot that I&amp;#39;d put a conclusion to this issue. I&amp;#39;ll go ahead and mark it as solved, hopefully that allows it to stay around for others to look at when needed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This issue was so weird, it was I guess a compile time error that was shown to the developer as a very different issue. And it doesn&amp;#39;t help when there are multiple layers of build systems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/492766?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 14:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5888114-2b13-465c-b943-0a30a4876248</guid><dc:creator>Th2001</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/alnyland"&gt;alnyland&lt;/a&gt;, I&amp;#39;ve just encountered this issue today&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470817?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 16:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9b3da7-8d52-4788-a284-a828eb6e5174</guid><dc:creator>alnyland</dc:creator><description>&lt;p&gt;The issue ended up being from a compile time error that was hidden in the print statements most of the time I tried.&lt;/p&gt;
&lt;pre class="p1"&gt;/opt/nordic/ncs/v2.5.2/nrf/lib/edge_impulse/ei_wrapper.cpp: At global scope:&lt;br /&gt;&lt;br /&gt;/opt/nordic/ncs/v2.5.2/nrf/lib/edge_impulse/ei_wrapper.cpp:56:31: error: static assertion failed&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;56 | BUILD_ASSERT(DATA_BUFFER_SIZE &amp;gt; INPUT_WINDOW_SIZE);&lt;br /&gt;&lt;br /&gt;/opt/nordic/ncs/v2.5.2/zephyr/include/zephyr/toolchain/gcc.h:70:50: note: in definition of macro &amp;#39;BUILD_ASSERT&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;70 | #define BUILD_ASSERT(EXPR, MSG...) static_assert(EXPR, &amp;quot;&amp;quot; MSG)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;|&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;^~~~&lt;br /&gt;&lt;br /&gt;/opt/nordic/ncs/v2.5.2/nrf/lib/edge_impulse/ei_wrapper.cpp:56:31: note: the comparison reduces to &amp;#39;(2500 &amp;gt; 9216)&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;56 | BUILD_ASSERT(DATA_BUFFER_SIZE &amp;gt; INPUT_WINDOW_SIZE);&lt;br /&gt;&lt;br /&gt;/opt/nordic/ncs/v2.5.2/zephyr/include/zephyr/toolchain/gcc.h:70:50: note: in definition of macro &amp;#39;BUILD_ASSERT&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;70 | #define BUILD_ASSERT(EXPR, MSG...) static_assert(EXPR, &amp;quot;&amp;quot; MSG)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;|&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;^~~~&lt;br /&gt;&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;/pre&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;By adding&amp;nbsp;&lt;code&gt;CONFIG_EI_WRAPPER_DATA_BUF_SIZE=[bigger size]&lt;/code&gt; to the &lt;strong&gt;prj.conf&lt;/strong&gt; I was able to fix this issue.&lt;/p&gt;
&lt;p class="p1"&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Edit (an hour later): This only fixed it for the one project, the Continuous Motion project that was working before is not working currently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470816?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 16:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd39f37b-8023-4d18-8614-a071dfef453f</guid><dc:creator>alnyland</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried the data_forwarder example as I have no sensors so I&amp;#39;m only using the Wrapper example. It was only reproducible with EI generated code for certain types of projects.&lt;/p&gt;
&lt;p&gt;I ended up figuring it out finally. I&amp;#39;ll add that here or edit the original post so anyone else in the future can fix it as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470483?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2024 13:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b17d0f45-f7c8-4699-a576-f4fd10cf51ee</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I honestly don&amp;#39;t know. I tried to build just the forwarder example on my end and everything was working. I would presume this is when you are uploading an EI generated code?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470321?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 17:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47e103de-f1f0-4e1c-8114-85111566af3b</guid><dc:creator>alnyland</dc:creator><description>&lt;p&gt;Now I&amp;#39;m getting a new/diff error that be more nRF related:&lt;/p&gt;
&lt;p&gt;/opt/nordic/ncs/v2.5.2/nrf/lib/edge_impulse/ei_wrapper.cpp: At global scope:&lt;br /&gt;/opt/nordic/ncs/v2.5.2/nrf/lib/edge_impulse/ei_wrapper.cpp:56:31: error: static assertion failed&lt;br /&gt; 56 | BUILD_ASSERT(DATA_BUFFER_SIZE &amp;gt; INPUT_WINDOW_SIZE);&lt;br /&gt;/opt/nordic/ncs/v2.5.2/zephyr/include/zephyr/toolchain/gcc.h:70:50: note: in definition of macro &amp;#39;BUILD_ASSERT&amp;#39;&lt;br /&gt; 70 | #define BUILD_ASSERT(EXPR, MSG...) static_assert(EXPR, &amp;quot;&amp;quot; MSG)&lt;br /&gt; | ^~~~&lt;br /&gt;/opt/nordic/ncs/v2.5.2/nrf/lib/edge_impulse/ei_wrapper.cpp:56:31: note: the comparison reduces to &amp;#39;(2500 &amp;gt; 9216)&amp;#39;&lt;br /&gt; 56 | BUILD_ASSERT(DATA_BUFFER_SIZE &amp;gt; INPUT_WINDOW_SIZE);&lt;br /&gt;/opt/nordic/ncs/v2.5.2/zephyr/include/zephyr/toolchain/gcc.h:70:50: note: in definition of macro &amp;#39;BUILD_ASSERT&amp;#39;&lt;br /&gt; 70 | #define BUILD_ASSERT(EXPR, MSG...) static_assert(EXPR, &amp;quot;&amp;quot; MSG)&lt;/p&gt;
&lt;p&gt;Is this an EI or nRF issue? I&amp;#39;m not sure where I could modify the DATA_BUFFER_SIZE value and it appears to be provided by nRF code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470315?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 16:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf37ad4-57f5-4fd4-81a6-c39598950dde</guid><dc:creator>alnyland</dc:creator><description>&lt;p&gt;I&amp;#39;m pretty sure my clock is correct, I&amp;#39;ve checked that a few times. I&amp;#39;m on macOS so the path issue should exist here, my time is set to time.apple.com but I&amp;#39;ve tried updating from ntp as well. The weirder part is that yesterday morning, I had two almost identical projects setup and one worked just fine and the other did not (had this issue), but I can&amp;#39;t find any relevant file differences that would seem to cause it. I know the main difference is out of scope for here but it&amp;#39;s a somewhat commonly used same provided by nRF so I thought maybe someone here had seen this problem before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470267?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 13:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14b958e5-17b8-4bd4-8fce-ddf4e9bd539e</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;So its might sound a bit strange, but are you sure your computer time is correct? I found a issue at ninjas github where people wrote adjusting the computers/sync it fixed their error. Other&amp;nbsp;solutions&amp;nbsp; was path length, but that should not be an issue for OSX as far as I know or if you have any special symbols in your path.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to delete the build folder and create a new config and build it? It often fixes strange problems&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite build loop with some examples, dirty build.ninja</title><link>https://devzone.nordicsemi.com/thread/470224?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 11:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492aafb9-5bc4-47f3-a5c0-22d97f582d7c</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Andrew&lt;/p&gt;
&lt;p&gt;I will look into the case and get back to you&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>