<?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>FATAL ERROR: command exited with status 1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96340/fatal-error-command-exited-with-status-1</link><description>Dear Support Team 
 
 I had an error code when I built the CoAP Client sample of thread and I did no change in this NCS sample code. This NCS version is V2.1.2. 
 Below pictures show the configurations for this project: 
 
 
 Below messages are the log</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Feb 2023 15:33:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96340/fatal-error-command-exited-with-status-1" /><item><title>RE: FATAL ERROR: command exited with status 1</title><link>https://devzone.nordicsemi.com/thread/408354?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 15:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a9ab80f-2485-4bd5-a095-1782bfdca35d</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I got exactly the same error when trying to build, but I was able to figure out what&amp;#39;s going on.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;coap_server_client_interface.h&lt;/code&gt; file is located at &lt;code&gt;nrf/samples/openthread/coap_server/interface/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This file is included into the &lt;code&gt;coap_client&lt;/code&gt; sample by this line in &lt;code&gt;CMakeLists.txt&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;target_include_directories(app PUBLIC ../coap_server/interface)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The problem is that this inclusion is done through a relative path from your application folder, which is correct in the sample folder structure, but when you make a copy of the sample into your application folder this inclusion path finds nothing.&lt;/p&gt;
&lt;p&gt;Unless you compile the &lt;code&gt;coap_server&lt;/code&gt; sample first, which will generate the same folder structure in your application folder, which will let you compile the &lt;code&gt;coap_client&lt;/code&gt; sample successfully afterwards.&lt;/p&gt;
&lt;p&gt;I suggest you use this workaround now, or you could alternatively copy the &lt;code&gt;coap_server_client_interface.h&lt;/code&gt; file into your src directory and update &lt;code&gt;CMakeLists.txt&lt;/code&gt; accordingly.&lt;/p&gt;
&lt;p&gt;Either way I&amp;#39;ll let the developers know of the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>