<?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>Building infinite loop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109981/building-infinite-loop</link><description>Hi, 
 I am currently finishing the intermediate SDK course of yours and suddenly I got a really strange behavior. 
 The build just endlessly enters a loop in Found GnuLd as the screenshot shows. I have already tried restarting my computer and SDK and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2024 00:11:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109981/building-infinite-loop" /><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/486536?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 00:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4763ba18-e5b6-46ca-b1d9-786a0e5133da</guid><dc:creator>duser</dc:creator><description>&lt;p&gt;I had the same issue but have no idea why it was happening. I hadn&amp;#39;t changed anything in my toolchain at all and things were working fine. Then MacOS did an update and it broke JLink until I flashed my board to the latest version of JLink firmware (7.96J), then I also found out that I couldn&amp;#39;t compile from pristine. Totally removing both the toochain and SDK fixed the issue. Upgrading from 2.5.2 to 2.6.1 in place did NOT fix the issue however. I had to totally uninstall&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478400?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 19:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f671fc8-26a7-4e5c-8685-7edd0dd3f640</guid><dc:creator>sjobyt</dc:creator><description>&lt;p&gt;I confirm MacOS 14.4.1 M2. Installing toolchain using VSCode extension works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478386?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 17:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baeb29e2-4155-43c5-9331-4592fb90dfdd</guid><dc:creator>chris1111</dc:creator><description>&lt;p&gt;Ok I finally got this worked out.&amp;nbsp; I think there&amp;#39;s a few steps missing from the solutions others provided above.&amp;nbsp; I believe what was happening is when the GnuLD gets into a state where it&amp;#39;s stalls and remains spinning, canceling the build does not terminate its stall.&amp;nbsp; So trying to remove and reinstall the toolchain and SDK does not do any good while it remains running in the background.&lt;/p&gt;
&lt;p&gt;Here was the steps:&lt;/p&gt;
&lt;p&gt;1. Restart the machine.&lt;/p&gt;
&lt;p&gt;2. Remove nRF Toolchain Manager&lt;/p&gt;
&lt;p&gt;3. Remove nRF Connect for Desktop&lt;/p&gt;
&lt;p&gt;4. Restart the machine&lt;/p&gt;
&lt;p&gt;5. From VSCode remove the SDK, then remove the toolchain.&lt;/p&gt;
&lt;p&gt;6. Remove the nRF VSCode extensions.&lt;/p&gt;
&lt;p&gt;7. Restart again.&lt;/p&gt;
&lt;p&gt;8. Install nRF VSCode extensions.&lt;/p&gt;
&lt;p&gt;9. From VSCode, reinstall the ncs 2.6.0 toolchain.&lt;/p&gt;
&lt;p&gt;10. From VSCode reinstall the ncs 2.6.0 SDK.&lt;/p&gt;
&lt;p&gt;Only after this was I able to build with ncs 2.6.0.&amp;nbsp; Not sure what the root cause was, but it appears there&amp;#39;s some issue with the nRF Connect for Desktop application and the &lt;span&gt;nRF Toolchain Manager application and its initial installation of the ncs 2.6.0 SDK.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please fix this issue with ncs 2.6.0.&amp;nbsp; This caused a week of disrupted development time.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478231?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 08:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e4d970-4ecc-4ac7-b73e-8cff656b2e18</guid><dc:creator>Schmid</dc:creator><description>&lt;p&gt;Removing the Toolchain/SDK with nrf Desktop and installing them with the extension&amp;nbsp;fixed it for me too, thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478154?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 22:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca37a707-2981-424f-b0c9-f8666dd478d9</guid><dc:creator>waderq21</dc:creator><description>&lt;p&gt;Installing everything from inside VSCode worked for me, I was using the nRF Connect for Desktop to install in the toolchains. Switching to installing them with the VSCode extension resolved it for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478136?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 20:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26a6f463-9306-4428-9c88-c1a4531ba1ef</guid><dc:creator>Antonio</dc:creator><description>&lt;p&gt;Keeps compiling for me. I also erased several other extensions that I had from arm. I also made sure to install only the&amp;nbsp;nRF Connect pack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478127?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 17:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be27052a-0b86-47b7-9517-63c99b2be8d9</guid><dc:creator>chris1111</dc:creator><description>&lt;p&gt;I get the exact same behavior.&amp;nbsp; It will build only the first time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478126?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 17:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dae3541-0368-4d95-93e4-8a2623415266</guid><dc:creator>chris1111</dc:creator><description>&lt;p&gt;Yes the same issue occurs.&amp;nbsp; GnuLd stalls and spins forever.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also tried the steps @Antonio provided below, where I removed all extensions and SDK/toolchain, then reinstall all from within VSCode.&amp;nbsp; However that did not resolve the issue.&amp;nbsp; GnuLd still continues to stall and spin forever.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478052?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 12:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5acce8e0-82b6-483c-b2d4-f5b438774181</guid><dc:creator>Antonio</dc:creator><description>&lt;p&gt;Just made it work thanks to&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oys"&gt;&amp;Oslash;yvind A. Sandberg&lt;/a&gt;&amp;nbsp;and the help of my friend FAE Don Janysek.&lt;/p&gt;
&lt;p&gt;I was using nRF Connect Desktop to handle the SDK and toolchain. I erased the extensions from VS Code, erased the SDKs with&amp;nbsp;&lt;span&gt;nRF Connect Desktop, and installed the extensions again, followed by installing the toolchain and SDK from inside VS Code. It works perfectly now.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/478001?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 09:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:424f0390-e2d6-41cc-a52a-c2dffae810f8</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi all,&lt;br /&gt;&lt;br /&gt;Do you get the same build error when you use &amp;quot;west build&amp;quot; instead of building from VS Code?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477913?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 22:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:313addb6-d169-4cc7-a6b3-7278b9208e5f</guid><dc:creator>waderq21</dc:creator><description>&lt;p&gt;Running into the same error, reinstalling everything did not resolve my issue.&lt;br /&gt;&lt;br /&gt;To expand on it, if I restart Vscode it will work one time for me before freezing on GnuLd. After the first build, does not matter which SDK version I try they all freeze on the build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477877?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 16:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af56e3d8-3aa5-409e-9a93-0226b98d7c61</guid><dc:creator>chris1111</dc:creator><description>&lt;p&gt;As previously stated in my initial reply, this was not a solution.&amp;nbsp; This is not work.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span&gt;&amp;gt; I have tried to remove all my previous ncs SDK&amp;#39;s, remove and reinstall ncs 2.6.0, toolchain manager, nrf connect for desktop, VSCode and all nRF-associated extensions, to no avail.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477872?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 15:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e92bf38-6de1-4269-8e19-46e881453e9b</guid><dc:creator>Joao Colombari</dc:creator><description>&lt;p&gt;Hello guys!&lt;/p&gt;
&lt;p&gt;Thanks for the relies. &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/peachesandcream112"&gt;chris1111&lt;/a&gt;&amp;nbsp; and &lt;a href="https://devzone.nordicsemi.com/members/schmid"&gt;Schmid&lt;/a&gt;&amp;nbsp;, if you don&amp;#39;t &amp;nbsp;want to share anything else, I&amp;#39;ll close this issue.&lt;/p&gt;
&lt;p&gt;Jo&amp;atilde;o.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477753?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 09:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258b1b1f-ef6e-464a-962e-e57b91b392a0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/joao-colombari"&gt;Joao Colombari&lt;/a&gt;&amp;nbsp;, &lt;a href="https://devzone.nordicsemi.com/members/peachesandcream112"&gt;chris1111&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/schmid"&gt;Schmid&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/members/joao-colombari"&gt;Joao Colombari&lt;/a&gt;&amp;nbsp; It is great to hear that your tools are working properly.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/members/peachesandcream112"&gt;chris1111&lt;/a&gt;&amp;nbsp;and&lt;a href="https://devzone.nordicsemi.com/members/schmid"&gt;Schmid&lt;/a&gt;&amp;nbsp;, please try to do the same. Complete reinstallation of the tools might resolve your issues as well.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477652?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 17:03:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42283b5c-01ce-40e6-9ee6-cc26bd922604</guid><dc:creator>chris1111</dc:creator><description>&lt;p&gt;I also tried to use the ncs 2.5.2 toolchain with ncs 2.6.0 sdk, but the behavior was the same.&lt;pre class="ui-code" data-mode="text"&gt;clude/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also the same behavior with ncs 2.5.0 toolchain with ncs 2.6.0 sdk.&lt;/p&gt;
&lt;p&gt;The project I am trying to build is on ncs 2.6.0 sdk, so doing the reverse would not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477630?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 14:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8d1cc6e-513d-4cac-9811-b1b4b309ed26</guid><dc:creator>Joao Colombari</dc:creator><description>&lt;p&gt;Dejans,&lt;/p&gt;
&lt;p&gt;I had the exact same behavior Chris had. I didn&amp;#39;t try using NCS 2.5 with 2.6 toolchain, but did use NCS 2.6 with older toolchains (not only 2.5, but some others as well) and it made no difference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After trying changing everything and resinstaling the toolchains with no success, I resintalled every other possible thing - NCS, J-Link and the VSCode extensions and by doing this it finally works. No idea why, but it does&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jo&amp;atilde;o.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477602?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 13:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93bb75f3-250d-4e2f-b91c-cf51545e6efe</guid><dc:creator>Schmid</dc:creator><description>&lt;p&gt;When I restart vscode, the build directory is still there but no build config is shown in the APPLICATIONS tab, I can delete the dir and build with a new one. But only one time, pristine build again will lead to the error. This happens with 2.6 and 2.5 (I overlooked this because I closed it sorry).&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477556?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 12:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:015a6178-1ae9-48af-b2ef-1ed15be6c743</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;What happens if you use NCS v2.5.0 with toolchain v2.6.0 (instead of v2.5.0), and NCS v2.6.0 with the older toolchain v2.5.0?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477477?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 08:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d55ea163-c07a-4d02-861f-ec89441c66e2</guid><dc:creator>Schmid</dc:creator><description>&lt;p&gt;I have the same Problem (Sonoma 14.4.1, NCS 2.6, nrf52840dk_nrf52840)&lt;/p&gt;
&lt;p&gt;It works with NCS 2.5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building infinite loop</title><link>https://devzone.nordicsemi.com/thread/477388?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 23:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e75e7cd-e60f-4b1e-ae4d-103079424174</guid><dc:creator>chris1111</dc:creator><description>&lt;p&gt;I am also experiencing the same issue since updating to 2.6.0.&amp;nbsp; I have tried to remove all my previous ncs SDK&amp;#39;s, remove and reinstall ncs 2.6.0, toolchain manager, nrf connect for desktop, VSCode and all nRF-associated extensions, to no avail.&amp;nbsp; The only thing I have noticed is that GnuLd will operate for one time after rebooting my machine.&amp;nbsp; But all subsequent attempts to build, GnuLd spins forever.&amp;nbsp; This applies to all the samples.&amp;nbsp; When building an application with a parent and child after rebooting my machine, it operates for the parent, but stalls when getting to the child application.&lt;/p&gt;
&lt;p&gt;I am also on MacOS, Sonoma 14.4.&amp;nbsp; This only started being an issue with ncs 2.6.0.&amp;nbsp; I was previously using ncs 2.5.0.&lt;/p&gt;
&lt;p&gt;I attempted on my personal machine with Windows 11, and had no issues with ncs 2.6.0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Kconfig header saved to &amp;#39;/Users/chris1111/Repositories/aaaaaaa/application/build/inner/hci_ipc/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>