<?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>Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16203/arm-gcc-error-in-mac-osx</link><description>Hi, 
 I am trying to set up the development tools for the NRF52 on my Mac by following this tutorial aaroneiche.com/.../ 
 I am getting the following error when i try to compile the code using the make command 
 
 Compiling file: system_nrf52.c make</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Sep 2016 14:07:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16203/arm-gcc-error-in-mac-osx" /><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61869?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 14:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b35fe050-9b24-40bb-90ff-1f3586307939</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Okay so i had to remove the path defined by macports in my .bash_profile to make it work. Thanks it is working now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61870?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 13:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec80a696-dd56-46bd-a6e7-d9247d04e44c</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Okay so i installed the arm-none-eabi-gcc using macports. Now it is giving me the following error after correcting the MakeFile.posix.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;arm-none-eabi-gcc: error: nano.specs: No such file or directory
make: *** [nrf52832_xxaa] Error 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I think this is because i am not using the ARM GCC compiler downloaded from their website but using the one installed using macports.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61864?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 13:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:909a3c09-e075-405c-8a8c-397d677aeadd</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;What do you mean by arm-gcc path?  Where is it defined or which scripts use it?  What symptoms?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61867?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 13:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f622c1-0066-4cc7-b42b-cfc2df48733f</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Thanks butch. It was actually because of the extra space but i never noticed that. Also can you tell me how can i change the arm-gcc path from opt/local/bin to some other folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61866?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 13:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:186196f4-50d5-43aa-a5db-3480f2d064f8</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Note that the error message says &amp;quot;.../ /....&amp;quot; i.e. there is an extra space and forward slash.  Are you sure that you didn&amp;#39;t define GNU_ROOT_PATH = &amp;quot;/opt/local/ &amp;quot;  (where there is an extra forward slash, and space?  If not, I don&amp;#39;t have an explanation, but you might be able to read and debug the &amp;#39;code&amp;#39; that cobbles together the definitions, code in the Makefiles?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61865?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 12:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6f71623-47d1-4c31-96cd-d02015bdb97e</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Thanks butch. Using the which command, the path shown by the terminal is
/opt/local/bin/arm-none-eabi-gcc.
The version is 5.4.1.
Now in the makefile.posix this should be the settings&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;GNU ROOT PATH = /opt/local&lt;/li&gt;
&lt;li&gt;GNU Version = 5.4.1&lt;/li&gt;
&lt;li&gt;GNU Prefix = arm-none-eabi.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The error is the same&lt;/p&gt;
&lt;p&gt;make: *** [_build/system_nrf52.o]    Error 1 make: /opt/local/      /bin/arm-none-eabi-gcc: No such file    or directory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61863?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 12:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75033b7-b822-4a9c-87b8-c2b9fd3f6180</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;First find out where the compiler is installed, at a terminal:  &amp;gt;which arm-none-eabi-gcc&lt;/p&gt;
&lt;p&gt;(For details about the which command:  &amp;gt;man which)&lt;/p&gt;
&lt;p&gt;Then edit Makefile.posix until the toolchain produces the same path.  The error message tells you the path it has cobbled together from Makefile.posix definitions.&lt;/p&gt;
&lt;p&gt;I am not familiar with macports.  I would guess that it only helps you install, and after that, does not enter into the equation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61868?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 07:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60164ce2-7b3b-4e3b-ab52-2e43b2e48a71</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Yes i tried but the same thing is happening. I also have installed using macports. Are both the things interfering with each other&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arm-gcc error in Mac OSX</title><link>https://devzone.nordicsemi.com/thread/61862?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 19:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e3e9ed-52aa-4bf3-9802-1258174d18a1</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Read the blog/tutorial by Nordic about Eclipse/Gcc.  Especially the step about editing /components/toolchain/gcc/Makefile.posix.  Change the first definition of ....ROOT to &amp;quot;/usr/bin&amp;quot; or &amp;quot;/usr&amp;quot; or where ever the arm gcc binary is installed.  It seems the toolchain pieces these definitions together to get the path to the compiler.  The error message shows the definitions are not correct for your installation.&lt;/p&gt;
&lt;p&gt;My answer is inexact from my limited experience on Linux , you will need to discover the exact details yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>