<?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>Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82626/many-warnings-in-the-nrf-sdk-17-1-0-when-compiling-with-armgcc-makefile</link><description>Hello, 
 
 Until now we compiled our company project using SEGGER Embedded Studio command line tool &amp;#39;emBuild&amp;#39; that was called from a custom Makefile like this: 
 
 
 But we would like to stop relying on SES and build our project with armgcc + Makefile</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Dec 2021 14:48:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82626/many-warnings-in-the-nrf-sdk-17-1-0-when-compiling-with-armgcc-makefile" /><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342961?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 14:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f59beba-5cef-425b-ac96-5dd1a0e50aad</guid><dc:creator>Yohann</dc:creator><description>&lt;p&gt;Ok you&amp;#39;re right there is something wrong on my system.&lt;/p&gt;
&lt;p&gt;I created a blank Ubuntu Virtual machine, cloned the sdk, arm-none-eabi-gcc version 10.3.1 and it builds perfectly without any warning.&lt;/p&gt;
&lt;p&gt;So I don&amp;#39;t know what or where but it seems to be on my system, I&amp;#39;ll try to find it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks you a lot for the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342955?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 14:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad35857-08a8-4c9a-817e-f86bd1c02d8d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, I am. And I am also not able to find any other reports of this issue. Do you have some system wide alias that adds some flags to GCC or something else? (I am just throwing out a guess, really...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342953?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 14:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a3b508b-7347-459f-8a04-34be7a774698</guid><dc:creator>Yohann</dc:creator><description>&lt;p&gt;I tried with 9.3.1 and the fresh sdk and nothing changes, you&amp;#39;re telling me that you have the exact same setup and it works for you ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x92/__key/communityserver-discussions-components-files/4/Capture-d_1920_e_0103_cran-2021_2D00_12_2D00_10-a_0003_-15.18.51.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342952?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 14:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e866d5-a1db-4549-80a1-c7b14fba5b87</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;That is odd. I see you use SDK 17.1, and then 9.3.1 (which you used before) is what was used for release testing. I an using this exact combination now and the same example and I am not able to reproduce this (not even on a Mac).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342947?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 14:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b14205d2-79de-4168-9cce-c931f5173ffd</guid><dc:creator>Yohann</dc:creator><description>&lt;p&gt;Ok I just did that, I download a fresh version of the sdk, a fresh version of arm-none-eabi toolchain (version 10.3) and nothing changes.&lt;/p&gt;
&lt;p&gt;What else can it be ?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x724/__key/communityserver-discussions-components-files/4/Capture-d_1920_e_0103_cran-2021_2D00_12_2D00_10-a_0003_-14.58.58.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342941?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 13:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76efe506-3673-4f98-8e04-3900ab16a254</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The unmodified SDK example really should build without any warnings. Please unzip a fresh SDK so that we know there are no modifications and test again. If you still see this issue, I would look at your toolchain next.&amp;nbsp;The OS should not be a problem. Probably not the GCC version either, but generally I recommend using the version that is mentioned in the release notes if you have issues, as that is the version that was used during release testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342924?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 13:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf369327-2d7d-44a4-9c9a-b4e8c1b17666</guid><dc:creator>Yohann</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if this can help but I&amp;#39;m on MacOS big sur 11.6 and my version of arm-none-eabi-gcc is 9.3.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342923?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 13:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e30c99b-9a0a-485a-a620-c21ea7064614</guid><dc:creator>Yohann</dc:creator><description>&lt;p&gt;Hello Einar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your quick answer, I didn&amp;#39;t change anything about the warnings in the makefile I made except I removed -Werror because with it it&amp;#39;s impossible to compile.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I go in $SDK_ROOT/examples/peripheral/blinky/pca10056/blank/armgcc&lt;/p&gt;
&lt;p&gt;which is where the Makefile of the blinky (the most basic example) is located, I didn&amp;#39;t change anything and type &amp;#39;make&amp;#39; it won&amp;#39;t compile because of -Werror and the warnings.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is a little screenshot to show you.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x574/__key/communityserver-discussions-components-files/4/Capture-d_1920_e_0103_cran-2021_2D00_12_2D00_10-a_0003_-14.13.21.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Many warnings in the NRF SDK 17.1.0 when compiling with armgcc Makefile</title><link>https://devzone.nordicsemi.com/thread/342916?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 13:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5f9b9f6-88b7-4189-84ec-a3f2d98a5b59</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Yohann,&lt;/p&gt;
&lt;p&gt;I am a bit surprised about these about the error you get from SVCALL for two reasons. This is API functions in a header file and should not lead to an error like this in any case. An also, we also have unused warnings in our Makefiles in the SDK, which does not complain about this (neither should it).&lt;/p&gt;
&lt;p&gt;Regarding the warnings you get for&amp;nbsp;NRF_MODULE_ENABLED those defines should not be relevant.&lt;/p&gt;
&lt;p&gt;I agree whole heartedly that all code should build warning free, as the opposite would easily mask warnings you really should notice. But it seems the problem here is not in the code, but rather how you build (the options you pass to GCC). I suggest you use the Makefiles in the SDK as reference, where we use both&amp;nbsp;-Wall and -Werror, which should be more than strict enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>