<?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 SDK v2.2.0] Blinky app build fails with link error with board nrf9160dk_nrf9160_ns</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95765/nrf-connect-sdk-v2-2-0-blinky-app-build-fails-with-link-error-with-board-nrf9160dk_nrf9160_ns</link><description>Hi Nordic Team, 
 
 We have some trouble building blinky app with nrf9160dk_nrf9160_ns board. 
 
 Our config : 
 
 Host : Lubuntu 20.04 
 SDK : nRFConnect SDK v2.2.0 
 IDE : VsCode v1.74.2 
 Build config : nrf9160fk_nrf9160_ns 
 App : Blinky example from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 09:36:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95765/nrf-connect-sdk-v2-2-0-blinky-app-build-fails-with-link-error-with-board-nrf9160dk_nrf9160_ns" /><item><title>RE: [nRF Connect SDK v2.2.0] Blinky app build fails with link error with board nrf9160dk_nrf9160_ns</title><link>https://devzone.nordicsemi.com/thread/405793?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 09:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f21075bc-4278-4e49-9580-17109c1e341f</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Hugo,&lt;/p&gt;
&lt;p&gt;Glad to hear we discovered the issue!&lt;/p&gt;
&lt;p&gt;Before we spend time digging deeper into whether these symlinks and edits are sufficient, would you mind just reinstalling NCS closer to root (and moving your application closer as well)?&lt;/p&gt;
&lt;p&gt;As you know, the NCS build system is quite intricate, so modifications like these could easily have some side effects (even down the line) that take hours to debug. It might also move a bit outside my expertise, but I&amp;#39;d be happy to help where I can if necessary.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK v2.2.0] Blinky app build fails with link error with board nrf9160dk_nrf9160_ns</title><link>https://devzone.nordicsemi.com/thread/405454?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 11:41:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fcdd55-5264-4cf8-b770-58708759700a</guid><dc:creator>hugo_98</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;You guessed right. Thank you !&lt;/p&gt;
&lt;p&gt;I tried to build an _ns app inside the NCS directory and it worked well. However, it doesn&amp;#39;t build at all anywhere outside the NCS directory which is a real concern.&lt;/p&gt;
&lt;p&gt;I created some symbolic links to get the following env variables :&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ZEPHYR_BASE=/home/devnordicconnect/ncs/zephyr&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ZEPHYR_SDK_INSTALL_DIR=/home/devnordicconnect/zephyr-sdk&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And then I ran again the zephyr sdk setup script from&amp;nbsp;&lt;span&gt;/home/devnordicconnect/zephyr-sdk&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems thas west or the underlying tools expand systematically the path as a result the build fails...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By editing manually the path in the gerenated file &lt;code&gt;&amp;lt;build_dir&amp;gt;/zephyr/include/generated/snippets-rodata.ld&lt;/code&gt; from :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;/* Sort key: &amp;quot;default&amp;quot; */#include &amp;quot;../../../../../media/morespace/devnordicconnect/ncs/nrf/lib/nrf_modem_lib/nrf_modem_lib.ld&amp;quot;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;to&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;/* Sort key: &amp;quot;default&amp;quot; */#include &amp;quot;/home/devnordicconnect/ncs/nrf/lib/nrf_modem_lib/nrf_modem_lib.ld&amp;quot;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It builds successfully but this quick fix introduces a weakness in the development process... I hope there might be another way to solve the issue ..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hugo&lt;/span&gt;&lt;/p&gt;
&lt;p&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 SDK v2.2.0] Blinky app build fails with link error with board nrf9160dk_nrf9160_ns</title><link>https://devzone.nordicsemi.com/thread/405413?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 09:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eade78b-8932-4ff1-9214-74f70a1969bd</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Hugo,&lt;/p&gt;
&lt;p&gt;My initial guess upon seeing &amp;quot;no such file or directory&amp;quot; is that this a build system failure caused by too long path names. I see that your $zephyr directory is placed many directories deep, this is &lt;em&gt;often&lt;/em&gt; the cause of issues.&lt;/p&gt;
&lt;p&gt;Could you try moving your application closer to your root directory, and building everything again? A pristine build, or even better just delete the whole build directory.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, would you mind reinstalling all of NCS closer to your root directory, or, if reinstalling sounds like a pain, try building this sample on another PC with NCS installed closer to root?&lt;/p&gt;
&lt;p&gt;Let me know if that works.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>