<?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>nRF51 Sdk Example »ble_app_hrs« won&amp;#39;t compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1608/nrf51-sdk-example-ble_app_hrs-won-t-compile-with-gcc-4-8</link><description>My build entironment: 
 
 nRF51 Sdk V5.1.0 (nrf51_sdk_v5_1_0_36092.zip) 
 arm gcc 4.7.4 
 arm gcc 4.8.3 
 nRFgo (nRF6310 Motherboard) 
 Host = Linux (Kubuntu 12.04) 
 
 Compiling Blinky works fine with both gcc 4.7 and 4.8.
Compiling ble_app_hrs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2014 17:00:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1608/nrf51-sdk-example-ble_app_hrs-won-t-compile-with-gcc-4-8" /><item><title>RE: nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/thread/7088?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2014 17:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e809648-5e07-4ee7-b5a3-4f00dfaab268</guid><dc:creator>Joe Merten</dc:creator><description>&lt;p&gt;I&amp;#39;d patched the sdk header using the &amp;quot;&lt;strong&gt;attribute&lt;/strong&gt;((unused))&amp;quot; which was described in that linked answer and it works (wanna let the gcc warning level as sensible as possible).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/thread/7089?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 19:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92b0e60d-651f-4b2e-baf0-7d162214b418</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I observed the same behaviour under windows. The I chose the a solution proposed by Ole and changed the makefile so warnings don&amp;#39;t get treated like errors.
Works perfectly now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/thread/7087?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 16:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed25c24f-cc91-4cf9-81d9-0ca86cc77c79</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Please take a look at &lt;a href="https://devzone.nordicsemi.com/index.php/static_assert-and-gcc-instead-of-keil#reply-4205"&gt;this question&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Officially GCC and OS X isn&amp;#39;t supported for the SDK, but it is perfectly possible to get things working if you can live with doing some modifications. I use my own Makefiles (nrf51-pure-gcc-setup) on Linux, and don&amp;#39;t have any major problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/thread/7086?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 15:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b31fee16-bd1e-4ec7-a0a8-a604bef5a4f1</guid><dc:creator>Olivier Scalbert</dc:creator><description>&lt;p&gt;In order to flash, I have installed J-Link on my debian. I download it from SEGGER:
&lt;a href="http://www.segger.com/jlink-software.html"&gt;www.segger.com/jlink-software.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For the statement, I do not know ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/thread/7085?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 15:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32139945-b58d-4b86-b573-16b598cf3714</guid><dc:creator>Joe Merten</dc:creator><description>&lt;p&gt;Thanks for that hint. I&amp;#39;d seen that nrf51-pure-gcc-setup and I&amp;#39;ll check that out soon.
Further, the Sdk Makefiles won&amp;#39;t support JLinkExe for writing to Flash under Linux, but nrf51-pure-gcc-setup seems to do this job (including flashing the SoftDevice).&lt;/p&gt;
&lt;p&gt;Is there a statement from Nordic, if the Sdk officially supports Linux (and Mac?) as host system for development?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Sdk Example »ble_app_hrs« won't compile with gcc 4.8</title><link>https://devzone.nordicsemi.com/thread/7084?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 15:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24b8e5f8-d0f7-4c85-a8ee-380c97632344</guid><dc:creator>Olivier Scalbert</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not a specialist at all !!!!
But I succeed to compile some examples on Linux with the help (thanks to Ole Morten) of a private GCC setup here:
&lt;a href="https://github.com/hlnd/nrf51-pure-gcc-setup"&gt;github.com/.../nrf51-pure-gcc-setup&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See the thread: &amp;quot;Build problem with pca10001 ble_app_proximity project&amp;quot;.
Good luck !&lt;/p&gt;
&lt;p&gt;Olivier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>