LTO Error on addition of a button or a switch
-
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 statusLooking forward to the solution.
-
@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. -
@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. -
I don't see how Qt can do something against an internal compiler error of the compiler. Upgrade the compiler.
-
Probably this one:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69866Update your compiler, as @Christian-Ehrlicher wrote.
-
@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.