Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. LTO Error on addition of a button or a switch

LTO Error on addition of a button or a switch

Scheduled Pinned Locked Moved Solved Qt for MCUs
6 Posts 3 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chaks
    wrote on last edited by
    #1

    Hi All,

    i am new to the QT for MCUs world and just started with the first Hello world application. I could draw a text and also an image on the screen. However, on addition of a button or a switch even, i get the below attached error. LTO as i understood is Linking Time Optimization, is it something do with linking or import of any module?

    lto1.exe:-1: error: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:155
    lto-wrapper.exe:-1: error: fatal error: C:\Qt\Tools\QtMCUs\arm_gcc_8\bin\arm-none-eabi-g++.exe returned 1 exit status
    :-1: error: error: lto-wrapper failed
    :-1: error: collect2.exe: error: ld returned 1 exit status

    Looking forward to the solution.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @chaks said in LTO Error on addition of a button or a switch:

      internal compiler error:

      As you can see it's an internal compiler error - nothing Qt releated (but maybe triggered by a Qt construct/source code). Try to compile a simple hello world program to see if it works with this compiler.
      Maybe upgrading the compiler also helps.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • C Offline
        C Offline
        chaks
        wrote on last edited by chaks
        #3

        @Christian-Ehrlicher
        The compilation happens and the program runs successfully when i comment out the button code in QML and can see the text displayed on screen. Also, you can see the compiler details as attached. They were part of the installation of QT creator.

        Compliers.png

        kshegunovK 1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I don't see how Qt can do something against an internal compiler error of the compiler. Upgrade the compiler.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • C chaks

            @Christian-Ehrlicher
            The compilation happens and the program runs successfully when i comment out the button code in QML and can see the text displayed on screen. Also, you can see the compiler details as attached. They were part of the installation of QT creator.

            Compliers.png

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            Probably this one:
            https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69866

            Update your compiler, as @Christian-Ehrlicher wrote.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            2
            • C Offline
              C Offline
              chaks
              wrote on last edited by
              #6

              @kshegunov @Christian-Ehrlicher , well the issue was not with the compiler but the license . I have the evaluation license, and only release libraries are provided with it, while I was compiling in the debug. I will mark the issue as solved.

              Anyways, thanks both for your inputs. Kind Regards.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved