<?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>Compilation Fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99208/compilation-fail</link><description>ncs 2.3.0 
 
 Good morning, for a few days, I can no longer compile a firmware that I use regularly. I don&amp;#39;t understand what could have happened. I&amp;#39;ll post the compilation with the errors if anyone has any ideas about it. Thank you 
 
 
 CMAKE/BUILD</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Apr 2023 12:08:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99208/compilation-fail" /><item><title>RE: Compilation Fail</title><link>https://devzone.nordicsemi.com/thread/422968?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 12:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a7cc82-e6d8-470a-96ef-409d1ec93d63</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;Hi &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;for now I use version 11. It doesn&amp;#39;t change anything for me. Then I&amp;#39;ll do the necessary checks.&lt;br /&gt;Thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation Fail</title><link>https://devzone.nordicsemi.com/thread/422967?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 12:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f7f3677-e198-473f-be8d-3d24e8b30a05</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking online, this seems to be an issue with clang 12 on macOS. I found several people reporting linker problems when using clang 12. &lt;br /&gt;Some solved a similar issue by setting SDKROOT to the path of the macOS Command Line Tools in environment variables: &lt;a href="https://stackoverflow.com/questions/63342521/clang-on-macos-having-problems-with-its-includes"&gt;https://stackoverflow.com/questions/63342521/clang-on-macos-having-problems-with-its-includes&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If this does not fix the issue, is using clang 11 instead an option?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation Fail</title><link>https://devzone.nordicsemi.com/thread/422961?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 11:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4771dbc1-fa37-4394-8120-767257b0a694</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;HI,&lt;br /&gt;in the logs, no error regarding the compiler is detected except the one I have already attached the only thing is that one compiles. With the other from the errors that I have attached.&lt;br /&gt;My MAC still has the x64 processor,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation Fail</title><link>https://devzone.nordicsemi.com/thread/422959?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 11:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e78c04a-3c89-4f3a-82e1-3f23af033aa5</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="babos"]&amp;quot;&lt;strong&gt;Clang 12.0.0 x86_64-apple-darwin19.6.0&lt;/strong&gt;&amp;quot; while selecting &amp;quot;&lt;strong&gt;Clang 11.0.0 x86_64-apple-darwin19.6.0&lt;/strong&gt;&amp;quot;[/quote]
&lt;p&gt;Do you have logs with this error?&lt;/p&gt;
&lt;p&gt;Which version of macOS are you using? And does your Mac have an M1 chip or x64?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation Fail</title><link>https://devzone.nordicsemi.com/thread/422955?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 11:31:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8944a4ee-8177-4887-9282-bad413948353</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;thank you Marte !&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I noticed just ago that the compilation error I have with &amp;quot;&lt;strong&gt;Clang 12.0.0 x86_64-apple-darwin19.6.0&lt;/strong&gt;&amp;quot; while selecting &amp;quot;&lt;strong&gt;Clang 11.0.0 x86_64-apple-darwin19.6.0&lt;/strong&gt;&amp;quot;, I compile without problems. But I still don&amp;#39;t understand why. I&amp;#39;ll do some tests and see if I can figure it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation Fail</title><link>https://devzone.nordicsemi.com/thread/422954?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 11:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba128cca-3a36-425c-ba47-29259d8887f2</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It fails because optind and optarg are undeclared in sms_shell.c and icmp_ping_shell.c. &lt;br /&gt;Make sure you include getopt.h in these files:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#include &amp;lt;getopt.h&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Also make sure that you have the following configs set in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# Getopt&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_GETOPT_LIB=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;# Need to disable devmem shell since it enforces Zephyr&amp;#39;s internal version of getopt&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DEVMEM_SHELL=n&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>