Unable to understand the error -- from creator 7 to 13
-
I try to compile the same app working on QTCreator 7 and QT5.12 on QTCreator13 and Qt5.12 .... bot obtain only error call from core libs like these:
I../../Qt/5.15.2/gcc_64/include/QtCore -I. -I/usr/include/libdrm -I. -I../../Qt/5.15.2/gcc_64/mkspecs/linux-g++ -o moc_adduser.o moc_adduser.cpp In file included from ../../Qt/5.15.2/gcc_64/include/QtCore/qobject.h:54, from ../../Qt/5.15.2/gcc_64/include/QtCore/qabstractanimation.h:43, from ../../Qt/5.15.2/gcc_64/include/QtCore/QtCore:6, from ../../Qt/5.15.2/gcc_64/include/QtDesigner/QtDesignerDepends:3, from ../../Qt/5.15.2/gcc_64/include/QtDesigner/QtDesigner:3, from WLED.h:4, from moc_WLED.cpp:10: ../../Qt/5.15.2/gcc_64/include/QtCore/qmetatype.h:556:69: internal compiler error: in type_hash_canon, at tree.cc:6157 556 | static int type(const QT_PREPEND_NAMESPACE(QByteArray) &typeName); | ^ 0x1afaeb6 internal_error(char const*, ...) ???:0 0x69ec5a fancy_abort(char const*, int, char const*) ???:0 0xff142e build_function_type(tree_node*, tree_node*) ???:0 0x71b34d grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ???:0 0x734b42 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, bool, tree_node*, tree_node*) ???:0 0x7f5c79 c_parse_file() ???:0 0x8e019d c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions. make: *** [Makefile:12078: moc_WLED.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from ../../Qt/5.15.2/gcc_64/include/QtCore/qfutureinterface.h:44, from ../../Qt/5.15.2/gcc_64/include/QtCore/qfuture.h:45, from ../../Qt/5.15.2/gcc_64/include/QtCore/QtCore:97, from mainwindow.h:7, from mainwindow.cpp:1: ../../Qt/5.15.2/gcc_64/include/QtCore/qmutex.h:75:6: internal compiler error: Segmentation fault 75 | {} | ^ 0x1afaeb6 internal_error(char const*, ...) ???:0 0x907483 ggc_set_mark(void const*) ???:0 0x85c1c7 gt_ggc_mx_lang_tree_node(void*) ???:0 0x85c163 gt_ggc_mx_vec_deferred_access_check_va_gc_(void*) ???:0 0x7b2a27 gt_ggc_mx_tree_check(void*) ???:0 0x7b2b59 gt_ggc_mx_cp_lexer(void*) ???:0 0x7b2d60 gt_ggc_mx_cp_parser(void*) ???:0 0xaa9a6c ggc_mark_roots() ???:0 0x907de1 ggc_collect(ggc_collect) ???:0 0x97ca96 cgraph_node::finalize_function(tree_node*, bool) ???:0 0x842a2f expand_or_defer_fn(tree_node*) ???:0 0x7a856b maybe_clone_body(tree_node*) ???:0 0x8427f8 expand_or_defer_fn_1(tree_node*) ???:0 0x842a08 expand_or_defer_fn(tree_node*) ???:0 0x7f5c79 c_parse_file() ???:0 0x8e019d c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions. make: *** [Makefile:10849: mainwindow.o] Error 1
some one can send me in right direction on discover these problem?
regards
-
ok perhaps seems problem related .qtc_clangd --use-dirty-headers" terminated abnormally.
clang_tiny process use one or 2 cpu at 100% ... so compile is not terminated good .... I try to change #include <QTcore/QTcore> into #include<QTcore> .... and change some absolute folder adress that was erroneus .... after update these post. -
G gfxx has marked this topic as solved on
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
G gfxx has marked this topic as unsolved on
-
Unfortunately after only 20 hour try to modify my appa with QTcreator13 again .... and problem apperar again .... only modification is comment out some row because not used at all and generated only have some "warning unused ...." but after these if compile obtain:
/home/a44/Qt/5.15.2/gcc_64/include/QtCore/qtypeinfo.h:319: In file included from ../../Qt/5.15.2/gcc_64/include/QtCore/qglobal.h:45, In file included from ../../Qt/5.15.2/gcc_64/include/QtCore/qglobal.h:45, from ../../Qt/5.15.2/gcc_64/include/QtGui/qtguiglobal.h:43, from ../../Qt/5.15.2/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43, from ../../Qt/5.15.2/gcc_64/include/QtWidgets/qdialog.h:43, from ../../Qt/5.15.2/gcc_64/include/QtWidgets/QDialog:1, from helphome.h:4, from helphome.cpp:1: /usr/include/c++/12/type_traits: In substitution of ‘template<class _TypeIdentity, class _NestedType> constexpr typename std::__or_<std::is_reference<_NestedType>, std::is_function<_NestedType>, std::is_void<_NestedType>, std::__is_array_unknown_bounds<_NestedType> >::type std::__is_complete_or_unbounded(_TypeIdentity) [with _TypeIdentity = std::__type_identity<bool>; _NestedType = <missing>]’: /usr/include/c++/12/type_traits:727:52: required from ‘struct std::is_trivial<bool>’ ../../Qt/5.15.2/gcc_64/include/QtCore/qtypeinfo.h:66:32: required from ‘constexpr bool qIsTrivial() [with T = bool]’ ../../Qt/5.15.2/gcc_64/include/QtCore/qtypeinfo.h:319:1: required from here /usr/include/c++/12/type_traits:727:52: internal compiler error: Segmentation fault 727 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
if anyone have some suggestion .... is welcome ...
-
The problem is nothing to do with Qt Creator: it is just a glorified text editor that can run
cmake
orqmake
for you. The Makefile generated by either of those tools in conjunction withmake
is launching the compiler.The code you are feeding your compiler is causing the compiler to abnormally terminate.
You do not tell us your environment, but it looks to be a Linux with GCC 12.x as the compiler you are trying to use. The first thing to note is that GCC versions between 5 and 10 are supported (That's not to say it will not work). GCC compiler errors are uncommon though not unheard of. Two different ones seems very unlikely.Be very sure you are starting with a completely clean copy of source; discard any prior build artifacts.
I'd take a good look at what is being invoked in
helphome.cpp
,helphome.h
, andWLED.h
as relates to registering metatypes. -
The problem is nothing to do with Qt Creator: it is just a glorified text editor that can run
cmake
orqmake
for you. The Makefile generated by either of those tools in conjunction withmake
is launching the compiler.The code you are feeding your compiler is causing the compiler to abnormally terminate.
You do not tell us your environment, but it looks to be a Linux with GCC 12.x as the compiler you are trying to use. The first thing to note is that GCC versions between 5 and 10 are supported (That's not to say it will not work). GCC compiler errors are uncommon though not unheard of. Two different ones seems very unlikely.Be very sure you are starting with a completely clean copy of source; discard any prior build artifacts.
I'd take a good look at what is being invoked in
helphome.cpp
,helphome.h
, andWLED.h
as relates to registering metatypes.@ChrisW67 about compiler ... not understand. Is better if downgrade to gcc10?
any how I use LMDE6 with standar gcc12 .... these for sure .... and for sure not understand qtCreator13 not support gcc12 .....
ok see all just now .... in my case think gcc version supported is max gcc9 ...these explain because the error discover is everytime different and not all time in same time than last one compile actions.
About helphome.xx there are nothings to strages ... maybe WLED.h have a problem related to custom plugin folder ....
thanks