<?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>Can&amp;#39;t build nRF Connect SDK example: compiler can&amp;#39;t build object files with generated compile options</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94981/can-t-build-nrf-connect-sdk-example-compiler-can-t-build-object-files-with-generated-compile-options</link><description>Hello! I&amp;#39;ve run into a problem after updating much of the environment (cmake, ninja, python, git, etc.) that I can&amp;#39;t compile the code in nRF Connect SDK now. 
 Initially I observed this problem on a project using an older version of nCS (1.6.1) and gnuarmemb</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Dec 2022 23:18:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94981/can-t-build-nrf-connect-sdk-example-compiler-can-t-build-object-files-with-generated-compile-options" /><item><title>RE: Can't build nRF Connect SDK example: compiler can't build object files with generated compile options</title><link>https://devzone.nordicsemi.com/thread/401609?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 23:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffd422c-3da1-499f-8242-d502df72c0b3</guid><dc:creator>CodeLoader</dc:creator><description>&lt;p&gt;Fixed this, turned out it was because of the &lt;strong&gt;ccache&lt;/strong&gt; executable in my PATH (the tool to speed up compilation). And also, I didn&amp;#39;t have to get rid of it, just reinstalled it.&lt;/p&gt;
&lt;p&gt;My&amp;nbsp;Chocolatey/lib/ccache/tools had several versions of ccache, older ones still present, and a shim in&amp;nbsp;&lt;span&gt;Chocolatey/lib (which was in my PATH) referring to I don&amp;#39;t know which version. So deleted the shim, uninstalled and reinstalled the package and now it&amp;nbsp;can compile.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build nRF Connect SDK example: compiler can't build object files with generated compile options</title><link>https://devzone.nordicsemi.com/thread/401320?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 15:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3c8aa7e-9426-45fa-b89a-d060b80e2e02</guid><dc:creator>CodeLoader</dc:creator><description>&lt;p&gt;No, I installed it from the command line, using the page&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html"&gt;Installing manually&lt;/a&gt;&amp;nbsp;as a reference. And it used to work.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Your assumption for suggesting the toolchain manager would be that the computer is mostly used for programming Nordic devices and the whole environment can be suited for that. Unfortunately, this isn&amp;#39;t always the case. I use tools like python, cmake, ARM GCC compiler and such for other things too, and having multiple instances of them is not always desired, as it&amp;#39;s confusing, not very flexible and occupies more disk space. It&amp;#39;s cool when it works on a fresh virtual machine, but much more difficult when a lot of software and env variables already installed.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Anyway, I tried previous versions of the compiler, cmake and ninja and the result is still the same.&lt;br /&gt;I don&amp;#39;t know how validity of the SDK setup is verified, but I have the west-updated 2.2.0 nCS, env variables&amp;nbsp;ZEPHYR_BASE and&amp;nbsp;ZEPHYR_TOOLCHAIN_VARIANT are set as per the instruction, and have executed the&amp;nbsp;setup.cmd in the Zephyr SDK toolchain to update the registry values.&lt;/p&gt;
&lt;p&gt;It could be that everything is set, but other software and paths also exist and something may be in conflict?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build nRF Connect SDK example: compiler can't build object files with generated compile options</title><link>https://devzone.nordicsemi.com/thread/401249?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 12:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3335c93-74c9-4fb2-a915-5dd5484ef103</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you installing the SDK through the Toolchain Manager in nrf Connect for Desktop? That is the recommended way to install the SDK, and should install all necessary tools(cmake, python etc.). &lt;br /&gt;You do not need to install these yourself, and you do not need to download the zephyr sdk separately. Installing them yourself should not be a problem, but it can sometimes cause issues.&lt;/p&gt;
&lt;p&gt;After installing the SDK you should open the command line window through the drop-down menu next to the installed SDK version in Toolchain Manager:&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/Open_5F00_Command_5F00_Line.png" /&gt;&lt;/p&gt;
&lt;p&gt;Opening the command line window from here ensures that the environment is correctly configured.&lt;/p&gt;
&lt;p&gt;Could you try that, and see if that solves the issues? If you still have issues, please post the new build log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't build nRF Connect SDK example: compiler can't build object files with generated compile options</title><link>https://devzone.nordicsemi.com/thread/401156?ContentTypeID=1</link><pubDate>Sun, 18 Dec 2022 21:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c45f244-a0c5-4e8b-8746-5ca037761e34</guid><dc:creator>CodeLoader</dc:creator><description>&lt;p&gt;Additional info:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CMake version: 3.25.1&lt;/li&gt;
&lt;li&gt;west version: 0.14.0&lt;/li&gt;
&lt;li&gt;ninja version: 1.11.0&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>