Qt6.5.3 and QTcreator 9 .... problem to use gcc-9
-
@Axel-Spoerl Thanks a lot ... all done ....but when have an error seems compiler still gcc12 instead gcc9 that is better for creator 9 or 14 ..... error messages refer everytime to "..../gcc-12/...."
-
@jsulm ..... because quite newbe on these attach some image .... maybe I can understand better your suggestions ...
1- System info from QtCreator
2- gcc version avaiable and detect
3- Changing gcc versions
4- after compiling obtain new error ... seems refer to gcc12 .... i'm in wrong?
best regards
-
Upgrade your compiler to the latest 12.x version as it's an internal compiler error.
-
Upgrade your compiler to the latest 12.x version as it's an internal compiler error.
@Christian-Ehrlicher Thanks a lot .... but with previous step I change compiler from gcc12 to gcc9 or not? Because error is the same if change in previous manner to gcc9 AND if change to default gcc that is gcc12 ....
thanks for reply
-
An internal compiler error is nothing Qt can do against - the only way to fix it is to upgrade to the latest patch version of gcc you're using.
-
@Christian-Ehrlicher Thanks a lot .... but with previous step I change compiler from gcc12 to gcc9 or not? Because error is the same if change in previous manner to gcc9 AND if change to default gcc that is gcc12 ....
thanks for reply
@gfxx said in Qt6.5.3 and QTcreator 9 .... problem to use gcc-9:
but with previous step I change compiler from gcc12 to gcc9 or not?
You changed from 9 to 12 and wrote that the build fails, right?
I asked whether you rebuild from scratch after changing compiler - you did not answer... -
@gfxx said in Qt6.5.3 and QTcreator 9 .... problem to use gcc-9:
but with previous step I change compiler from gcc12 to gcc9 or not?
You changed from 9 to 12 and wrote that the build fails, right?
I asked whether you rebuild from scratch after changing compiler - you did not answer...@jsulm no I change from 12 to 9 .... because qtcreator and qt6 support max 9 on linux ..... after these I cancel every build of my project, run again qmake, and after build project. For major safety I close qtcreator, I open it again, I open again project, I check if gcc9 is still the choosen compiler, than clean again project, again qmake, and again build project. .... if you ask me install again qt6 with gcc9 ... these is not done.
is ok?
-
Why do you think max gcc 9 is supported?
-
Well, for openSuSE we officially support max gcc9 (see here). But that's mainly due to backwards compatibility. On openSuSE, Qt compiles with anything from gcc9 till gcc13.
-
My experience is, that you can always upgrade gcc and even use that with libraries (like Qt) that are compiled with older gcc versions.
The opposite is not always true
Regards.
-
My experience is, that you can always upgrade gcc and even use that with libraries (like Qt) that are compiled with older gcc versions.
The opposite is not always true
Regards.
@aha_1980 My case is about a qt project create with qt5.15.2 ..... need to upgrade hardware and cpu .... so I use original project not compiled ..... and try to upgrade it to qt6.5 .... because I use debian12, reading qt6 doc, seems need to use gcc9 .... debian12 have as default gcc12 .... so I install gcc9 and use appropriate qtcreator version .... try to compile using gcc9 ... but seems qtcreator non help me on these ..... someone suggest to upgrade my gcc12 because with some bugs, than compile my qt6 project using default gcc12 ..... because qt doc talk about supported gcc version on opensuse and ubuntu (nothing about debian) supported and supported one seems gcc9 .... I try to do these .... but for Axel users these is not necessary .....
I ask for confirmation .... gcc12 work good with qt6.5 in linux system?
-
@aha_1980 My case is about a qt project create with qt5.15.2 ..... need to upgrade hardware and cpu .... so I use original project not compiled ..... and try to upgrade it to qt6.5 .... because I use debian12, reading qt6 doc, seems need to use gcc9 .... debian12 have as default gcc12 .... so I install gcc9 and use appropriate qtcreator version .... try to compile using gcc9 ... but seems qtcreator non help me on these ..... someone suggest to upgrade my gcc12 because with some bugs, than compile my qt6 project using default gcc12 ..... because qt doc talk about supported gcc version on opensuse and ubuntu (nothing about debian) supported and supported one seems gcc9 .... I try to do these .... but for Axel users these is not necessary .....
I ask for confirmation .... gcc12 work good with qt6.5 in linux system?
@gfxx Why don't you just try it?
I have several systems with different compilers and as I said, upgrading the compiler mostly unproblematic.
You could, for example try gcc-12 with Qt 5.15.2 first to see if you program compiles. Afterwards, do the upgrade to Qt 6.
Regards
-
thanks a lot .... but qt5.15.2 work with c++20 gcc11 .... not try gcc12 .... but try to install different version of qt6 and where qt6.5.3 lts have almost 6-7 installation problem from online installer ... qt6.6.3 no problem at all during installation process .... previous of these I discover that kernel 6.6 that I previously used have a lot of bug ... some library is impossible to install ... so in any case was inusable for me. So I reinstal SO using these time kernel 6.10 ..... whith no problem about library that previous I have ..... BUT i see a lot of error during qt6.5.3 online installer process .... so I try almost 12 time with plain and totally new installation ... without a complete sucess ... sometime qt6.5.3 istall whitout creator, sometime whitout other module ..... so try one time qt6.6.3 and all work ..... for duble check I try an other plain istall of qt6.6.3 ... same result ... no error at all .... not try until now compile my app just converted on qt6 version .... but for now all work ... and simple browser example work great, where with qt6.5.3 was impossible to use ..... impossible to install correctly webengine in my case with qt6.5.3. ..... these is not my app but use web page on my app for example .... when I try my app on qt creator, I write here the result. But seems most part of problem was solved.
-
exactly ... all previous problem with compile process disappear ... all problem not language decode .... instead of mismatch of compiler now there are only decoding file problem .....
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
so need to solve these problems (depends from bookworm locale tree) .... Can compile with success I think or with normal error become from wrong code.
-
exactly ... all previous problem with compile process disappear ... all problem not language decode .... instead of mismatch of compiler now there are only decoding file problem .....
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
so need to solve these problems (depends from bookworm locale tree) .... Can compile with success I think or with normal error become from wrong code.
@gfxx very interesting ..... I run sudo dpk-reconfigure locales command .... all ok , after these with root permission I read /etc/default/locale and add LC_ALL row .... after I reboot .... that try to build my app on QTCreator 14 (new intallation ...but same error of QTCreator 9) ..... now I have these error .... plus other because some heather was corrupt from QtCreator (original file is perfect, after build these file at end have a lot of bad characters like @#|\ and so on ASCII chars random)....
(repeated more than one time ... almost 20 time ...) Detected locale "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.
But these is my locale commad output ....
@mint51:~$ locale LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL=it_IT.UTF-8
So think there are somethings not work on QtCreator and Qt6, But Try again to play aroud locale ....
******** edit:
my locale is ok ... seems problem is qt6 side. So means previous problem is solved!regards
-
@gfxx very interesting ..... I run sudo dpk-reconfigure locales command .... all ok , after these with root permission I read /etc/default/locale and add LC_ALL row .... after I reboot .... that try to build my app on QTCreator 14 (new intallation ...but same error of QTCreator 9) ..... now I have these error .... plus other because some heather was corrupt from QtCreator (original file is perfect, after build these file at end have a lot of bad characters like @#|\ and so on ASCII chars random)....
(repeated more than one time ... almost 20 time ...) Detected locale "LC_CTYPE=C;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.
But these is my locale commad output ....
@mint51:~$ locale LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL=it_IT.UTF-8
So think there are somethings not work on QtCreator and Qt6, But Try again to play aroud locale ....
******** edit:
my locale is ok ... seems problem is qt6 side. So means previous problem is solved!regards
-
G gfxx has marked this topic as solved on