Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved LTO Error on addition of a button or a switch

    Qt for MCUs
    3
    6
    798
    Loading More Posts
    • 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
      chaks last edited by

      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 Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by Christian Ehrlicher

        @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 Reply Quote 2
        • C
          chaks last edited by 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

          kshegunov 1 Reply Last reply Reply Quote 0
          • Christian Ehrlicher
            Christian Ehrlicher Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • kshegunov
              kshegunov Moderators @chaks last edited by

              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 Reply Quote 2
              • C
                chaks last edited by

                @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 Reply Quote 0
                • First post
                  Last post