This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

IoT SDK compilation problems on Windows

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 another version of the toolchain? I read in this question that "The libraries in the IoT SDK are compiled with version 4.7 2013q1 of the arm toolchain". Does this mean I have to use this toolchain for developing IoT apps, and should I also use this for the standard SDK? Thanks!

Parents
  • 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)

    If you have a look in the release notes in the SDK, the toolchain used for testing is this:

    - GCC: gcc-arm-embedded 4.7 2013q1
    

    You can download this version of the toolchain here: launchpad.net/.../4.7-2013-q1-update

    Unzip the file to /install_dir/ using

    tar xjf gcc-arm-none-eabi-*.bz2
    

    In Makefile.posix under /components/toolchain/gcc in the SDK, change the content to:

    GNU_INSTALL_ROOT := /install_dir/gcc-arm-none-eabi-4_7-2013q1
    GNU_VERSION := 4.7.3
    GNU_PREFIX := arm-none-eabi
    

    You should not get the error anymore now. For the other nordic SDK's you should be fine using the newest toolchain.

    The issue has been reported.

Reply
  • 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)

    If you have a look in the release notes in the SDK, the toolchain used for testing is this:

    - GCC: gcc-arm-embedded 4.7 2013q1
    

    You can download this version of the toolchain here: launchpad.net/.../4.7-2013-q1-update

    Unzip the file to /install_dir/ using

    tar xjf gcc-arm-none-eabi-*.bz2
    

    In Makefile.posix under /components/toolchain/gcc in the SDK, change the content to:

    GNU_INSTALL_ROOT := /install_dir/gcc-arm-none-eabi-4_7-2013q1
    GNU_VERSION := 4.7.3
    GNU_PREFIX := arm-none-eabi
    

    You should not get the error anymore now. For the other nordic SDK's you should be fine using the newest toolchain.

    The issue has been reported.

Children
Related