<?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>NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116719/ncs-2-8-0-path-length-problem-during-build-under-windows</link><description>Hello, 
 I know that this issue comes up from time to time. I&amp;#39;m raising it again, because to my opinion there have to be a solution for this. Perhaps there is, that&amp;#39;s the other reason I&amp;#39;m asking... 
 Since upgrade from NCS 2.7.0 to 2.8.0 we are facing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Sep 2025 12:35:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116719/ncs-2-8-0-path-length-problem-during-build-under-windows" /><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/549904?ContentTypeID=1</link><pubDate>Fri, 26 Sep 2025 12:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a236975-d1e4-4476-99c8-d48ffe08c265</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Another possible workaround is to build using ninja directly, instead of using west.&lt;/p&gt;
&lt;p&gt;To build using ninja, please open a terminal that contains the toolchain in your application, and use these commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mkdir build
cd build
cmake .. -DBOARD=nrf54l15dk/nrf54l15/cpuapp -GNinja
ninja
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/519516?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 11:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb8c89b-e75e-435a-9025-744e0d8d1e28</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Yes, this is an unfortunate issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We are aware of this and and working on it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But for now the solution is to create a path that si as short as possible.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/519506?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 11:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd8f3f5-28d2-4468-a1cc-065a8cd005ae</guid><dc:creator>mabe</dc:creator><description>&lt;p&gt;Yes, but it need to be really close to the root due to the length of directory name of the sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/518978?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 06:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec5e5034-5e76-43cd-a470-1561dfafb05a</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/cktdesigner"&gt;CktDesigner&lt;/a&gt;&amp;nbsp;, can you create a new post here on Devzone on the topic of 2.9.0 issue you are seeing.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/518972?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 04:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:730d9914-bdb9-44d4-bf73-bba0a77cfb0f</guid><dc:creator>CktDesigner</dc:creator><description>&lt;p&gt;I&amp;#39;m having a similar problem trying to migrate from 2.7.0 to 2.9.0.&lt;/p&gt;
&lt;p&gt;My projects are not &amp;quot;in-tree&amp;quot; (I have a custom board and my project directory is separate from where toolchains and SDKs are stored.).&lt;/p&gt;
&lt;p&gt;When creating a build configuration, one is asked to provide a name for the build.&amp;nbsp; &amp;nbsp;This is used to create a directory/folder where all build info is created/stored.&amp;nbsp; &amp;nbsp; In previous releases, this build folder is created and all make scripts, object files, etc. are stored there.&amp;nbsp; &amp;nbsp;For 2.9.0, it looks like the build folder is created, but then another folder is created in the build folder&lt;/p&gt;
&lt;p&gt;using the project name.&amp;nbsp; &amp;nbsp;This folder, with the project name, is where the make scripts, object files, etc. are stored.&amp;nbsp; In my case, the project name is pretty long and the extra characters (due to the extra level of file hierarchy) pushes file names over the Windows limit.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering if this extra level was introduced as a &amp;quot;feature&amp;quot; or a bug.&amp;nbsp; &amp;nbsp;Why the extra level??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/518388?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601da34f-4039-4ad0-a828-0ed721ce4000</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Does it work if you build out of tree?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/518299?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2025 16:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e128fc-068a-491c-a444-b68429db665e</guid><dc:creator>mabe</dc:creator><description>&lt;p&gt;Building on NCS 2.9.0 in the default installation directory of NCS does not work for e.g. c:\ncs\v2.9.0\nrf\samples\bluetooth\channel_sounding_ras_reflector .&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;CMake Warning in C:/ncs/v2.9.0/nrf/subsys/nrf_security/src/core/nrf_oberon/CMakeLists.txt:&lt;br /&gt; The object file directory&lt;br /&gt;&lt;br /&gt;C:/ncs/v2.9.0/nrf/samples/bluetooth/channel_sounding_ras_reflector/build/channel_sounding_ras_reflector/modules/nrf/subsys/nrf_security/src/core/nrf_oberon/CMakeFiles/oberon_psa_core.dir/./&lt;br /&gt;&lt;br /&gt;has 189 characters. The maximum full path to an object file is 250&lt;br /&gt; characters (see CMAKE_OBJECT_PATH_MAX). Object file&lt;br /&gt;&lt;br /&gt;C_/ncs/v2.9.0/nrf/subsys/nrf_security/src/psa_crypto_driver_wrappers.c.obj&lt;br /&gt;&lt;br /&gt;cannot be safely placed under this directory. The build may not work&lt;br /&gt; correctly.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/512342?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 12:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a63a92-b829-4ed9-85fb-0dfe07892096</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;&lt;span&gt;Copying the sample out to a folder paths that is shorter such as C:/NCS/Out-OF-Tree-builds/&amp;nbsp; is how, so it does not always need to build in tree and build with the working dir being the workspace.&lt;br /&gt;&lt;br /&gt;You can use a shorter name like C:/project/ or whatever here but this works.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I copied the&amp;nbsp;central_uart sample to a folder I named out of tree and ran the build from VS code nRF extension there.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;so the following:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;C:\WINDOWS\system32\cmd.exe /d /s /c &amp;quot;west build --build-dir c:/Out-Of_Tree/central_uart/build c:/Out-Of_Tree/central_uart --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/out-of_tree/central_uart&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/512213?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 19:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bce03d-76cd-42e3-909c-c5f547bf3350</guid><dc:creator>rgrr2</dc:creator><description>&lt;p&gt;Thanks, sounds at least as an intermediate solution.&amp;nbsp; Could you please tell how to move the build project out of the tree.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.8.0: path length problem during build under Windows</title><link>https://devzone.nordicsemi.com/thread/512183?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 14:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:198580ca-7860-450c-8998-71d14f8e4534</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;I am currently not aware of a solution that does not include renaming or &lt;span&gt;restructuring&lt;/span&gt;&amp;nbsp;stuff if you want to&amp;nbsp;build in tree. What you can try to do is build the project out of tree and that should help with this issue as long as you put the project somewhere with few characters I belive.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>