Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to understand the error -- from creator 7 to 13
Forum Updated to NodeBB v4.3 + New Features

Unable to understand the error -- from creator 7 to 13

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 2 Posters 559 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.
  • gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by
    #1

    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

    bkt

    1 Reply Last reply
    0
    • gfxxG Offline
      gfxxG Offline
      gfxx
      wrote on last edited by
      #2

      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.

      bkt

      1 Reply Last reply
      0
      • gfxxG Offline
        gfxxG Offline
        gfxx
        wrote on last edited by
        #3

        ok .... after these correction (4wrong path that point to non existing resources, and one include with <QTcore/QtCore>) all goes well ... sorry

        bkt

        1 Reply Last reply
        0
        • gfxxG gfxx has marked this topic as solved on
        • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
        • gfxxG gfxx has marked this topic as unsolved on
        • gfxxG Offline
          gfxxG Offline
          gfxx
          wrote on last edited by gfxx
          #4

          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 ...

          bkt

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            The problem is nothing to do with Qt Creator: it is just a glorified text editor that can run cmake or qmake for you. The Makefile generated by either of those tools in conjunction with make 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, and WLED.h as relates to registering metatypes.

            gfxxG 1 Reply Last reply
            2
            • C ChrisW67

              The problem is nothing to do with Qt Creator: it is just a glorified text editor that can run cmake or qmake for you. The Makefile generated by either of those tools in conjunction with make 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, and WLED.h as relates to registering metatypes.

              gfxxG Offline
              gfxxG Offline
              gfxx
              wrote on last edited by gfxx
              #6

              @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

              bkt

              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