<?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>IoT SDK compilation problems on Windows</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7296/iot-sdk-compilation-problems-on-windows</link><description>I have NRF 51 DK. 
 I adjusted the toolchain path to arm-gcc 4.9 2015q1. This version works fine for the NRF 51 SDK. 
 I get this error:
 lto1.exe: fatal error: bytecode stream generated with LTO version 2.1 instead of the expected 3.0 
 Do I need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 May 2015 14:20:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7296/iot-sdk-compilation-problems-on-windows" /><item><title>RE: IoT SDK compilation problems on Windows</title><link>https://devzone.nordicsemi.com/thread/25788?ContentTypeID=1</link><pubDate>Thu, 28 May 2015 14:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4832077-deba-4cc0-adf3-661a12228ddd</guid><dc:creator>Emil</dc:creator><description>&lt;p&gt;Thanks a lot, this answer will be valuable for others as well! I also came to the same conclusion!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IoT SDK compilation problems on Windows</title><link>https://devzone.nordicsemi.com/thread/25787?ContentTypeID=1</link><pubDate>Thu, 28 May 2015 12:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1ba37a-1c98-433b-a987-86f81d0dc1af</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The libraries included in the IoT SDK were compiled using an LTO version used in an earlier version of the arm gcc toolchain. So, from what I am able to figure out, it is not possible to compile the SDK using version 4.9 2015q1 (Maybe someone knows any work around on this)&lt;/p&gt;
&lt;p&gt;If you have a look in the release notes in the SDK, the toolchain used for testing is this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- GCC: gcc-arm-embedded 4.7 2013q1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can download this version of the toolchain here: &lt;a href="https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q1-update"&gt;launchpad.net/.../4.7-2013-q1-update&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unzip the file to /install_dir/ using&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;tar xjf gcc-arm-none-eabi-*.bz2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In &lt;strong&gt;Makefile.posix&lt;/strong&gt; under &lt;code&gt;/components/toolchain/gcc&lt;/code&gt; in the SDK, change the content to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GNU_INSTALL_ROOT := /install_dir/gcc-arm-none-eabi-4_7-2013q1
GNU_VERSION := 4.7.3
GNU_PREFIX := arm-none-eabi
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You should not get the error anymore now. For the other nordic SDK&amp;#39;s you should be fine using the newest toolchain.&lt;/p&gt;
&lt;p&gt;The issue has been reported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>